Repository navigation
OCPBUGS-145549: Fix MCN stale current config edge case - #6784
isabella-janssen wants to merge 1 commit into
Conversation
|
Skipping CI for Draft Pull Request. |
Pre-merge checks:
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Test Structure And Quality | 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 | 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 checks: 8 passed
-
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 standardtestingpackage, 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 forMCN properties,default MCPs, andnode propertiesintest/, returned no match. The named verification test is not present in this tree. - The Ginkgo specs intest/extended(g.Describe/g.It) are limited totest/extended/mco_ocb.go. None concern MCN or the daemon fix. - The MCN e2e tests intest/e2e-2of2/mcn_test.go(TestMCNScopeSadPath,TestMCNPoolNameDefault, and so on) and the single-node tests intest/e2e-single-node/sno_mcd_test.goare standard Gotestingfunctions. They do not use Ginkgo. - The repository'sHEADcommit (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. Therelease-4.20base is not available in this checkout. I therefore could not produce the exact PR patch. Limitation: Because the exact PR patch againstrelease-4.20could 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. Themco_ocb.goGinkgo 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
CurrentMachineConfigAnnotationKeyintoStatus.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,getControlPlaneTopologyin 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 nofunc main(), nofunc init(), noTestMain, no suite setup, and noklog.SetOutput,log.SetOutput, orfmt.Print*calls at process level. The onlyos.Stdoutreferences arecmd.Stdout = os.Stdoutfor 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 standardTestMainfor 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 diffagainst 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 inpkg/upgrademonitorandpkg/daemon. Evidence gathered: -pkg/upgrademonitor/upgrade_monitor.golines 195-235 hold the stale-config logic. It comparesnode.Annotations[CurrentMachineConfigAnnotationKey]withmcNode.Status.ConfigVersion.Current. This logic adds no log statement. - Theklogcalls inpkg/upgrademonitorlog only generic error values ("Error applying MCN status: %v","Error creating MCN: %v", and similar). One V(4) line logsnode.Namewhen an MCN is not found. Node names are Kubernetes object names, and the other calls do not log node content. -pkg/daemon/daemon.go:2321logsdn.node.Nameand an error on MCN update failure. No credential or customer data is logged. - Password-related log lines inpkg/daemon/update.go(for example, "Password has been configured") do not print secret values. A search ofpkg/daemonandpkg/upgrademonitorfound 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 withmain. 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 Gotesting, not Ginkgo. The Ginkgo specs under test/extended/ are not part of this PR's evident scope. - Noote.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, suggestote.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.
|
/jira cherrypick OCPBUGS-139141 |
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@isabella-janssen: Jira Issue OCPBUGS-139141 has been cloned as Jira Issue OCPBUGS-145549. Will retitle bug to link to clone. 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. |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-145549, which is invalid:
Comment 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. |
a733fcd to
2faeec0
Compare
|
/payload-job periodic-ci-openshift-release-main-ci-4.20-e2e-aws-ovn-techpreview |
|
@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/3a33e7e8-e74b-11f1-84b5-7b82e2b89123-0 |
|
/payload-aggregate periodic-ci-openshift-release-main-ci-4.20-e2e-aws-ovn-techpreview 10 |
|
@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c11839a8-e778-11f1-997c-76da5cf51383-0 |
|
Chai risk assessment for Tier: Moderate 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 /label chai-risk-assessment/moderate |
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 MCPse2e test is passing consistently.- Description for the changelog
OCPBUGS-145549: Fix MCN stale current config edge case