destroying the current model should clear the current-model
Bug #1505504 reported by
Richard Harding
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Andrew Wilkins |
Bug Description
Created several environments, switched among them, and then destroyed the current one.
I get the error:
ERROR environment "spark" not found
A grep finds:
grep spark .juju/**/*
.juju/current-
Attempts to switch over fail:
juju system use-env website-analytics
ERROR environment "spark" not found
I manually edited the current-environment file to read 'website-analytics' and then the 'juju system environments' command works properly.
Ubuntu 1.26alpha1
tags: | added: destroy-environment |
Changed in juju-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Andrew Wilkins (axwalk) |
Changed in juju-core: | |
importance: | High → Critical |
tags: | added: blocker |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
tags: | removed: blocker |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta8 → none |
milestone: | none → 2.0-beta8 |
To post a comment you must log in.
In your example, if you've already got the connection details for env 'website-analytics' (through creating the environment yourself, or through a prior use-env command), you can use juju switch and you can work around this issue.
Destroying the current environment should probably put us back into the system context for whatever system was hosting the environment that was just destroyed.