-
Notifications
You must be signed in to change notification settings - Fork 462
Bug 1794495: [release-4.3] fix ctrcfg and add e2e test #1447
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
Bug 1794495: [release-4.3] fix ctrcfg and add e2e test #1447
Conversation
This reverts commit 69025e8. as well as updates crio.yaml templates with correct values and fixes whitespace Signed-off-by: Urvashi Mohnani <[email protected]> Signed-off-by: Peter Hunt <[email protected]>
Signed-off-by: Peter Hunt <[email protected]>
before, we weren't properly checking LogSizeMax was an empty value. As such, we incorrectly merged the config changes, which bricked the runtime when LogSizeMax wasn't defined. Fix this by using LogSizeMax uniformly by checking against its Value() method Signed-off-by: Peter Hunt <[email protected]>
|
@haircommander: This pull request references Bugzilla bug 1794495, which is invalid:
Comment DetailsIn response to this:
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. |
|
@haircommander: This pull request references Bugzilla bug 1794495, which is invalid:
Comment DetailsIn response to this:
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. |
|
/test e2e-gcp-op |
instead of comparing directly against Quantity{}, as I've seen weirdness with it
Signed-off-by: Peter Hunt <[email protected]>
5a4fde8 to
204d7d5
Compare
|
/retest |
|
@haircommander there seems to be some issue in op here instead :( |
|
yeah the tests seem legit 😕 |
maybe something is different between 4.4/master and 4.3 🤔 |
yeah but it's a pretty confusing error. I get after deploying a ctrcfg, which tells me nothing about what went wrong |
|
/bugzilla refresh |
|
@haircommander: This pull request references Bugzilla bug 1794495, which is invalid:
Comment DetailsIn response to this:
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. |
036d459 to
d0cdde0
Compare
…ools Having kubelet config or runtime MCs for custom pools isn't possible today. The reason for that was to avoid risking drift between workers when it comes to kubelet and runtime configs. This patches changes that behavior by allowing custom pools to use the worker base templates in order to generate MCs for kubelet and runtime configs. Signed-off-by: Antonio Murdaca <[email protected]>
this change includes: add test/e2e/ctrcfg_test that includes three basic tests for deploying a ctrcfg and seeing it correctly changed the runtime configuration move/refactor some code from test/e2e/mcd_test to test/e2e/utils_test to prevent duplication between the two files, while also being clear about what tests use what (utils currently houses functions used in both mcd and ctrcfg tests) Signed-off-by: Peter Hunt <[email protected]>
d0cdde0 to
8ed426e
Compare
|
/retest |
Signed-off-by: Peter Hunt <[email protected]>
8ed426e to
c0195eb
Compare
|
@haircommander: This pull request references Bugzilla bug 1794495, which is invalid:
Comment DetailsIn response to this:
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. |
|
😎 |
|
/approve |
|
/bugzilla refresh |
|
@umohnani8: This pull request references Bugzilla bug 1794495, which is invalid:
Comment DetailsIn response to this:
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. |
|
/bugzilla refresh |
|
@haircommander: This pull request references Bugzilla bug 1794495, which is invalid:
Comment DetailsIn response to this:
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. |
|
(lol I only just saw you just did that 10 minutes ago @umohnani8) |
|
@runcom so until https://bugzilla.redhat.com/show_bug.cgi?id=1794493 is not verified (the 4.4 bz), we can't move ahead with this PR? |
correct @umohnani8 |
|
/bugzilla refresh |
|
@umohnani8: This pull request references Bugzilla bug 1794495, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
@haircommander: This pull request references Bugzilla bug 1794495, which is valid. DetailsIn response to this:
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. |
|
Overall... What we really want again I think is to have If the possible fallout from this was only confined to clusters with an actually customized |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, haircommander, runcom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cgwalters I can move this to a new issue/jira to be done as future work you'd like? |
we submitted an epic for 4.5 to do just that 😄 |
|
@haircommander: All pull requests linked via external trackers have merged. Bugzilla bug 1794495 has been moved to the MODIFIED state. DetailsIn response to this:
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. |
What I did
ctrcfgs have been broken since this PR, possibly before. There are a couple of reasons behind this:
version_file_location) after the controller did an update. This commit updates from vendoring cri-o 1.9 to 1.16 to make sure we're rendering a config file that is compatible with the version of CRI-O. Until we move away from specifying the full template as aformentioned, we'll want to bump CRI-O each openshift version.Resource.Value() == 0, which is a more deterministic way of finding whether the resource was specified (and prevent a fatally empty value from showing up in the resulting crio.conf). This and this commit make these changes.Risks
The risk of this PR is relatively low. The biggest worry I have is around cherry-picking this.
However, the existence of an e2e test, and the clear states of "before these changes, the e2e test failed" and "after these changes, the e2e test passes" makes me believe there is no risk to merging this PR mid-z-stream.
How to verify it
go test -v -run="TestContainerRuntimeConfigPidsLimit" ./test/e2e/
Description for the changelog
added simple e2e test for ContainerRuntimeConfigs
revendor cri-o to have an updated config structure as well as fix problems with template rendering
cherry-pick of: #1414
also includes: d8a6fa6