-
Notifications
You must be signed in to change notification settings - Fork 426
[release-4.19] OCPBUGS-56119: error from generateAndValidateRenderedMachineConfig function can be misleading #5044
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
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-56119, which is valid. The bug has been moved to the POST state. 7 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. 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. |
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-56119, which is valid. 7 validation(s) were run on this bug
Requesting review from QA contact: 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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: djoshy, dkhater-redhat 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 |
/cherry-pick release-4.18 release-4.17 release-4.16 |
@dkhater-redhat: 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. |
Pre-merge verification:
Applied the below MC which include the fips configuration MC Exampleoc create -f - << EOF apiVersion: machineconfiguration.openshift.io/v1 kind: MachineConfig metadata: labels: machineconfiguration.openshift.io/role: worker name: luks-worker spec: config: ignition: version: 3.4.0 storage: filesystems: - device: /dev/mapper/root format: xfs label: root wipeFilesystem: true luks: - clevis: tpm2: true device: /dev/disk/by-partlabel/root label: luks-root name: root wipeVolume: true EOF Check the MCP degrade logs does not include - lastTransitionTime: "2025-05-14T05:34:32Z" message: 'Failed to render configuration for pool worker: could not generate rendered MachineConfig: reconciliation failed between current config "rendered-worker-68b09b47b5a0d60933a1245c37892a78" and base config "luks-worker": ignition filesystems section contains changes' reason: "" status: "True" type: RenderDegraded /label cherry-pick-approved |
@dkhater-redhat: 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. |
18f1c3d
into
openshift:release-4.19
@dkhater-redhat: Jira Issue OCPBUGS-56119: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-56119 has been moved to the MODIFIED state. 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. |
@dkhater-redhat: new pull request created: #5049 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. |
[ART PR BUILD NOTIFIER] Distgit: ose-machine-config-operator |
What I did
Fixes: #OCPBUGS-56119
Fix misleading error in generateAndValidateRenderedMachineConfig
When a full-render reconciliation fails, we now iterate through the
base MachineConfigs one by one—to
pinpoint the exact config that introduced the irreconcilable change.
If a partial render fails, we report that config’s name and its error,
instead of incorrectly blaming an earlier override. We still fall back
to the original combined error behavior if no single config produces
the full-render failure.
How to verify it
See https://issues.redhat.com/browse/OCPBUGS-54692