Juju plugins no longer work if there are no controllers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Anastasia | ||
2.4 |
Fix Released
|
Medium
|
Anastasia |
Bug Description
Juju fails when there are no controllers, returning an error, before a plugin is invoked. This means that a plugin that creates a controller no longer works
$ cat ~/bin/juju-lxdstart
#!/bin/sh -e
if [ "$1" = "--description" ]; then
echo "LXD Bootstrap"
exit 0
fi
if [ "$1" = "--help" ]; then
echo "usage: juju lxdstart"
exit 0
fi
juju bootstrap --no-gui localhost lxd --config automatically-
$ juju lxdstart
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".
Running the 'juju bootstrap' command manually works fine.
TBH I expect this is WONTFIX
Changed in juju: | |
status: | Fix Committed → Fix Released |
We have recently changed cmd.Init() to cater for CAAS model command. I'll investigate to see what's going on...
Thank you for heads up \o/