IBM / ibm-storage-odf-console

ibm-storage-odf-console provides IBM storage specific console page, which will be loaded by ODF console when end users access IBM storage. It's specially designed for displaying IBM specific storage attributes to customer. Current scope includes IBM flashsystem only.
Apache License 2.0
3 stars 7 forks source link

After deleting the IBM FlashSystem Storage System, the secret was not cleaned up #33

Closed MonicaLemay closed 2 years ago

MonicaLemay commented 3 years ago

This defect is on cluster2, there is spreadsheet in the box note that provides information.

After deleting the IBM FlashSystem Storage System, I attempted to create another one.

The following message appeared on the GUI. Screen Shot 2021-09-20 at 2 45 25 PM

The secret that was created when the Storage System was created, did not get deleted when the Storage System was deleted. Because this secret is automatically created, it should be automatically deleted.

The cli also shows the secret is still there.

[root@cluster2-inf ~]# oc get secret -n openshift-storage  ibm-flashsystem-storage
NAME                      TYPE     DATA   AGE
ibm-flashsystem-storage   Opaque   3      4d2h

You can see that the secret is 4 days old.

Screen Shot 2021-09-20 at 2 54 26 PM This screen shot, above, shows the error that the secret exists. And it appears that the create storage system fails. I can keep clicking on it and it shows the same error.

Oddly, both the Storage Systems GUI and the cli shows that the storage system is indeed created, despite the error panel. Both the CLI and GUI don't indicate that it is only partially created.

[root@cluster2-inf ~]# oc get storagesystems -A
NAMESPACE           NAME                                    STORAGE-SYSTEM-KIND                       STORAGE-SYSTEM-NAME
openshift-storage   ibm-flashsystem-storage-storagesystem   flashsystemcluster.odf.ibm.com/v1alpha1   ibm-flashsystem-storage

Screen Shot 2021-09-20 at 3 00 40 PM

However a describe of the storage system shows that it is 112 seconds old

Events:
  Type     Reason           Age   From                      Message
  ----     ------           ----  ----                      -------
  Warning  ReconcileFailed  112s  StorageSystem controller  FlashSystemCluster.odf.ibm.com "ibm-flashsystem-storage" not found
[root@cluster2-inf ~]#

There are really a couple of problems here. 1) the secret should have been deleted when the storage system was deleted 2) The GUI should indicate that the storage system is partially created

shdn-ibm commented 3 years ago

known issue, try to fix it in operator

shdn-ibm commented 2 years ago

After discussion with team, it is hard to remove the secret as block csi may use it for pvc handling. We need to doc it in user guide to manually remove this secret when uninstall odf.

shdn-ibm commented 2 years ago

add below cleanup commend in documentation for user to cleanup

oc delete secret -n openshift-storage ibm-flashsystem-storage

close.