Bug 2080152 - odf-console plugin specific UIs can not be successfully loaded because of code reference resolution failed
Summary: odf-console plugin specific UIs can not be successfully loaded because of cod...
Keywords:
Status: CLOSED DUPLICATE of bug 2070542
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Storage Plugin
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Ankush Behl
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-29 06:58 UTC by Yadan Pei
Modified: 2022-04-29 12:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-29 12:02:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yadan Pei 2022-04-29 06:58:06 UTC
Description of problem:
Loading odf-console plugin specific UIs returns error "Failed to load module 'dashboard' of plugin odf-console.0 Error: Shared module @openshift-console/dynamic-plugin-sdk-internal-kubevirt doesn't exist in shared scope default"

Version-Release number of selected component (if applicable):
4.11.0-0.nightly-2022-04-26-181148

How reproducible:
Always

Steps to Reproduce:
1. Install "OpenShift Data Foundation" operator from OperatorHub
$ oc get csv -n openshift-storage
NAME                              DISPLAY                       VERSION   REPLACES   PHASE
mcg-operator.v4.10.0              NooBaa Operator               4.10.0               Succeeded
ocs-operator.v4.10.0              OpenShift Container Storage   4.10.0               Succeeded
odf-csi-addons-operator.v4.10.0   CSI Addons                    4.10.0               Succeeded
odf-operator.v4.10.0              OpenShift Data Foundation     4.10.0               Succeeded
2. Create "StorageSystem" CR, wait storagesystem reconciled completed
# oc get storagesystem --all-namespaces
NAMESPACE           NAME                               STORAGE-SYSTEM-KIND                  STORAGE-SYSTEM-NAME
openshift-storage   ocs-storagecluster-storagesystem   storagecluster.ocs.openshift.io/v1   ocs-storagecluster
# oc get storagesystem ocs-storagecluster-storagesystem -n openshift-storage -o yaml
apiVersion: odf.openshift.io/v1alpha1
kind: StorageSystem
metadata:
  creationTimestamp: "2022-04-29T02:19:56Z"
  finalizers:
  - storagesystem.odf.openshift.io
  generation: 1
  name: ocs-storagecluster-storagesystem
  namespace: openshift-storage
  resourceVersion: "60984"
  uid: c5f115db-e3d8-4a6f-aae2-77470ecc383f
spec:
  kind: storagecluster.ocs.openshift.io/v1
  name: ocs-storagecluster
  namespace: openshift-storage
status:
  conditions:
  - lastHeartbeatTime: "2022-04-29T02:19:57Z"
    lastTransitionTime: "2022-04-29T02:19:57Z"
    message: Reconcile is completed successfully
    reason: ReconcileCompleted
    status: "True"
    type: Available
  - lastHeartbeatTime: "2022-04-29T02:19:57Z"
    lastTransitionTime: "2022-04-29T02:19:57Z"
    message: Reconcile is completed successfully
    reason: ReconcileCompleted
    status: "False"
    type: Progressing
  - lastHeartbeatTime: "2022-04-29T02:19:57Z"
    lastTransitionTime: "2022-04-29T02:19:56Z"
    message: StorageSystem CR is valid
    reason: Valid
    status: "False"
    type: StorageSystemInvalid
  - lastHeartbeatTime: "2022-04-29T02:19:57Z"
    lastTransitionTime: "2022-04-29T02:19:56Z"
    reason: Ready
    status: "True"
    type: VendorCsvReady
  - lastHeartbeatTime: "2022-04-29T02:19:57Z"
    lastTransitionTime: "2022-04-29T02:19:57Z"
    reason: Found
    status: "True"
    type: VendorSystemPresent

3. Refresh console and load odf-plugin specific UIs

Actual results:
We can see following error:
Failed to load module 'dashboard' of plugin odf-console.0 Error: Shared module @openshift-console/dynamic-plugin-sdk-internal-kubevirt doesn't exist in shared scope default
    at ensureExistence (consumes:19:1)
    at consumes:97:1
    at consumes:82:1
    at Object.webpack/sharing/consume/default/@openshift-console/dynamic-plugin-sdk-internal-kubevirt (consumes:140:1)
    at consumes:179:1
    at Array.forEach (<anonymous>)
    at Object.window.loadPluginEntry.__webpack_require__.f.consumes (consumes:162:1)
    at ensure chunk:6:1
    at Array.reduce (<anonymous>)
    at Function.window.loadPluginEntry.__webpack_require__.e (ensure chunk:5:1)
overrideMethod @ react_devtools_backend.js:3973
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
i @ main-chunk-51847fc46edac7481d94.min.js:1
Promise.then (async)
c @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
u @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
u @ main-chunk-51847fc46edac7481d94.min.js:1
odf-console.0-dashboard.default @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
C @ main-chunk-51847fc46edac7481d94.min.js:1
(anonymous) @ main-chunk-51847fc46edac7481d94.min.js:1
k @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171354
Hs @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
xc @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
Cc @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
_c @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
pc @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
(anonymous) @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
t.unstable_runWithPriority @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171700
Hi @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
Vi @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
qi @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
De @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387
Yt @ vendors~main-chunk-2f67cffb997b7f27f840.min.js:171387

react_devtools_backend.js:3973 Code reference resolution failed for plugin odf-console.0

Expected results:
odf-console specific UIs "OpenShift Data Foundation" nav menu should be rendered correctly

Additional info:

Comment 1 Bipul Adhikari 2022-04-29 12:02:53 UTC
This is being worked on right now.

*** This bug has been marked as a duplicate of bug 2070542 ***


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