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-29858: Only extract node role from properly formatted node-role label #28585
Conversation
The convention is a format like `node-role.kubernetes.io/role: ""`, not `node-role.kubernetes.io: role`, however ROSA uses the latter format to indicate the `infra` role. This changes the node watch code to ignore it. The current code panics when run against a ROSA cluster: ``` E0209 18:10:55.533265 78 runtime.go:79] Observed a panic: runtime.boundsError{x:24, y:23, signed:true, code:0x3} (runtime error: slice bounds out of range [24:23]) goroutine 233 [running]: k8s.io/apimachinery/pkg/util/runtime.logPanic({0x7a71840?, 0xc0018e2f48}) k8s.io/apimachinery@v0.27.2/pkg/util/runtime/runtime.go:75 +0x99 k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x1000251f9fe?}) k8s.io/apimachinery@v0.27.2/pkg/util/runtime/runtime.go:49 +0x75 panic({0x7a71840, 0xc0018e2f48}) runtime/panic.go:884 +0x213 github.com/openshift/origin/pkg/monitortests/node/watchnodes.nodeRoles(0x7ecd7b3?) github.com/openshift/origin/pkg/monitortests/node/watchnodes/node.go:187 +0x1e5 github.com/openshift/origin/pkg/monitortests/node/watchnodes.startNodeMonitoring.func1(0 ```
/hold |
/lgtm Unhold when ready. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgoodwin, stbenjam 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 |
/retest |
/hold cancel |
/retest-required |
/hold Have to get bugs lined up so I can cherry-pick this back to where folks are testing ROSA |
@stbenjam: This pull request references Jira Issue OCPBUGS-29858, 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. |
/hold cancel |
@stbenjam: once the present PR merges, I will cherry-pick it on top of release-4.15 in a new PR and assign it to you. 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/test-infra repository. |
/cherry-pick release-4.14 |
@stbenjam: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you. 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/test-infra repository. |
/jira refresh |
@stbenjam: This pull request references Jira Issue OCPBUGS-29858, 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 |
@stbenjam: This pull request references Jira Issue OCPBUGS-29858, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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 Revision 7fd01a1 was retested 3 times: holding |
/hold cancel |
@stbenjam: 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/test-infra repository. I understand the commands that are listed here. |
/override ci/prow/e2e-aws-ovn-serial |
/skip |
@stbenjam: Overrode contexts on behalf of stbenjam: ci/prow/e2e-aws-ovn-serial 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/test-infra repository. |
@stbenjam: Jira Issue OCPBUGS-29858: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-29858 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. |
@stbenjam: new pull request created: #28615 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/test-infra repository. |
@stbenjam: new pull request created: #28616 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/test-infra repository. |
[ART PR BUILD NOTIFIER] This PR has been included in build openshift-enterprise-tests-container-v4.16.0-202402261639.p0.g330feda.assembly.stream.el8 for distgit openshift-enterprise-tests. |
The convention is a format like
node-role.kubernetes.io/role: ""
, notnode-role.kubernetes.io: role
, however ROSA uses the latter format to indicate theinfra
role. This changes the node watch code to ignore it, as well as other potential variations likenode-role.kubernetes.io/
.The current code panics when run against a ROSA cluster: