Bug 1837219

Summary: [manila-csi-driver-operator] manila csi driver did not be uninstalled after the manilacsi instance is deleted
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: StorageAssignee: Mike Fedosin <mfedosin>
Status: CLOSED ERRATA QA Contact: Wei Duan <wduan>
Severity: high Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, egarcia, jsafrane
Target Milestone: ---   
Target Release: 4.5.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: 2020-07-13 17:39: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:
Bug Depends On: 1832661    
Bug Blocks:    

Description Wei Duan 2020-05-19 06:17:23 UTC
Description of problem:
Manila csi driver should be uninstalled when manilacsi instance is deleted

Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-05-17-235851

How reproducible:
Always

Steps to Reproduce:
1. Login into the webconsole
2. Install csi-driver-manila-operator from operator hub and create manilacsi instance successfully, manila csi driver is installed successfully. 
3. Delete manilacsi instance 

Actual results:
manilacsi object is deleted but manila csi driver doesn't be uninstalled.
[wduan@MINT operator]$ oc get manilacsi
No resources found.
 
[wduan@MINT operator]$ oc get pod
NAME                                          READY   STATUS    RESTARTS   AGE
csi-driver-manila-operator-7cd57f8497-jmxfz   1/1     Running   0          20m
csi-nodeplugin-nfsplugin-qcwsb                1/1     Running   0          19m
csi-nodeplugin-nfsplugin-qwjb6                1/1     Running   0          19m
csi-nodeplugin-nfsplugin-x42p7                1/1     Running   0          19m
openstack-manila-csi-nodeplugin-gmk7w         2/2     Running   0          19m
openstack-manila-csi-nodeplugin-gwzz7         2/2     Running   0          19m
openstack-manila-csi-nodeplugin-rlcn8         2/2     Running   0          19m

Expected results:
When manilacsi object is deleted, manila csi driver should be uninstalled.

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 4 Wei Duan 2020-06-12 02:52:22 UTC
Verified pass with images in https://errata.devel.redhat.com/advisory/54130.

[wduan@MINT verification-tests]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.5.0-0.nightly-2020-06-10-201008   True        False         23h     Cluster version is 4.5.0-0.nightly-2020-06-10-201008


After uninstalled ManilaDriver, the project "openshift-manila-csi-driver" and all resources are deleted.

[wduan@MINT verification-tests]$ oc get pod -w
NAME                                                    READY   STATUS        RESTARTS   AGE
csi-nodeplugin-nfsplugin-2hzqm                          0/1     Terminating   0          10h
csi-nodeplugin-nfsplugin-dk5bz                          0/1     Terminating   0          10h
openstack-manila-csi-controllerplugin-c5b6f9645-h24lx   0/3     Terminating   0          10h
openstack-manila-csi-nodeplugin-2v54j                   0/2     Terminating   0          10h
openstack-manila-csi-nodeplugin-klsfv                   0/2     Terminating   0          10h
openstack-manila-csi-nodeplugin-zrljl                   0/2     Terminating   0          10h
openstack-manila-csi-controllerplugin-c5b6f9645-h24lx   0/3     Terminating   0          10h
openstack-manila-csi-controllerplugin-c5b6f9645-h24lx   0/3     Terminating   0          10h
csi-nodeplugin-nfsplugin-dk5bz                          0/1     Terminating   0          10h
csi-nodeplugin-nfsplugin-dk5bz                          0/1     Terminating   0          10h
openstack-manila-csi-nodeplugin-zrljl                   0/2     Terminating   0          10h
openstack-manila-csi-nodeplugin-zrljl                   0/2     Terminating   0          10h
openstack-manila-csi-nodeplugin-2v54j                   0/2     Terminating   0          10h
openstack-manila-csi-nodeplugin-2v54j                   0/2     Terminating   0          10h
csi-nodeplugin-nfsplugin-2hzqm                          0/1     Terminating   0          10h
csi-nodeplugin-nfsplugin-2hzqm                          0/1     Terminating   0          10h
openstack-manila-csi-nodeplugin-klsfv                   0/2     Terminating   0          10h
openstack-manila-csi-nodeplugin-klsfv                   0/2     Terminating   0          10h
^C[wduan@MINT verification-tests]$ oc get pod 
No resources found in openshift-manila-csi-driver namespace.

[wduan@MINT verification-tests]$ oc get all
No resources found in openshift-manila-csi-driver namespace.

[wduan@MINT verification-tests]$ oc project
error: you do not have rights to view project "openshift-manila-csi-driver" specified in your config or the project doesn't exist
[wduan@MINT verification-tests]$ oc get project openshift-manila-csi-driver
Error from server (NotFound): namespaces "openshift-manila-csi-driver" not found

Comment 5 errata-xmlrpc 2020-07-13 17:39: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-2020:2409