-
Bug
-
Resolution: Done
-
Critical
-
None
-
4.14
-
None
-
-
-
Critical
-
No
-
False
-
Description of problem:
Project github repo: https://github.com/artemiscloud/activemq-artemis-self-provisioning-plugin.git We are currently working on the UI for the activemq-artemis-self-provisioning plugin project. We have encountered an issue with the OpenShift console while loading our project. It was functional before, but now it's presenting a problem with the two ways: 1. When we start our project using 'yarn run start-console,' it initially loads our project. But after a refresh, reload, or clicking the back button, our plugin disappears from the console.Checking the pod status reveals that it remains active and running. 2. Currently, running the project with 'yarn run start-console' does not load our plugin at all. Instead, it displays this error message in the console: 'Failed to load a valid plugin manifest.
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
To reproduce the issue, follow these steps: In one terminal window: 1. Run `yarn install`. 2. Execute `yarn run start`. In another terminal window: 1. Enter `eval $(crc oc-env)` 2. login using `oc login -u kubeadmin -p S5nrG-cEyGU-IeJRg-2IVfd https://api.rhkielly-414.broker.app-services-dev.net:6443 --insecure-skip-tls-verify=true` 3. Run `yarn run start-console` (requires Docker or podman) Browser: Go to localhost:9000 to observe the plugin in the UI.
Actual results:
Expected results:
Upon starting our project and navigating to `localhost:9000` in the browser, the plugin should load within the ActiveMQ Artemis entry. It is expected to display all the metrics data and retain full functionality as before. The plugin should persist without disappearing after refreshing or reloading the console.
Additional info:
All the supplementary details and screenshots of the encountered error messages have been uploaded to the '#forum-ocp-console' Slack channel. You can access them here. https://app.slack.com/client/E030G10V24F/C6A3NV5J9 When I refresh the console or browser, the following error message appears in the console: ``` main-chunk-594318b42ce28e2814c9.min.js:1 Failed to get a valid plugin manifest from /api/plugins/activemq-artemis-self-provisioning-plugin/ SyntaxError: Unexpected end of JSON input at main-chunk-594318b42ce28e2814c9.min.js:1:1 at Generator.next (<anonymous>) at i (main-chunk-594318b42ce28e2814c9.min.js:1:1) (anonymous) @ main-chunk-594318b42ce28e2814c9.min.js:1 (anonymous) @ main-chunk-594318b42ce28e2814c9.min.js:1 l @ main-chunk-594318b42ce28e2814c9.min.js:1 Promise.then (async) GET http://localhost:9000/api/kubernetes/apis/operators.coreos.com/v1alpha1/namespaces/ 404 (Not Found) ``` Furthermore,upon starting the project with the `yarn run start-console` command, an error message related to the proxy appears in my VSCode terminal. ``` CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.rhkielly-414.broker.app-services-dev.net:6443/apis/console.openshift.io/v1/consolenotifications?watch=true&resourceVersion=17596628 ```
- relates to
-
OCPBUGS-23516 Monitoring console plugin should avoid browser-caching failures
- Closed
- links to