Bug 2012120
Summary: | Console deletes operands regardless of interdependency | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Simone Tiraboschi <stirabos> | ||||||
Component: | Management Console | Assignee: | Jakub Hadvig <jhadvig> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Yadan Pei <yapei> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 4.9 | CC: | asavina, danken, dhellmann, fdeutsch, jcaiani, jhadvig, jlanford, kmajcher, xxia | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 4.10.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2022-11-14 12:15:19 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Simone Tiraboschi
2021-10-08 10:34:30 UTC
Created attachment 1830777 [details]
Errors
*** Bug 2011897 has been marked as a duplicate of this bug. *** Currently, console executes: k8sKill(subscription) k8sKill(csv) k8sKill(operand, ...for each operand asynchronously, we need to await for all subscriptions and operands to be removed first, before attempting to remove the csv, ie: await k8sKill(subscription); <-- should happen as the first step to ensure that OLM doesn't initiate an upgrade during this process await k8sKill(operands); await k8sKill(csv); There is a UX question about how to handle if operand(s) can't be deleted? Do we do a dry-run and show 'not deletable' for those operands? Do we give users an 'opt out' if errors discovered? rhbz #2012971 seems to be a follow up to this bug Hi amobrem, amobrem, kdoberst, Wondering if the BZ is still considered 'severity=High' meaning it should be treated as a high SLO canidate? In light of new HAC/OCM priorities and the additional work needed to complete this bug (the ability for operator to opt. out of deleting operands); should this be a 'severity=medium' or perhaps an RFE bug? Please keep the severity=high. As an owner of a complex operator, I would like to opt out of this feature - Console (or anyone) should not delete anything in openshift-cnv but the top-level CR. I would like to annotate my CSV so that the option to delete parts of the resources is not exposed in UI. Please share with us the opt-out annotation as soon as you can, because we have only one sprint for our own API freeze. I put this comment in the Console PR related to this bug, but I wanted to capture it here as well. This is the context for what the OLM team thinks is missing (allowing operator teams to opt-out of operand deletion):
> The OLM team decided to stick with the original decision of using an annotation in the CSV to allow operator versions to opt-out of operand deletion. The primary reason for this decision was to make it as easy as possible for operator authors to set the opt-out. Using only operator conditions would force operator authors to make code changes. This decision does not preclude further discussion around allowing dynamic opt-out via operator conditions. The annotation and operator condition mechanisms are not mutually exclusive.
>
> The chosen annotation name is "console.openshift.io/disable-operand-delete"
The other important context for this bug is that operator teams will need to have time after this bug merges but before a GA release of OpenShift to be able to test the operand deletion and opt-out functionality. If this doesn't land before the OpenShift feature freeze date, it will likely need to be punted to the following release.
@jhadvig since Dave is off on ocm land, can we reassign this to an ocp team member and assess whether we can get this into 4.11? *** Bug 2042268 has been marked as a duplicate of this bug. *** This issue is being tracked by https://issues.redhat.com/browse/CONSOLE-3237 PR for fixing is up - https://github.com/openshift/console/pull/12234 Closing... |