-
Notifications
You must be signed in to change notification settings - Fork 435
OCPBUGS-56115: Understand and eliminate noisy logs for MCN #5136
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: naseerahkani The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -403,11 +403,16 @@ func GenerateAndApplyMachineConfigNodeSpec(fgAccessor featuregates.FeatureGateAc | |||
// createOrGetMachineConfigNode gets the named MCN or returns a boolean indicating we need to create one | |||
func createOrGetMachineConfigNode(mcfgClient mcfgclientset.Interface, node *corev1.Node) (*mcfgv1.MachineConfigNode, bool) { | |||
mcNode, err := mcfgClient.MachineconfigurationV1().MachineConfigNodes().Get(context.TODO(), node.Name, metav1.GetOptions{}) | |||
if mcNode.Name == "" || (err != nil && apierrors.IsNotFound(err)) { | |||
if err != nil { |
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: Did you remove the mcNode.Name == ""
part of the conditional because it is handled in the apierrors.IsNotFound((err))
case?
/payload-job periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-single-node |
@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/583b9160-5114-11f0-9df4-6f98e5b226d8-0 |
@naseerahkani: 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. |
/jira refresh |
@isabella-janssen: No Jira issue is referenced in the title of this pull 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. |
/retitle OCPBUGS-56115: Understand and eliminate noisy logs for MCN |
@naseerahkani: This pull request references Jira Issue OCPBUGS-56115, 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. |
/payload-aggregate periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-single-node 5 |
@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/b592d1e0-5135-11f0-8079-89fe6b48309d-0 |
/payload-aggregate periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-single-node-serial 5 |
@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/bfa789f0-5135-11f0-81b3-d1ffe1ddde27-0 |
- What I did
Rearranged the way the errors are checked for the account for the MCN not existing when the node is first created.
- How to verify it
- Description for the changelog
Fixes logs that start with "error getting existing MCN" from the upgrade monitor. This should fix bug #56115