Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1624782

Summary: [admin] Remove subscription will also remove resources & instances when disable cascade deletion
Product: OpenShift Container Platform Reporter: shahan <hasha>
Component: Management ConsoleAssignee: Alec Merdler <amerdler>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.11.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: 2018-10-11 07:25:55 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:

Description shahan 2018-09-03 09:39:03 UTC
Description of problem:
 Remove subscription will also remove resources & instances when disable cascade deletion

Version-Release number of selected component (if applicable):
OpenShift Web Console:    v3.11.0-0.25.0
"io.openshift.source-repo-commit": "c4f3f9fafa60fbcb188b6fed9b48a177a8f3e723"

How reproducible:
always

Steps to Reproduce:
1. install openshift enabled OLM
2. create subscription for etcd in Catalog Sources
3. click operation icon for etcd-rh2k4 in the subscription list page, click 'Remove Subscription' 
4. check out the checkbox 'Completely remove application instances and resources from the selected namespace'

Actual results:
4. The resources & instance created by subscription were deleted unexpectedly
eg: deployment,pod, service, instance and so on


Expected results:
4. should not delete resources & instances controlled by subscription

Additional info:

Comment 1 Alec Merdler 2018-09-04 17:27:43 UTC
https://github.com/openshift/console/pull/489

Comment 3 shahan 2018-09-06 06:56:05 UTC
checked this issue has been fixed. The resources controlled by one subscription would not be deleted as deletion of subscription if cascade was disabled. verified this bug.
registry.reg-aws.openshift.com:443/openshift3/ose-console                        v3.11               8479e847d3a8        7 hours ago         250 MB

Comment 5 errata-xmlrpc 2018-10-11 07:25:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2652