Skip to content

Conversation

@haircommander
Copy link
Member

We have historically run into issues by the MCO setting more fields than it really needs to. Instead, we only really need to have the select fields MCO cares about, and comment out the rest.

- What I did
Override the default values with the ones MCO set in the past, then comment out the rest

- How to verify it
crio --config "" config > default.conf
crio --config $OLD_TEMPLATE config > mco.conf
sdiff default.conf mco.conf | grep '|'

and the resulting values are the only values uncommented here
- Description for the changelog

Update crio.yaml templates to match CRI-O 1.16 config format as well as removed default values

@openshift-ci-robot openshift-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 24, 2019
@haircommander
Copy link
Member Author

/retest

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general big
/approve
from me. I'm curious if it's necessary for us to still specify some of the values.
I think that all of this would be cleaner if we did something more like:

cp /usr/etc/crio/crio.conf /etc/crio.conf
# append MCO changes to /etc/crio.conf

(Though for the first bit on classic RPM systems we'd need to keep a pristine /etc/crio.conf copy ourself since RPM doesn't have it)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this one still need explicit specification?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the time being yes. This is a situation in which the CRI-O rpm needs to move in lock step with MCO. I guess we can have the rpm put it in both spots (it may already I have to check). Once that happens, we can drop this, and eventually drop it from /usr/libexec all together

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah actually I don't think this one is needed. good catch

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 25, 2019
@haircommander haircommander force-pushed the update-templates-4.3 branch 2 times, most recently from 452b272 to 2bb2bc9 Compare October 31, 2019 12:54
@haircommander
Copy link
Member Author

/retest

1 similar comment
@haircommander
Copy link
Member Author

/retest

@haircommander
Copy link
Member Author

/retest

@haircommander
Copy link
Member Author

@umohnani8 @mtrmac PTAL

@cgwalters
Copy link
Member

I think we should do this now to make future upgrades easier. Code overall
/lgtm

(Though do we need separate crio.conf on masters vs workers? Could we move it into common/? But not blocking this PR)

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2019
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right. Should be /var/lib/containers/storage

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nvm, it is commented out. But we should probably still fix it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is not system.slice, we should it update it here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to system.slice here as well

@cgwalters
Copy link
Member

/hold
per review comments
(But feel free to lift and do followup commits; I think most of that is cosmetic)

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 8, 2019
We have historically run into issues by the MCO setting more fields than it really needs to. It can take the default value for most fields, and override those that matter.

Do that overriding here, and comment out the rest of the crio config. This allows crio to decide how to set values, so it and MCO don't have to move in lock-step

Signed-off-by: Peter Hunt <[email protected]>
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2019
@haircommander
Copy link
Member Author

comments addressed :)

@umohnani8
Copy link
Contributor

LGTM

@cgwalters
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, haircommander

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@haircommander
Copy link
Member Author

/retest

1 similar comment
@haircommander
Copy link
Member Author

/retest

@haircommander
Copy link
Member Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 11, 2019
@haircommander
Copy link
Member Author

🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants