Skip to content

OCPBUGS-145549: Fix MCN stale current config edge case - #6784

Open
isabella-janssen wants to merge 1 commit into
openshift:release-4.20from
isabella-janssen:ocpbugs-132309-420
Open

isabella-janssen wants to merge 1 commit into
openshift:release-4.20from
isabella-janssen:ocpbugs-132309-420

Conversation

@isabella-janssen

@isabella-janssen isabella-janssen commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes: OCPBUGS-145549

- What I did

This is a manual cherry-pick of #6743.

- How to verify it

Ensure the Should have MCN properties matching associated node properties for nodes in default MCPs e2e test is passing consistently.

- Description for the changelog
OCPBUGS-145549: Fix MCN stale current config edge case

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 23, 2026
@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Pre-merge checks: Passed 8 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Test Structure And Quality Inconclusive The check reviews Ginkgo test code that the PR adds or changes. I could not isolate the PR patch, so I cannot confirm whether any such code exists. Evidence gathered: - The primary PR is openshift/mac… Provide the PR's changed-file list or a usable base revision for openshift/machine-config-operator #6784 (base release-4.20, head ocpbugs-132309-420). Then re-run this check. - If the PR adds or modifies no Ginkgo It() blocks, the check is …
Ipv6 And Disconnected Network Test Compatibility Inconclusive Could not establish which files this pull request changes, so I could not determine whether it adds any new Ginkgo e2e tests. Evidence gathered: - The checked-out HEAD (2faeec0, "daemon & upgrademoni… Provide the complete PR patch against the release-4.20 base, or a checkout with that base history (for example, the merge-base with openshift/machine-config-operator release-4.20). Then re-run the check against any added Ginkgo It(), Descri…
Passed Passed checks: 8 passed

Check name Status Explanation
Stable And Deterministic Test Names Passed The check applies to test titles (It, Describe, Context, When and similar) and to legacy metadata tokens in titles. The PR is a cherry-pick fixing MCN stale current config handling (pkg/upgrademonitor…
Microshift Test Compatibility Passed The check applies only when the PR adds new Ginkgo e2e tests (It/Describe/Context/When). I found no evidence that this PR adds any. - The PR (openshift/machine-config-operator #6784, base release-4.20…
Single Node Openshift (Sno) Test Compatibility Passed Summary: The check does not apply to this PR. I found no new Ginkgo e2e test that this PR adds. Evidence gathered: - The PR is a manual cherry-pick (PR #6784, release-4.20) of upstream PR #6…
Topology-Aware Scheduling Compatibility Passed The PR is a manual cherry-pick (OCPBUGS-145549, "Fix MCN stale current config edge case"). The description says it fixes MCN properties for nodes in default MCPs. The commit subject is "daemon & upgra…
Ote Binary Stdout Contract Passed The check is not applicable to this pull request, so it passes. Evidence: - The provider-reported primary PR is openshift/machine-config-operator #6784 (base release-4.20, head ocpbugs-132309-420, aut…
No-Weak-Crypto Passed The no-weak-crypto check finds no matching weak algorithm, custom crypto, or non-constant-time secret comparison introduced by this PR. Evidence gathered: - PR #6784 (openshift/machine-config-operator…
Container-Privileges Passed The container-privileges check flags privileged settings (privileged: true, hostPID, hostNetwork, hostIPC, SYS_ADMIN, root without justification, allowPrivilegeEscalation: true) that a pull request in…
No-Sensitive-Data-In-Logs Passed The check fails only if logging added or changed by this PR may expose passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. Evidence limits: the checkout is a single sq…
Full details: Stable And Deterministic Test Names

Explanation

The check applies to test titles (It, Describe, Context, When and similar) and to legacy metadata tokens in titles. The PR is a cherry-pick fixing MCN stale current config handling (pkg/upgrademonitor and pkg/daemon), with verification through an e2e test. Evidence gathered: - The checkout is a single squashed commit (2faeec0, no parent), so the PR diff against release-4.20 could not be isolated. The review therefore covered the test files this change plausibly touches. - The repository's MCN-related tests use standard Go testing, not Ginkgo. Their titles are static function names: TestMCNScopeSadPath, TestMCNScopeImpersonationPath, TestMCNScopeHappyPath, TestMCNPoolNameDefault, TestMCNPoolNameCustom (test/e2e-2of2/mcn_test.go) and TestUpgradeMonitor (pkg/daemon/upgrade_monitor_test.go). - The one dynamic subtest name in pkg/daemon/upgrade_monitor_test.go is t.Run(testCase.name, ...). It is table-driven, and the name comes from a static test table, not from runtime values. - No Ginkgo It/Describe/Context/When titles with fmt.Sprintf or string concatenation were found under test/, cmd/ or pkg/. - No legacy openshift-tests-private metadata tokens (Author:, NonHyperShiftHOST, ROSA, OSD_CCS, ARO, Polarion-style IDs, ConnectedOnly, PreChkUpgrade and similar) appear in the test directories. - The e2e test named in the PR description, "Should have MCN properties matching associated node properties for nodes in default MCPs", was not found by exact string. The closest match is TestMCNPoolNameDefault, which has a static name. Limitation: without the PR diff, I cannot confirm that no new test title was added in an unseen file. The evidence in the relevant test files shows no violation.

Full details: Microshift Test Compatibility

Explanation

The check applies only when the PR adds new Ginkgo e2e tests (It/Describe/Context/When). I found no evidence that this PR adds any. - The PR (openshift/machine-config-operator #6784, base release-4.20, author isabella-janssen) is a cherry-pick of #6743. Its commit is titled "daemon & upgrademonitor: fix MCN stale current config edge case". The checkout is a single squashed commit (2faeec0), so a base-to-head diff is unavailable. - The e2e test named in the PR description, "Should have MCN properties matching associated node properties for nodes in default MCPs", does not exist anywhere in the repository. A search of the whole tree found no match for "MCN properties matching" or "Should have". - The only MCN-related e2e tests are Go-testing functions in test/e2e-2of2/mcn_test.go (TestMCNScopeSadPath, TestMCNScopeImpersonationPath, TestMCNScopeHappyPath, TestMCNPoolNameDefault, TestMCNPoolNameCustom). They use the standard testing package, not Ginkgo, so they are outside this check's scope. - test/extended/machineconfignode.go contains only a resource constructor. The existing Ginkgo g.It blocks in test/extended (such as mco_ocb.go) are not MCN-related and are not identified as new. - The code changes visible in the commit are in pkg/upgrademonitor (upgrade_monitor.go configVersionStale logic) and pkg/daemon, which are not e2e tests. Limitation: without a base revision, I cannot fully rule out a new Ginkgo test added elsewhere. The evidence available shows none. The MicroShift criteria therefore do not apply.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

Summary: The check does not apply to this PR. I found no new Ginkgo e2e test that this PR adds. Evidence gathered: - The PR is a manual cherry-pick (PR #6784, release-4.20) of upstream PR #6743. The title and commit describe an MCN stale current-config fix in the daemon and upgrademonitor. The description states the verification path is an existing e2e test: "Should have MCN properties matching associated node properties for nodes in default MCPs". No new test is described. - A search of the checkout for that test name, and for MCN properties, default MCPs, and node properties in test/, returned no match. The named verification test is not present in this tree. - The Ginkgo specs in test/extended (g.Describe/g.It) are limited to test/extended/mco_ocb.go. None concern MCN or the daemon fix. - The MCN e2e tests in test/e2e-2of2/mcn_test.go (TestMCNScopeSadPath, TestMCNPoolNameDefault, and so on) and the single-node tests in test/e2e-single-node/sno_mcd_test.go are standard Go testing functions. They do not use Ginkgo. - The repository's HEAD commit (2faeec0d) has a parent (4cda875a) on an unrelated tree. A diff against it is dominated by unrelated file churn, so it cannot isolate the PR's patch. The release-4.20 base is not available in this checkout. I therefore could not produce the exact PR patch. Limitation: Because the exact PR patch against release-4.20 could not be established, the check's applicability rests on the title, description, and the absence of any Ginkgo spec related to MCN in the tree. The check's failure condition covers only new Ginkgo tests that assume multi-node topology. Nothing in the available evidence introduces such a test. The mco_ocb.go Ginkgo specs appear only as an artifact of the unrelated parent diff and do not relate to this PR's described change. Result: PASS, because no new Ginkgo e2e test is introduced, so the SNO compatibility check is not triggered.

Full details: Topology-Aware Scheduling Compatibility

Explanation

The PR is a manual cherry-pick (OCPBUGS-145549, "Fix MCN stale current config edge case"). The description says it fixes MCN properties for nodes in default MCPs. The commit subject is "daemon & upgrademonitor: fix MCN stale current config edge case". Evidence gathered: - The checked-out repository is a single root commit (2faeec0) containing the whole tree. No parent exists, so the exact PR patch could not be isolated with a diff. The changed-line review below is based on the commit subject, the description, and the current code in the changed areas. - pkg/upgrademonitor/upgrade_monitor.go contains the MCN status logic that maps node annotation CurrentMachineConfigAnnotationKey into Status.ConfigVersion.Current (around lines 208, 251-258). A keyword search of pkg/upgrademonitor/ found no affinity, toleration, nodeSelector, maxUnavailable, PodDisruptionBudget, topologySpread, control-plane, arbiter, or replicas constructs. - The changed controller area is status reporting. It does not add a deployment manifest, a replica count, or a pod scheduling constraint. - Existing topology-aware code (isSingleNodeTopology, getControlPlaneTopology in pkg/daemon/daemon.go, and the drain logic in pkg/daemon/drain.go) predates this change. The description does not show that it was modified. - The manifests with scheduling fields (for example manifests/machineconfigdaemon/daemonset.yaml) are not described as changed by this PR. Residual limitation: The complete patch could not be confirmed against release-4.20. A reviewer should confirm that the daemon/upgrademonitor diff adds no scheduling constraints. The description and the code evidence do not show any such constraint.

Full details: Ote Binary Stdout Contract

Explanation

The check is not applicable to this pull request, so it passes. Evidence: - The provider-reported primary PR is openshift/machine-config-operator #6784 (base release-4.20, head ocpbugs-132309-420, author isabella-janssen). The PR commit subject is "daemon & upgrademonitor: fix MCN stale current config edge case". Its scope is the MCO daemon and upgrade monitor runtime code. The PR description states it is a manual cherry-pick of PR #6743. - The repository is a single root commit, so a base-to-head diff is not available. I therefore checked the PR-touched packages (pkg/daemon/daemon.go, node.go, update.go, pkg/upgrademonitor/upgrade_monitor.go) directly. - Those files contain no func main(), no func init(), no TestMain, no suite setup, and no klog.SetOutput, log.SetOutput, or fmt.Print* calls at process level. The only os.Stdout references are cmd.Stdout = os.Stdout for subprocess execution inside daemon functions. These run in normal runtime code, not in process-level OTE code. - No OpenShift Tests Extension wiring (openshift-tests-extension or similar registration) was found in the repository. The e2e test packages under test/ use standard TestMain for Go test runs, and this PR does not alter them. The check scope covers only process-level stdout in OTE test binaries. This PR does not introduce such code, so no failure condition applies.

Full details: No-Weak-Crypto

Explanation

The no-weak-crypto check finds no matching weak algorithm, custom crypto, or non-constant-time secret comparison introduced by this PR. Evidence gathered: - PR #6784 (openshift/machine-config-operator, base release-4.20, head ocpbugs-132309-420, author isabella-janssen) is a manual cherry-pick of PR #6743. Its commit subject is "daemon & upgrademonitor: fix MCN stale current config edge case". The description states only the MCN stale-config fix and an e2e verification step. - The checkout has a single root commit (2faeec0). It has no parent, so the exact patch against release-4.20 could not be generated. I did not verify the changed lines line by line. - Searches of the Go diff available in the checkout found no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, or custom crypto usage. - The files named by the commit subject are pkg/daemon (daemon.go and related files) and pkg/upgrademonitor/upgrade_monitor.go. Searches of these files found no crypto primitives, HMAC, or constant-time comparison logic. The only crypto-related import in pkg/daemon is crypto/sha256 (kernelargs.go) and crypto/x509 (certificate_writer.go). Neither is part of the MCN current-config logic. The "secret" and "token" hits are pull-secret file handling and service-account mount paths. - The repository contains md5 usage in pkg/controller/render/hash.go and pkg/controller/build/buildrequest/machineosbuild.go. These files are outside the MCN fix scope and are not shown to be changed by this PR. They are therefore not attributed to this PR. - The MCN fix compares configuration names and state. It does not compare secrets or tokens. Limitation: the base revision is unavailable, so the check relies on the stated scope of the cherry-pick and on the touched-area files. If the full patch contained other files with crypto changes, this verdict would not cover them.

Full details: Container-Privileges

Explanation

The container-privileges check flags privileged settings (privileged: true, hostPID, hostNetwork, hostIPC, SYS_ADMIN, root without justification, allowPrivilegeEscalation: true) that a pull request introduces in container or Kubernetes manifests. Evidence gathered: - PR #6784 (openshift/machine-config-operator, base release-4.20, head ocpbugs-132309-420, author isabella-janssen) is a manual cherry-pick of PR #6743. Its description says it fixes the MCN stale current config edge case and is verified by an e2e test ("Should have MCN properties matching associated node properties for nodes in default MCPs"). - The checked-out repository is a single squashed snapshot (commit 2faeec0, "daemon & upgrademonitor: fix MCN stale current config edge case"). No base revision is available, so the exact patch cannot be isolated. - The commit title and description point to Go changes in pkg/daemon and pkg/upgrademonitor, plus an e2e test. Nothing in the PR context describes a change to a manifest under manifests/ or install/. - The MCN-related code references I found (for example pkg/daemon/node.go and pkg/daemon/update.go) are Go logic, not container specs. - The squashed tree does contain privileged settings, such as the machine-config-daemon DaemonSet with hostNetwork and privileged. These are pre-existing repository content. The PR context does not show that it adds, changes, or activates them, so they cannot cause a FAIL under this check. Limitation: Without a base revision, I could not confirm line by line that the PR changed no manifest. The verdict depends on the scope stated in the PR title, description, and commit subject. If the full patch shows a manifest change that adds or widens a privilege setting, this verdict should be revisited.

Full details: No-Sensitive-Data-In-Logs

Explanation

The check fails only if logging added or changed by this PR may expose passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. Evidence limits: the checkout is a single squashed commit (2faeec0), so git diff against the base is unavailable. I could not isolate the exact PR patch. I relied on the PR title and description, which point to the MCN stale current-config fix in pkg/upgrademonitor and pkg/daemon. Evidence gathered: - pkg/upgrademonitor/upgrade_monitor.go lines 195-235 hold the stale-config logic. It compares node.Annotations[CurrentMachineConfigAnnotationKey] with mcNode.Status.ConfigVersion.Current. This logic adds no log statement. - The klog calls in pkg/upgrademonitor log only generic error values ("Error applying MCN status: %v", "Error creating MCN: %v", and similar). One V(4) line logs node.Name when an MCN is not found. Node names are Kubernetes object names, and the other calls do not log node content. - pkg/daemon/daemon.go:2321 logs dn.node.Name and an error on MCN update failure. No credential or customer data is logged. - Password-related log lines in pkg/daemon/update.go (for example, "Password has been configured") do not print secret values. A search of pkg/daemon and pkg/upgrademonitor found no logging of tokens, keys, emails, or SSNs. No changed logging line in the MCN area exposes a value in the listed categories. The node-name log is a possible concern only if node names count as internal hostnames. That line is in the MCN area but was not shown to be introduced by this PR, and it is a standard object identifier. Based on the evidence gathered, the check passes.

Full details: Test Structure And Quality

Explanation

The check reviews Ginkgo test code that the PR adds or changes. I could not isolate the PR patch, so I cannot confirm whether any such code exists. Evidence gathered: - The primary PR is openshift/machine-config-operator #6784 (base release-4.20, head ocpbugs-132309-420), opened by isabella-janssen. The PR title and description identify it as a manual cherry-pick of #6743, titled "Fix MCN stale current config edge case". - The checked-out HEAD (2faeec0, "daemon & upgrademonitor: fix MCN stale current config edge case") is a root commit with no parent. HEAD^ does not resolve, and there is no merge-base with main. The full tree appears as a single addition, so the PR's own diff cannot be derived from git history. - The PR description says the fix is verified by an e2e test named "Should have MCN properties matching associated node properties for nodes in default MCPs". A search of test/, pkg/ and cmd/ finds no test with that name. The PR description does not state that the PR adds a new It() block. - The MCN-related tests in test/e2e-2of2/mcn_test.go use plain Go testing, not Ginkgo. The Ginkgo specs under test/extended/ are not part of this PR's evident scope. - No ote.Informing() usage was found in the tree. - The title and commit subject point to daemon and upgrademonitor changes, which suggests the PR adds no Ginkgo test. This is indicative only. It cannot establish that no It() block was added. Because the PR patch and its base are unavailable, I cannot verify criteria 1–6 against any new or changed Ginkgo code. Missing evidence cannot establish PASS.

Resolution

Provide the PR's changed-file list or a usable base revision for openshift/machine-config-operator #6784 (base release-4.20, head ocpbugs-132309-420). Then re-run this check. - If the PR adds or modifies no Ginkgo It() blocks, the check is inapplicable and should be PASS. - If it adds or modifies Ginkgo specs, review them against criteria 1–6. For criterion 6, suggest ote.Informing() on any new It() that does not use it.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

Could not establish which files this pull request changes, so I could not determine whether it adds any new Ginkgo e2e tests. Evidence gathered: - The checked-out HEAD (2faeec0, "daemon & upgrademonitor: fix MCN stale current config edge case") is a root commit with no merge-base with origin/main (4cda875). A diff against origin/main therefore lists the entire repository tree, not the PR patch. The release-4.20 base branch is not present locally. - The e2e test named in the PR description, "Should have MCN properties matching associated node properties for nodes in default MCPs", does not appear anywhere in the checkout. A search for its name and for the phrase "matching associated node" returned nothing. - Existing MCN-related Go tests (pkg/daemon/upgrade_monitor_test.go, pkg/daemon/irreconcilable_diff_reporter_test.go, test/e2e-2of2/mcn_test.go) are plain Go tests or unit tests. None of them is a new Ginkgo It/Describe block introduced by this PR. - The PR title and description describe a daemon and upgrademonitor fix, a manual cherry-pick of #6743. They do not state that new Ginkgo tests were added. Because the PR patch cannot be established, I cannot confirm whether new Ginkgo tests exist. Missing evidence cannot establish PASS. The check does not define a FAIL condition for an unavailable diff, so the verdict is INCONCLUSIVE. Even if the referenced e2e test were added, its name suggests a comparison of MCN and node properties. That does not, on its face, involve IPv4 literals or external connectivity. This is context only and does not decide the verdict.

Resolution

Provide the complete PR patch against the release-4.20 base, or a checkout with that base history (for example, the merge-base with openshift/machine-config-operator release-4.20). Then re-run the check against any added Ginkgo It(), Describe(), Context(), or When() blocks. Confirm the location of the test "Should have MCN properties matching associated node properties for nodes in default MCPs" in the diff, and inspect it for IPv4-only assumptions, hardcoded IP literals, or public-internet dependencies.

@isabella-janssen

Copy link
Copy Markdown
Member Author

/jira cherrypick OCPBUGS-139141

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 23, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yuqi-zhang for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@isabella-janssen: Jira Issue OCPBUGS-139141 has been cloned as Jira Issue OCPBUGS-145549. Will retitle bug to link to clone.
/retitle OCPBUGS-145549: Fix MCN stale current config edge case

Details

In response to this:

/jira cherrypick OCPBUGS-139141

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 openshift-ci Bot changed the title Fix MCN stale current config edge case OCPBUGS-145549: Fix MCN stale current config edge case Nov 23, 2026
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 23, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@isabella-janssen: This pull request references Jira Issue OCPBUGS-145549, which is invalid:

  • expected dependent Jira Issue OCPBUGS-139141 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is ON_QA instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Closes:

- What I did

This is a manual cherry-pick of #6743.

- How to verify it

Ensure the Should have MCN properties matching associated node properties for nodes in default MCPs e2e test is passing consistently.

- Description for the changelog
: Fix MCN stale current config edge case

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 openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 23, 2026
@isabella-janssen

Copy link
Copy Markdown
Member Author

/payload-job periodic-ci-openshift-release-main-ci-4.20-e2e-aws-ovn-techpreview

@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-ci-4.20-e2e-aws-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/3a33e7e8-e74b-11f1-84b5-7b82e2b89123-0

@isabella-janssen
isabella-janssen marked this pull request as ready for review November 23, 2026 20:01
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 23, 2026
@isabella-janssen

Copy link
Copy Markdown
Member Author

/payload-aggregate periodic-ci-openshift-release-main-ci-4.20-e2e-aws-ovn-techpreview 10

@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-ci-4.20-e2e-aws-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c11839a8-e778-11f1-997c-76da5cf51383-0

@redhat-chai-bot

Copy link
Copy Markdown
Contributor

Chai risk assessment for 2faeec0d4b3902cb5b70401585bf5d1c77a39ef4 → release-4.20

Tier: Moderate
Assessed: Moderate
Minimum: Low
Signals: 2 files, +24/-1 lines outside vendored and generated code; no API type changes; no CRD schema changes; full diff read.
Rubric: https://github.com/openshift-eng/ai-helpers/tree/8b588bd3c993913e6687fa7688ed6ac0c809e173/plugins/openshift-developer/skills/pr-risk-assessment

Reason: This is a cherry-pick to release-4.20, so it reaches existing clusters in a z-stream update. It changes how the machine-config-daemon reports MachineConfigNode (MCN) status in two places. First, on a boot resync where an update is still pending, checkStateOnFirstRun now writes MCN Updated=False just before triggerUpdate. Second, generateAndApplyMachineConfigNodes no longer returns early when the MCN's status.configVersion.current is stale compared with the node's current-config annotation. In that case it reapplies status, which also resets the other update conditions to False. That is a behaviour change on every node, but tracing the base branch shows it stays within status reporting. The new boot-path call only logs errors and still goes on to triggerUpdate, so it adds no new way for an update or reboot to fail. In pkg/daemon nothing reads MCN status to make decisions. The node controller's pool status takes its machine counts from node annotations and uses MCNs only for the PinnedImageSets synchronizer. A likely defect would therefore be wrong or extra MCN status writes, which would mislead MCN-based reporting during upgrades without disrupting nodes. That fits Moderate, not Critical. Signals: 2 files, +24/-1, no API or CRD changes, full diff read. The repository has no AGENTS.md on the base branch. I did not trace consumers outside this repository that read MCN conditions.

Change it with @redhat-chai-bot /risk-tier <low|moderate|critical>: anyone can raise the tier; lowering it needs two OWNERS approvers and lasts until the next push.

/label chai-risk-assessment/moderate

@openshift-ci openshift-ci Bot added the chai-risk-assessment/moderate Chai risk assessment of the latest commit: moderate (may change product behaviour). label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chai-risk-assessment/moderate Chai risk assessment of the latest commit: moderate (may change product behaviour). jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants