-
Notifications
You must be signed in to change notification settings - Fork 448
OPNET-683: Automatically copy over configs applied by MCO #5162
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
Conversation
@emy: This pull request references OPNET-683 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. In 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 openshift-eng/jira-lifecycle-plugin repository. |
/cc @cybertron |
/lgtm But @cybertron should review too. To me the code is reasonable but I don't know enough to judge if this ultimately fixes the issue |
/lgtm This may be somewhat stuck pending the e2e-gcp-op job getting fixed. It's been mostly failing lately, even on patches like this that don't affect it. |
/retest-required |
/assign @isabella-janssen Looks like this is passing now. Should be good to go. |
/jira backport release-4.16,release-4.17,release-4.18,release-4.19 |
@mkowalski: The following backport issues have been created: Queuing cherrypicks to the requested branches to be created after this PR merges: In 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 openshift-eng/jira-lifecycle-plugin repository. |
@openshift-ci-robot: once the present PR merges, I will cherry-pick it on top of In 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-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logically seems fine to me, I guess the main behaviour change is that if something else is writing /etc/nmstate for some reason, this will overwrite it always, whereas previous it would be skipped?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cybertron, emy, mkowalski, yuqi-zhang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@emy: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
cc2f713
into
openshift:main
@openshift-ci-robot: #5162 failed to apply on top of branch "release-4.19":
In 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-sigs/prow repository. |
@openshift-ci-robot: new pull request created: #5262 In 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-sigs/prow repository. |
@openshift-ci-robot: new pull request created: #5263 In 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-sigs/prow repository. |
@openshift-ci-robot: #5162 failed to apply on top of branch "release-4.18":
In 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-sigs/prow repository. |
Hmm, this seems to have failed to cherry-pick to 4.19/4.18 but was successful for 4.17 and 4.16. Hopefully those are correct? Since each backport requires the previous version, it's best to cherry pick one branch at a time, instead of mass cherrypicking, since errors like this can occur. |
[ART PR BUILD NOTIFIER] Distgit: ose-machine-config-operator |
- What I did
While looking into OPNET-683 I ran into the issue that the config applied by MCO would not be copied over from
/etc/nmstate/openshift
to/etc/nmstate
by nmstate-configuration.service. This caused manual intervention on the individual nodes to apply for example disruptive changes to thebr-ex
interface via the configs in/etc/nmstate/openshift
. To get around the manual intervention I implemented a similar behavior to the one in/etc/nmstate
. The config in/etc/nmstate/openshift
will be compared to what is already applied in the/etc/nmstate/openshift/applied
file. If the hashes mismatch there must be a config change and the config will be copied over to/etc/nmstate
.- How to verify it
/etc/nmstate/openshift/[cluster.yml | hostname.yml]
./etc/nmstate/openshift/applied
file contains the applied configs from Step 1.- Description for the changelog
Changes to
/etc/nmstate/openshift/[cluster.yml | hostname.yml]
will be applied on reboot now.