Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.21.0 installed config is empty #4770

Closed
haircommander opened this issue Apr 16, 2021 · 4 comments · Fixed by #5007
Closed

1.21.0 installed config is empty #4770

haircommander opened this issue Apr 16, 2021 · 4 comments · Fixed by #5007
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@haircommander
Copy link
Member

This was intentional, but it is not optimal.

For 1.21.0, we changed the crio config command to only print fields that are different than the default. This allows config migration to be easier, and config changes as well.

However, now running make install.config (which all packaged solutions do, as well as our recommendation for installation from source) installs an empty file--it's all the default!

This is sub-par--often users want to use the default config as a way to see the available options.

I take the blame for this one, I guided the solution to #4506 without checking the reprocussions and making sure all stakeholders were okay with the fix.

The good news is: we have another good first issue!

Here are three proposed pieces:

  • crio config should print all the fields, with the default ones commented out, instead of omitted. This will be used to populate the default configuration
  • crio config --all should print all the fields, with both default and non-default commented out
  • crio config --verbose should print only the non-default fields. This will be used for generating drop-in files
@fidencio
Copy link
Contributor

fidencio commented Apr 17, 2021

kata-containers CI (from our repo) is failing and may pretty much be related to this one.
It happens the really sub-optimal way come configurations are changed on the kata-containers side is by sed ... the default value (now, not found anymore).

I'll open an issue on kata-containers side and link it here on Monday: kata-containers/tests#3424.

@saschagrunert
Copy link
Member

Yep, printing the defaults commented-out should be a good solution around it. The static binary bundles are affected by that change, too.

/help

@openshift-ci-robot
Copy link

@saschagrunert:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

Yep, printing the defaults commented-out should be a good solution around it. The static binary bundles are affected by that change, too.

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Apr 19, 2021
@wgahnagl
Copy link
Contributor

wgahnagl commented May 6, 2021

I'm working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants