OCPBUGS-52302: Fix timing of Spec.ConfigVersion.Desired update in MCN#5121
Conversation
|
Skipping CI for Draft Pull Request. |
0649233 to
80b33df
Compare
80b33df to
3d9f06f
Compare
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-52302, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
Spec.ConfigVersion.Desired update in MCN
7123da8 to
30895c5
Compare
Spec.ConfigVersion.Desired update in MCNSpec.ConfigVersion.Desired update in MCN
|
/retest-required |
|
This would work, but I have a question: would it make sense to have this around where the annotation is actually being set? machine-config-operator/pkg/controller/node/node_controller.go Lines 1212 to 1216 in 36a1298 If we're working towards a world where MCN becomes our node object for updates, this would help with that. |
@djoshy Yeah, I agree that setting this right when/where we are setting the annotation for the node makes sense from the perspective of supporting the goal of transitioning to a model where the MCN controls the nodes updates as opposed to the node annotations. I was originally trying to keep the scope of the bug fix minimal to decrease the risk of unintended side effects (the flow you suggest would involve some tweaks to tldr: change coming soon... ⏰ |
Spec.ConfigVersion.Desired update in MCNSpec.ConfigVersion.Desired update in MCN
2fc6a23 to
d05d2f2
Compare
|
/test unit |
1 similar comment
|
/test unit |
ebce6af to
4b3ea82
Compare
|
/retest-required |
1 similar comment
|
/retest-required |
|
Verified using IPI on AWS
Check that the spec value is updated before the UpdatePrepared condition Check that the status is updated when UpdatePrepared is true
/label qe-approved |
|
/lgtm Thanks for the fix-ups! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: djoshy, isabella-janssen 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 |
|
/retest-required |
|
/tide refresh /override ci/prow/okd-scos-images |
|
@djoshy: Overrode contexts on behalf of djoshy: ci/prow/okd-scos-images 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-sigs/prow repository. |
|
/test all |
|
@isabella-janssen: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
30e1d23
into
openshift:main
|
@isabella-janssen: Jira Issue OCPBUGS-52302: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-52302 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[ART PR BUILD NOTIFIER] Distgit: ose-machine-config-operator |
|
/cherry-pick release-4.19 |
|
@isabella-janssen: #5121 failed to apply on top of branch "release-4.19": 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-sigs/prow repository. |
|
Fix included in accepted release 4.21.0-0.nightly-2025-10-18-225958 |
Closes: OCPBUGS-52302
- What I did
This moves the MCN spec update function,
GenerateAndApplyMachineConfigNodeSpecinto the node controller's update function so that the desired config version in the MCN is updated when the node annotation is updated.- How to verify it
UpdatePreparedcondition isTrueand before the desired config version is updated in the status.Example grep to see the necessary fields:
- Description for the changelog
OCPBUGS-52302: Fix timing of Spec.ConfigVersion.Desired update in MCN