Bug 2051449

Summary: [UI] ODF tab under Storage doesn't disappear if openshift-storage namespace is deleted and all it's dependencies are removed
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Aman Agrawal <amagrawa>
Component: management-consoleAssignee: Bipul Adhikari <badhikar>
Status: CLOSED NOTABUG QA Contact: Prasad Desala <tdesala>
Severity: low Docs Contact:
Priority: high    
Version: 4.10CC: badhikar, jefbrown, muagarwa, nberry, nthomas, ocs-bugs, odf-bz-bot, skatiyar, wlewis
Target Milestone: ---Keywords: Reopened
Target Release: ---Flags: amagrawa: needinfo? (afrahman)
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: 2023-03-20 06:51:25 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:

Comment 1 Bipul Adhikari 2022-02-08 09:35:42 UTC
Aman did you verify the CRDs that were injected by the Operator were deleted as well? 
Is the Object Buket Claim tab also seen?

Comment 10 Bipul Adhikari 2022-03-01 04:27:11 UTC
I just tried to reproduce it using two versions of ODF 4.9.3 and ODF 4.10.0-171 with OCP 4.11. 
The issues were not reproducible.
When `oc delete -n openshift-storage storagesystem --all --wait=true` command was applied the OB/C tabs stopped appearing. 
After `oc delete project openshift-storage --wait=true --timeout=5m` command was applied and the page was refreshed the ODF tab stopped appearing as well.

Refresh is mandatory as we are not uninstalling operator from Installed Operators page when using the above command and the console manifest cannot get updated( we could update it from the cli as well).
If the console manifest were to be updated a toast notification would appear for refreshing the page.

Even if we don't incorporate commands to update manifest a very easy workaround is to just refresh the page and everything would work.

Comment 11 Sanjal Katiyar 2022-03-03 07:12:12 UTC
Just FYI, I tried as well and was unable to reproduce this issue. Maybe something was wrong with the cluster or the points which are mentioned in comment 10 may be the valid reasons.

Comment 14 Bipul Adhikari 2022-03-25 04:28:00 UTC
I think we need to update the uninstallation docs stating that a refresh is mandatory.

Comment 19 Mudit Agarwal 2022-06-20 14:50:34 UTC
Not a 4.11 blocker

Comment 21 Bipul Adhikari 2022-11-07 04:28:29 UTC
Moving it ODF 4.13

Comment 22 Bipul Adhikari 2022-11-07 04:30:28 UTC
When Operator is uninstalled from the `Installed Operator` page, then a proper refresh popup will appear clicking on it will result in the removal of ODF tab from under Storage section. Based on this closing the bug. Please update the BZ if the behavior is not enough.

Comment 33 Bipul Adhikari 2023-03-20 06:51:25 UTC
For the UI to work correctly, correct uninstallation operations need to be taken. The process that is taken is not the correct way to uninstall an Operator. If you want to delete the operator by performing patch operations then, please delete the odf-console consolePlugin CR followed by patching the consoleoperatorconfig that would show the Refresh Popup. 
If these things are not documented we need a doc bug. But this is something that we cannot do about from the product side.