'ERROR connecting with bootstrap config' for status on destroyed model

Bug #1602034 reported by Mark Shuttleworth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

Just saw this error trying to get a status on a model that I had destroyed:

$ juju status
ERROR connecting with bootstrap config: aborted

That doesn't explain anything or look useful at all.

Fortunately 'juju models' still worked and listed models, and juju 'switch' let me go to one of those where status works fine.

So this error message seems to be related to the model having been destroyed. If so, it would have been more useful to say something like:

  $ juju status
  ERROR connecting to model 'foo', try 'juju models' and switch to one of them.
  There are 12 accessible models on controller 'ms-azure-foo'.

Revision history for this message
Cheryl Jennings (cherylj) wrote :

What version of juju were you running when you hit this?

Can you confirm that the client version matched the agent version?

Testing with beta11, I see the following message:

$ juju add-model foo
Added 'foo' model on aws/us-west-2 with credential 'cherylj' for user 'admin'

$ juju destroy-model foo -y

$ juju status
ERROR no model in focus

Please use "juju models" to see models available to you.
You can set current model by running "juju switch"
or specify any other model on the command line using the "-m" flag.

Changed in juju-core:
status: New → Incomplete
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1602034] Re: 'ERROR connecting with bootstrap config' for status on destroyed model

I was running 2.0b11 freshly bootstrapped.

Mark

Changed in juju-core:
status: Incomplete → New
Revision history for this message
Richard Harding (rharding) wrote :

I played with this and can get the b11 message if I destroy the model, switch to another model, and switch back to the dying model. In Azure it was taking > 60s for that model to disappear. In the meantime I could run juju status on the dying model and get an empty status output.

Once the model finally went away I'd get the

 ERROR connecting with bootstrap config: aborted

message.

I upgraded to beta12 to see what would happen and experienced a different message but the same behavior. In beta12 you get

juju status
ERROR unknown model: "55459f0f-56c8-4f0b-8cf7-b8a1042df2aa" (not found)

A sample output for steps to reproduce from b11, b12 is the same with only the error message in the end being different.

https://pastebin.canonical.com/161089/

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

Thanks for the repro Rick,

Mark

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: 2.0 usability
Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 2.0-beta13
importance: Medium → High
Curtis Hovey (sinzui)
tags: added: azure-provider
Ian Booth (wallyworld)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Ian Booth (wallyworld)
Revision history for this message
Ian Booth (wallyworld) wrote :

Pull request https://github.com/juju/juju/pull/5849

Note when printing the error message: an admin may have revoked access to a model the current user has cached in their models.yaml file, and there's not (yet) an API to query the controller for a list of accessible models, but nonetheless it will almost always be close enough simply to print the count of the models in the local models.yaml file. So we do that for now.

Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta13 → 2.0-beta14
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta14 → none
milestone: none → 2.0-beta14
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.