-
Notifications
You must be signed in to change notification settings - Fork 413
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-45860: daemon: add nil check for annotation fetching #4740
OCPBUGS-45860: daemon: add nil check for annotation fetching #4740
Conversation
@yuqi-zhang: This pull request references Jira Issue OCPBUGS-45860, which is valid. The bug has been moved to the POST state. 3 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. |
For verification need the PR to get merged, will verify when ON_QA. /label qe-approved |
@yuqi-zhang: This pull request references Jira Issue OCPBUGS-45860, which is valid. 3 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: umohnani8, yuqi-zhang 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 |
Right, this should only be happening if somehow the initial For the record, I'm happy with adding a nil check here, it definitely can't hurt! Just wonder what we are missing 🤔 |
@yuqi-zhang: 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. |
2bcdb61
into
openshift:master
@yuqi-zhang: Jira Issue OCPBUGS-45860: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-45860 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. |
/cherry-pick release-4.18 |
@yuqi-zhang: new pull request created: #4743 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 |
Theoretically this shouldn't be empty by the time it gets to here, but in the error stacktrace: https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.18-e2e-vsphere-ovn-upi-serial/1861922894817267712/artifacts/e2e-vsphere-ovn-upi-serial/gather-extra/artifacts/pods/openshift-machine-config-operator_machine-config-daemon-4mzxf_machine-config-daemon_previous.log we see this function panicking.
This seems to have actually been the second place where we hit this function in that logic loop? i.e. loadNodeAnnotations -> getNodeAnnotation -> getNodeAnnotationExt should have panicked if either node or node.Annotations is empty, but for some reason it didn't. Weird. Also the fact that we have not seen this before makes it extra odd.
In either case, for safety reasons, we shouldn't be attempting to dereference a potentially nil pointer anyways, so let's just make this quick fix.