-
Notifications
You must be signed in to change notification settings - Fork 562
[release-4.6] Bug 1975456: Handle invalid label during resource cleanup #2209
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
[release-4.6] Bug 1975456: Handle invalid label during resource cleanup #2209
Conversation
Invalid label due to too long CSV name will lead to label selector malfunction as it returns an empty selector that matches everything. As a result, some unrelated resources are garbaged-collected when OLM is doing some resource cleanup during uninstallation. This fix will use SelectorFromValidatedSet instead of SelectorFromSet to let the server rejects invalid label sets instead of using am empty Selector. Signed-off-by: Vu Dinh <[email protected]>
@dinhxuanvu: No Bugzilla bug 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 kubernetes/test-infra repository. |
@dinhxuanvu: No Bugzilla bug 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 kubernetes/test-infra repository. |
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benluddy, dinhxuanvu 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 |
The CSVOwnerSelector should never return an empty selector (which is equavalent of Everything()). Signed-off-by: Vu Dinh <[email protected]>
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
15 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@dinhxuanvu: This pull request references Bugzilla bug 1975456, 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 kubernetes/test-infra repository. |
/bugzilla refresh |
@dinhxuanvu: This pull request references Bugzilla bug 1975456, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 6 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 kubernetes/test-infra repository. |
@openshift-ci[bot]: GitHub didn't allow me to request PR reviews from the following users: kasturinarra. Note that only operator-framework members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
@dinhxuanvu: All pull requests linked via external trackers have merged: Bugzilla bug 1975456 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 kubernetes/test-infra repository. |
This PR removes: 1) deploy/bz1905684 2) deploy/osd-logging/unsupported/ 3) SSS related to bz1905684 from hack/osd-stage.yaml The workaround bz1905684(a cronjob) was possibly added because of an [olm bug](operator-framework/operator-lifecycle-manager#2209 ) that has been fixed in 4.7. The conjob no longer needs to be present on cluster, and therefore the openshift-logging namespace does not need to get created on OSD bootstrap.
Invalid label due to too long CSV name will lead to label selector
malfunction as it returns an empty selector that matches everything.
As a result, some unrelated resources are garbaged-collected when OLM
is doing some resource cleanup during uninstallation. This fix will
use SelectorFromValidatedSet instead of SelectorFromSet to let the
server rejects invalid label sets instead of using am empty Selector.
Signed-off-by: Vu Dinh [email protected]
Description of the change:
Motivation for the change:
Reviewer Checklist
/doc