ERROR getting controller environ: unable to get bootstrap information from client store or API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Kill controller fails when the controller instance is gone, leaving the user to manually clean up controllers.yaml.
#### Juju belives a controller exists, but it does not:
jenkins@
Use --refresh option with this command to see the latest information.
Controller Model User Access Cloud/Region Models Nodes HA Version
auto-osci-sv07* controller admin superuser serverstack/
...
#### Cannot destroy or kill the controller:
jenkins@
WARNING! This command will destroy the "auto-osci-sv07" controller.
This includes all machines, applications, data and other resources.
Continue? (y/N):y
Unable to open API: open connection timed out
ERROR getting controller environ: unable to get bootstrap information from client store or API
...
#### Just move the yaml, and all is well:
jenkins@
jenkins@
ERROR No controllers registered.
Please either create a new controller using "juju bootstrap" or connect to
another controller that you have been given access to using "juju register".
...
#### Version info:
channels:
stable: 2.6.9 2019-09-25 (9102) 68MB classic
candidate: ↑
beta: ↑
edge: 2.7-beta1+
2.6/stable: 2.6.9 2019-09-26 (9102) 68MB classic
2.6/candidate: ↑
2.6/beta: ↑
2.6/edge: 2.6.9+2.6-f190cd8 2019-09-20 (9083) 74MB classic
2.5/stable: 2.5.8 2019-06-27 (8361) 67MB classic
2.5/candidate: ↑
2.5/beta: ↑
2.5/edge: 2.5.9+2.5-36af233 2019-07-24 (8546) 73MB classic
2.4/stable: 2.4.7 2019-05-23 (6012) 58MB classic
2.4/candidate: ↑
2.4/beta: ↑
2.4/edge: ↑
2.3/stable: 2.3.9 2018-09-19 (5267) 55MB classic
2.3/candidate: ↑
2.3/beta: ↑
2.3/edge: 2.3.10+2.3-41313d1 2019-03-25 (7080) 55MB classic
installed: 2.6.9 (9102) 68MB classic
jenkins@
2.6.9-xenial-amd64
When we see this condition, `juju controllers --refresh` is not helpful because it doesn't refresh:
jenkins@ juju-001b34- osci-18: ~$ time juju controllers --refresh --debug "/snap/ juju/9102/ bin/juju" , "controllers", "--refresh", "--debug"}
16:41:25 INFO juju.cmd supercommand.go:57 running juju [2.6.9 gc go1.10.4]
16:41:25 DEBUG juju.cmd supercommand.go:58 args: []string{
16:41:25 INFO juju.juju api.go:67 connecting to API addresses: [172.17.107.3:17070 252.3.0.1:17070]
^C
real 3m15.526s
user 0m0.152s
sys 0m0.148s