incorrect instructions on failure when using --keep-broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Anastasia |
Bug Description
Using juju bootstrap --keep-broken, when the bootstrap fails the INFO message tells the user to keep up the failed controller, however no controller exists:
2017-11-02 18:28:17 DEBUG juju.cmd.jujud main.go:187 jujud complete, code 0, err <nil>
14:28:17 INFO cmd bootstrap.go:504 bootstrap failed but --keep-broken was specified so resources are not being destroyed.
When you have finished diagnosing the problem, remember to clean up the failed controller.
See `juju kill-controller`.
ERROR failed to bootstrap model: subprocess encountered error code 1
14:28:17 DEBUG cmd supercommand.go:459 error stack:
subprocess encountered error code 1
github.
$ juju controllers
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".
-------
Another question. How does the user know which resources to clean up? Instance, security groups, security rules...
Changed in juju: | |
importance: | Undecided → Medium |
Changed in juju: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.3-beta3 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
keep broken is more of an admin tool rather than an end user tool.
If bootstrap fails, there won't be any controller registered - you need to ssh in to the machine via its IP address. You typically need to use the cloud console (or equivalent CLI tool) to destroy the machine and its resources.