Bug 2083028

Summary: [DR] Hybrid console cluster context switching is affecting DR UI on ACM view
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: gowtham <gshanmug>
Component: management-consoleAssignee: gowtham <gshanmug>
Status: CLOSED NOTABUG QA Contact: Aman Agrawal <amagrawa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11CC: aos-bugs, jefbrown, kramdoss, madam, mmuench, muagarwa, nthomas, ocs-bugs, odf-bz-bot, rcyriac, tdesala
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.11.0-89 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-21 07:48:23 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:

Description gowtham 2022-05-09 06:30:09 UTC
Description of problem:

DRPolicy list page is unable to list all existing DRPolies under the All Cluster view on the hybrid console.
    When the previous cluster context is not a "local-cluster", Then DR UI under the "All Cluster" view is unable to read the DRPolicy CR from the hub cluster. It is trying to read the spoke cluster which is from the previous context.

Version-Release number of selected component (if applicable):

How reproducible:
100%

Steps to Reproduce:

Enable hybrid console on OCP 4.11 cluster, (enable-feature gate and install ACM 2.5) For more info [https://gist.github.com/TheRealJon/921905a74329891e1f2153a2d57aa44d]
    1. Import/Create managed cluster into ACM.
    2. Install odf-multicluster-orchestrator  4.11.
    3. Switch the context to any managed cluster.
    4. Now, switch the context to "All Cluster"
    5. On left navigation go to -> "Data Services" -> "Data Policies".
    6. DRPolicy list page won't display anything.

Actual results:
    DRPolicy list page does not display the existing DRPolicies

Expected results:
    DRPolicy list page should display existing DRPolicies

Additional info:
    Required versions:
        ACM 2.5
        OCP 4.11
        ODF-Multicluster-Orchestrator 4.11
        DR HUB operator 4.11

Comment 4 Mudit Agarwal 2022-05-11 14:28:31 UTC
If the BZ is in POST, we should have an upstream PR. Please attach the same.