Bug 2297447

Summary: [RDR/MDR] [UI] Create DRPolicy page is breaking "Oh no! Something went wrong"
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Sanjal Katiyar <skatiyar>
Component: management-consoleAssignee: Sanjal Katiyar <skatiyar>
Status: CLOSED ERRATA QA Contact: Aman Agrawal <amagrawa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.17CC: ebenahar, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.17.0-87 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-30 14:28:43 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:
Attachments:
Description Flags
create_dr_policy none

Description Sanjal Katiyar 2024-07-12 05:53:23 UTC
Created attachment 2039494 [details]
create_dr_policy

Description of problem (please be detailed as possible and provide log
snippests):
TypeError
Description:
Cannot read properties of undefined (reading 'split')

Component trace:
at SelectedCluster (webpack-internal:///./packages/mco/components/create-dr-policy/selected-cluster-view.tsx:38:28)
    at div
    at div
    at GenerateId (webpack-internal:///./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js:23:9)
    at FormGroup (webpack-internal:///./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js:19:11)
    at form
    at FormBase (webpack-internal:///./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js:15:11)
    at CreateDRPolicy (webpack-internal:///./packages/mco/components/create-dr-policy/create-dr-policy.tsx:135:109)
    at u (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1328648)
    at d (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1328804)
    at p (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1329067)
    at _ (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:4920)
    at ne (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:10364)
    at Suspense
    at i (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:309123)
    at section
    at m (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:6:122603)
    at div
    at div
    at t.a (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1313799)
    at div
    at div
    at l (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:60:99892)
    at c (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:6:292591)
    at div
    at c (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:6:22550)
    at c (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1089929)
    at http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:275414
    at R (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:12:14964)
    at main
    at div
    at b (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:60:261843)
    at div
    at div
    at l (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:6:354854)
    at div
    at div
    at l (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:60:99892)
    at c (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:6:292591)
    at div
    at c (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:6:22550)
    at zn (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:1:131041)
    at t.default (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:732160)
    at t.default (http://localhost:9000/static/quick-start-chunk-6469ff6be3fa10a49a2c.min.js:1:1248)
    at l (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:153057)
    at t.a (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1391739)
    at te (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1412735)
    at gt (http://localhost:9000/static/vendor-patternfly-5~main-chunk-696d605803a3f743d91c.min.js:1:89013)
    at te (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1412735)
    at te (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1412735)
    at QueryClientProvider (webpack-internal:///../../node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js:65:3)
    at RecoilRoot_INTERNAL (webpack-internal:///../../node_modules/recoil/es/index.js:4354:3)
    at RecoilRoot (webpack-internal:///../../node_modules/recoil/es/index.js:4516:5)
    at PluginDataContextProvider (webpack-internal:///../../src/components/PluginDataContextProvider.tsx:13:113)
    at te (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1412735)
    at o (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:676271)
    at t.a (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1384013)
    at t.a (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1381555)
    at ne (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1412857)
    at ae (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1414871)
    at _ (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:4920)
    at ne (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:10364)
    at _ (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:4920)
    at ne (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:10364)
    at te (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:31:9773)
    at G (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:12:11631)
    at t (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:12:24311)
    at re (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:1415133)
    at t.a (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:649428)
    at t.a (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:979612)
    at l (http://localhost:9000/static/main-chunk-6aec5f08b9c3826e864f.min.js:1:499683)
    at t.a (http://localhost:9000/static/vendor-plugins-shared~main-chunk-bace7b41ecf421c38912.min.js:12:31092)
    at Suspense

Stack trace:
TypeError: Cannot read properties of undefined (reading 'split')
    at parseNamespaceName (webpack-internal:///./packages/mco/utils/disaster-recovery.tsx:356:61)
    at SelectedCluster (webpack-internal:///./packages/mco/components/create-dr-policy/selected-cluster-view.tsx:41:99)
    at ra (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:58879)
    at Us (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:111315)
    at Su (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:98327)
    at wu (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:98255)
    at _u (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:98118)
    at hu (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:95105)
    at http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:117:44774
    at t.unstable_runWithPriority (http://localhost:9000/static/vendors~main-chunk-6257e96dce91f0f4e6f6.min.js:125:3768)

Version of all relevant components (if applicable):
Latest ODF 4.17


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
Yes, can't create DRPolicy from the console

Is there any workaround available to the best of your knowledge?
Use CLI.

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?


Can this issue reproducible?


Can this issue reproduce from the UI?


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Go to "Data Services >> Disaster recovery >> Policies >> Create DRPolicy".
2. Select clusters from "Connect clusters" list.
3.


Actual results:
Page is breaking with and error "Oh no! Something went wrong".


Expected results:
It should work as expected and we should be able to create DRPolicy from the console.


Additional info:

Comment 3 Sanjal Katiyar 2024-07-12 06:08:14 UTC
UI on hub reads the info about the ODF/StorageSystems/StorageClusters from ManagedCluster CR's status. OCS operator used to create ClusterClaims on the managed cluster which populated this info.

Now, as per the refactoring in MCO/OCS operator due to epic: https://issues.redhat.com/browse/RHSTOR-4886, OCS now creates a ConfigMap and that can be accessed on hub via ManagedClusterView CR (created by MCO). UI needs to update this as well in order to make existing functionalities work for DRPolicy creation page.

Comment 4 Sanjal Katiyar 2024-07-12 06:20:15 UTC
no visible (or UX) changes... internal change only, for updating the source of info.

Comment 5 Sanjal Katiyar 2024-07-22 06:05:26 UTC
workaround is to use CLI for policy creation...

Comment 10 Sunil Kumar Acharya 2024-09-03 05:33:26 UTC
Please update the RDT flag/text appropriately.

Comment 13 errata-xmlrpc 2024-10-30 14:28:43 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 (Important: Red Hat OpenShift Data Foundation 4.17.0 Security, Enhancement, & Bug Fix Update), 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/RHSA-2024:8676