`juju environments` fails due to missing ~/.juju/current-environment

Bug #1506680 reported by Adam Israel on 2015-10-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
High
Unassigned
1.25
High
Jesse Meek

Bug Description

Summary:

The Juju Environment System (JES) does not work on a fresh install due to lack of ~/.juju/current-environment

Setup:

juju 1.25-beta1
ubuntu trusty
fresh vm

Details:

I launched a new Vagrant VM, installed juju 1.25-beta1 via PPA, and ran apt-get update && apt-get upgrade. I set the "jes" feature flag, destroyed the local environment, and bootstrapped. Then I attempted to create a new environment:

$ juju system create-environment test
error: no system specified

$ ls ~/.juju/
environments environments.yaml jclient local ssh

$ juju switch local
-> local

$ ls ~/.juju/
current-environment environments environments.yaml jclient local ssh

$ juju system create-environment test
created environment "test"
local -> test

This can be recreated by deleting ~/.juju/current-environment and re-running the juju system commands.

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui) on 2015-10-19
Changed in juju-core:
milestone: none → 1.26-alpha1
Curtis Hovey (sinzui) on 2015-11-03
Changed in juju-core:
milestone: 1.26-alpha1 → 1.26-alpha2
Changed in juju-core:
milestone: 1.26-alpha2 → 1.26-beta1
Cheryl Jennings (cherylj) wrote :

Looks like this was fixed in master in this PR: https://github.com/juju/juju/pull/3883

Changed in juju-core:
status: Triaged → Fix Committed
milestone: 1.26-beta1 → 2.0-alpha1
Changed in juju-core:
milestone: 2.0-alpha1 → 1.26-alpha3
Curtis Hovey (sinzui) on 2015-12-18
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers