Bug 2051449 - [UI] ODF tab under Storage doesn't disappear if openshift-storage namespace is deleted and all it's dependencies are removed [NEEDINFO]
Summary: [UI] ODF tab under Storage doesn't disappear if openshift-storage namespace i...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: management-console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: ---
Assignee: Bipul Adhikari
QA Contact: Prasad Desala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-07 09:29 UTC by Aman Agrawal
Modified: 2023-08-09 16:46 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-20 06:51:25 UTC
Embargoed:
amagrawa: needinfo? (afrahman)


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.