Default model automatically changed to the controller's

Bug #1797823 reported by Haw Loeung
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

Hi,

Since upgrading our main Juju 2 controller to 2.4.3 (was 2.3.9 or so), it seems every now and again the default model switches to the Juju 2.x controller. For example:

| (mojo-prod-community-ubuntu-com)prod-community-ubuntu-com@host:~$ jsft
| ERROR current model for controller prodstack-is not found

| (mojo-prod-community-ubuntu-com)prod-community-ubuntu-com@host:~$ juju models
| Controller: prodstack-is

| Model Cloud/Region Status Machines Cores Access | Last connection
| admin/prod-community-ubuntu-com prodstack-45/bootstack-ps45 available 4 10 admin 15 hours ago

Switching with the following fixes this, until the next time it changes/reverts back.

| juju switch admin/prod-community-ubuntu-com

Revision history for this message
Haw Loeung (hloeung) wrote :

Ah, for some reason, ~/.local/share/juju was rewritten as follows:

| controllers:
| prodstack-is: {}

Revision history for this message
Haw Loeung (hloeung) wrote :

err, that's ~/.local/share/juju/models.yaml

Revision history for this message
Junien F (axino) wrote :

Needless to say, our juju client also got upgraded to 2.4.3, and this is likely where the problem is.

Revision history for this message
Haw Loeung (hloeung) wrote :

Looks like Jacek had already filed a bug about this - LP:1796148

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.