-
Notifications
You must be signed in to change notification settings - Fork 421
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
OCPBUGS-38869: MCN are not updated when we use OCL #4579
Conversation
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-38869, which is invalid:
Comment 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. |
/test e2e-gcp-op-single-node |
2 similar comments
/test e2e-gcp-op-single-node |
/test e2e-gcp-op-single-node |
8a75719
to
d08769f
Compare
LGTM |
/lgtm |
@dkhater-redhat Hello! We have problems installing the images created for the PRs (all the PRs not only this one). Nevertheless, nightly builds are installing without problems. Could you please merge this PR? we will test it post-merge in the nightly build. Thanks!! We don't add the qe-approved label since it will verified post-merge. |
/retest-required |
/jira refresh |
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-38869, which is invalid:
Comment 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. |
/jira refresh |
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-38869, which is invalid:
Comment 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. |
/jira refresh |
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-38869, which is invalid:
Comment 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. |
Pre-merge verified:
2. Apply any MOSCoc create -f - << EOF apiVersion: machineconfiguration.openshift.io/v1alpha1 kind: MachineOSConfig metadata: name: check spec: machineConfigPool: name: worker buildOutputs: currentImagePullSecret: name: $(oc get -n openshift-machine-config-operator sa default -ojsonpath='{.secrets[0].name}') buildInputs: imageBuilder: imageBuilderType: PodImageBuilder baseImagePullSecret: name: $(oc get secret -n openshift-config pull-secret -o json | jq "del(.metadata.namespace, .metadata.creationTimestamp, .metadata.resourceVersion, .metadata.uid, .metadata.name)" | jq '.metadata.name="pull-copy"' | oc -n openshift-machine-config-operator create -f - &> /dev/null; echo -n "pull-copy") renderedImagePushSecret: name: $(oc get -n openshift-machine-config-operator sa builder -ojsonpath='{.secrets[0].name}') renderedImagePushspec: "image-registry.openshift-image-registry.svc:5000/openshift-machine-config-operator/ocb-image:latest" containerFile: - containerfileArch: noarch content: |- # Pull the centos base image and enable the EPEL repository. FROM quay.io/centos/centos:stream9 AS centos RUN dnf install -y epel-release Wait for machineosbuild to complete
$ oc get node ppt-2201c-76w4j-worker-a-rcc5b -o jsonpath='{.metadata.annotations.machineconfiguration\.openshift\.io/desiredConfig}' rendered-worker-09284a94cf349a37ade57c8bbc08be98 $ oc get machineconfignode ppt-2201c-76w4j-worker-a-rcc5b -o jsonpath='{.spec.configVersion.desired}' rendered-worker-09284a94cf349a37ade57c8bbc08be98 Run the below test case - PASS OCP-69184 Author:rioliu [sig-mco] MCO MachineConfigNode Enable feature gate MachineConfigNodes [Serial] PASS OCP-69187 Author:rioliu [sig-mco] MCO MachineConfigNode validate MachineConfigNodes properties [Serial] FAIL OCP-69197 Author:rioliu [sig-mco] MCO MachineConfigNode validate MachineConfigNode condition status transition [Disruptive] [Serial] FAIL OCP-69205 Author:rioliu [sig-mco] MCO MachineConfigNode MachineConfigNode corresponding condition status is Unknown when node is degraded [Disruptive] [Serial] PASS OCP-69755 Author:rioliu [sig-mco] MCO MachineConfigNode MachineConfigNode resources should be synced when node is created/deleted [Disruptive] [Serial] PASS OCP-74644 Author:sregidor [sig-mco] MCO MachineConfigNode Scope each MCN object to only be accessible from its associated MCD [Disruptive] [Serial] For the failed test-cases reported the bug: /label qe-approved |
@@ -970,6 +970,23 @@ func (dn *Daemon) updateOnClusterBuild(oldConfig, newConfig *mcfgv1.MachineConfi | |||
return err | |||
} | |||
|
|||
// Determine the pool (worker or master) based on the node's labels |
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.
Question: Couldn't this be custom pool (ie non-{worker/master}), too?
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.
MCN technically doesn't yet support custom pools: https://issues.redhat.com/browse/MCO-1299
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dkhater-redhat, umohnani8 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 |
/jira refresh |
@isabella-janssen: This pull request references Jira Issue OCPBUGS-38869, which is invalid:
Comment 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. |
/jira refresh |
@isabella-janssen: This pull request references Jira Issue OCPBUGS-38869, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira ([email protected]), skipping review request. 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. |
/hold |
@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. |
@isabella-janssen: Closed this PR. 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. |
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-38869. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW 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. |
- What I did
Fixed a bug in
updateOnClusterBuild
where mcn's were not correctly updating their.spec.configVersion.desired
field when using ocl. The fix involved leveraging the GenerateAndApplyMachineConfigNodeSpec function to ensure that the MCNs are correctly updated with the latest desired configuration after applying a new MachineConfig.- How to verify it
.spec.configVersion.desired
field of mcn's reflects the updated mc across all nodes in the worker pool.- Description for the changelog
Fixed an issue where mcn's were not updating their
.spec.configVersion.desired
field correctly when using ocl in the mcd