Juju plugins no longer work if there are no controllers

Bug #1785205 reported by Stuart Bishop
6
This bug affects 1 person
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-retry-hooks=false --config apt-http-proxy=http://10.0.4.1:3142/

$ 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

Revision history for this message
Anastasia (anastasia-macmood) wrote :

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/

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Anastasia (anastasia-macmood)
milestone: none → 2.5-beta1
status: Triaged → In Progress
Revision history for this message
Anastasia (anastasia-macmood) wrote :

PR against develop (heading into 2.5): https://github.com/juju/juju/pull/9101

Revision history for this message
Anastasia (anastasia-macmood) wrote :

I'll propose back-port as soon as 2.4 freeze is over.

Changed in juju:
status: In Progress → Fix Committed
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Stuart Bishop,

If you have means of verifying that the fix works for you, it'd be great \o/

Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju:
status: Fix Committed → Fix Released
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.