Bug 1732374

Summary: Project local-storage stuck in terminating status after deploy/undeploy local storage
Product: OpenShift Container Platform Reporter: Liang Xia <lxia>
Component: DocumentationAssignee: Latha S <lmurthy>
Status: CLOSED WONTFIX QA Contact: Liang Xia <lxia>
Severity: low Docs Contact: Latha S <lmurthy>
Priority: low    
Version: 4.2.0CC: aos-bugs, chaoyang, jsafrane, kalexand, lmurthy, lpettyjo, piqin
Target Milestone: ---   
Target Release: 4.6.z   
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-08-22 10:10:57 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:
Bug Depends On:    
Bug Blocks: 1820178    

Description Liang Xia 2019-07-23 09:12:14 UTC
Description of problem:
Project local-storage stuck in terminating status.
The project is used for deploy/undeploy local storage.


Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-07-21-222447


How reproducible:
Not sure

Steps to Reproduce:
1.Following https://github.com/openshift/local-storage-operator/blob/master/docs/deploy-with-olm.md#deploy-local-storage-operator
2.Run command `oc delete project local-storage`.

Actual results:
The project stuck in terminating status, though nothing show in the project.


Expected results:
Things are clean-up.
Or
There is a way to manually recover/clean-up everything.


Additional info:
$ oc get project local-storage
NAME            DISPLAY NAME   STATUS
local-storage                  Terminating


$ oc apply -f catalog-create-subscribe.yaml 
Error from server (Forbidden): error when creating "catalog-create-subscribe.yaml": operatorgroups.operators.coreos.com "local-operator-group" is forbidden: unable to create new content in namespace local-storage because it is being terminated
Error from server (Forbidden): error when creating "catalog-create-subscribe.yaml": catalogsources.operators.coreos.com "local-storage-manifests" is forbidden: unable to create new content in namespace local-storage because it is being terminated
Error from server (Forbidden): error when creating "catalog-create-subscribe.yaml": subscriptions.operators.coreos.com "local-storage-subscription" is forbidden: unable to create new content in namespace local-storage because it is being terminated


$ oc status
In project local-storage on server https://api_qe_cluster:6443
You have no services, deployment configs, or build configs.
Run 'oc new-app' to create an application.


$ oc get all
No resources found.

Comment 2 Hemant Kumar 2019-08-02 02:04:14 UTC
This is a known issue - https://github.com/operator-framework/operator-sdk/issues/1503 

The workaround for now is:

1. To not do that.
2. Or to remove the finalizer manually from localvolume CR that exists in `local-storage` namespace. Which will cause localvolume CR to deleted and namespace will be removed. 

We will document this behaviour.

Comment 5 Hemant Kumar 2020-04-03 02:18:33 UTC
*** Bug 1820175 has been marked as a duplicate of this bug. ***

Comment 6 Hemant Kumar 2020-04-03 02:18:59 UTC
*** Bug 1820178 has been marked as a duplicate of this bug. ***

Comment 15 Red Hat Bugzilla 2024-01-06 04:26:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days