[FFE] request to update juju-quickstart to support JUJU env var

Bug #1359938 reported by Richard Harding
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-quickstart (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

We'd like to complete updating juju-quickstart to support a $JUJU env variable to help enable and aid CI and testing. This would allow the user to specify which Juju client to use which would open the doors to testing quickstart on one system against several versions of Juju.

This does not require any changes to dependencies or functionality.

The list of changes suggested include:

- If $JUJU is set, use that for bootstrap on all systems that do not require juju-quickstart to be run with sudo (due to old LXC requirements)
- If $JUJU is set and we are on an older LXC requiring sudo we output a warning and refuse to run against the $JUJU specified in the env variable.

Work on this is in progress and can be seen at https://codereview.appspot.com/132770043/

This work is not complete, but should be ready soon and so we'd like to request a FFE to complete this work.

Revision history for this message
Francesco Banconi (frankban) wrote :

The changes has been made and released on PyPI (version 1.4.3): https://pypi.python.org/pypi/juju-quickstart/1.4.3

Quickstart now supports overriding the juju executable being invoked via the JUJU env var. This is only allowed on recent juju versions, not requiring sudo to be called on "juju bootstrap" when using local environments (LXC).
This feature helps testing quickstart with development versions of Juju, making releases more reliable and future proof.

The 1.4.3 release also bumps the requirements versions up, to align to what we expect to be included in utopic.

The feature is properly tested (quickstart still have 100% unit tests coverage).

Here is the full changelog:

juju-quickstart (1.4.3) trusty; urgency=low

  * Support for overriding the Juju executable with the JUJU env var.
  * Add support for Ubuntu 14.10 (utopic).
  * Base dependencies update.

 -- Francesco Banconi <email address hidden> Thu, 11 Sep 2014 11:57:47 +0000

I am available for any help or clarification.

Revision history for this message
Francesco Banconi (frankban) wrote :

I forgot to mention that juju-quickstart is in universe.

Revision history for this message
Robie Basak (racb) wrote :

Upload blocked by bug 1374335. juju-quickstart 1.4.4 needs python-websocket >= 0.18 and python-jujuclient >= 0.18.4.

Revision history for this message
Scott Kitterman (kitterman) wrote :

$ rmadison juju-quickstart
 juju-quickstart | 1.3.1-0ubuntu1 | trusty/universe | source, all
 juju-quickstart | 1.3.1-0ubuntu1.1 | trusty-updates/universe | source, all
 juju-quickstart | 1.4.2-0ubuntu1 | utopic/universe | source, all
 juju-quickstart | 1.6.0-0ubuntu1 | vivid/universe | source, all

Changed in juju-quickstart (Ubuntu):
status: New → 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.