juju gui model selector

Bug #1885181 reported by Aymen Frikha
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-gui
Fix Committed
Undecided
Unassigned

Bug Description

With juju 2.7.6, we are not able to switch between models using the juju gui.
We can do it through the URL as a workaround but it's not convenient for demos.

Tim Penhey (thumper)
affects: juju → juju-gui
Revision history for this message
Jeff Pihach (hatch) wrote :

Thanks for filing this issue.

We track issues for the juju-gui at https://github.com/juju/juju-gui/issues

With that said I wasn't able to reproduce this on a locally deployed controller or on JAAS. Can you provide more information and reproduction steps please.

What browser/os were you using?
Are there any error logs in the browser console?
Have you tried other browsers or disabled extensions?

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

It seems there is an issue with github, I'm not able to submit an issue to the project.

With ubuntu desktop 19.10, I tested it with Chormium, Firefox and Chrome, all the same behaviour.

I found an issue in the browser console:

init-pkg.js:34 TypeError: Cannot read property 'id' of undefined
    at init-pkg.js:48
    at Array.map (<anonymous>)
    at c.generateModelList (init-pkg.js:48)
    at c._generateModels (init-pkg.js:48)
    at c.render (init-pkg.js:48)
    at Ma (init-pkg.js:34)
    at Pa (init-pkg.js:34)
    at ja (init-pkg.js:34)
    at Pr (init-pkg.js:34)
    at Mr (init-pkg.js:34)
mr @ init-pkg.js:34
n.callback @ init-pkg.js:34
cr @ init-pkg.js:34
lr @ init-pkg.js:34
Nr @ init-pkg.js:34
Ir @ init-pkg.js:34
(anonymous) @ init-pkg.js:34
i.unstable_runWithPriority @ init-pkg.js:34
ai @ init-pkg.js:34
ei @ init-pkg.js:34
Zr @ init-pkg.js:34
hi @ init-pkg.js:34
ln @ init-pkg.js:34

Revision history for this message
Jeff Pihach (hatch) wrote :

Thanks for the stack trace. While minified has allowed me to narrow it down a bit. What is the cloud that this is on?

You can get this information by running `juju status` on the models and it'll be something like:

Cloud/Region
google/us-central1

Are you able to open the model list drop down at all? Does it only break when trying to select a model?

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

I tested that on aws with region us-east (Sorry the cloud is down, I'm not able to get the output of juju status)

I also tested that when deployed on MAAS.

no, I'm not able to open the model list. When clicking on the model list, the mouse pointer gets changed to a sizing pointer. This is the only behaviour I saw.

Revision history for this message
Jeff Pihach (hatch) wrote :

I have attempted to make a patch to resolve the issue with the information I have :)

Download this tarball and run `juju upgrade-gui path/to/tarball` then `juju gui` and see if it works.

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

Yes, that works perfectly, thank you very much :)

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

ok, sorry, it seems that it works but only before I deploy a k8s model. after deploying Kubeflow with Juju on top of CDK it stops working.

Revision history for this message
Jeff Pihach (hatch) wrote :

Ahh yes. Unfortunately the GUI does not support K8s models.

With Juju 2.8 we've released a new dashboard to replace the GUI. You can find more information here:

https://discourse.juju.is/t/jaas-dashboard-the-new-juju-gui/2978

If you're able to upgrade or bootstrap with 2.8 then you'll get the dashboard automatically.

Jeff Pihach (hatch)
Changed in juju-gui:
status: New → Confirmed
Jeff Pihach (hatch)
Changed in juju-gui:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.