juju destroy-environment does not delete the local charm cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Unassigned |
Bug Description
I just ran:
sudo juju bootstrap -e local
juju deploy -e local ubuntu
sudo juju destroy-environment local
sudo juju bootstrap -e local
juju deploy -e local ubuntu
And the last command fails with:
2013-12-11 12:48:46 INFO juju.provider.local environprovider
2013-12-11 12:48:46 DEBUG juju state.go:75 waiting for DNS name(s) of state server instances [localhost]
2013-12-11 12:48:46 INFO juju.state open.go:67 opening state; mongo addresses: ["10.0.3.1:37017"]; entity ""
2013-12-11 12:48:46 INFO juju.state open.go:105 connection established
2013-12-11 12:48:50 INFO juju conn.go:299 writing charm to storage [1539 bytes]
2013-12-11 12:48:50 INFO juju conn.go:311 adding charm to state
2013-12-11 12:48:50 ERROR juju supercommand.go:282 cannot add service "ubuntu": service already exists
We just had this bug also reported on IRC where someone was testing their local charm, but they kept getting an existing revision and they had to use juju deploy --upgrade.
I'm pretty sure that for providers != local we always destroy the control bucket so we don't run into this problem.
Changed in juju-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Dimiter Naydenov (dimitern) |
Changed in juju-core: | |
milestone: | 1.17.1 → 2.0 |
milestone: | 2.0 → 1.17.1 |
summary: |
- juju destroy-environment does not delete the local charm cache + cannot add service to fresh local environment |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
I might be wrong about the cause, but I am completely unable to deploy the 'ubuntu' service, as it keeps saying the service already exists. I've tried destroy- environment, and I've tried nuking /var/lib/juju* (while destroyed), and it still gives me the same error.
I'm trying "juju add-machine" before "juju deploy" this time, to see if that changes anything.
This actually appears to be a compatibility problem with 1.17 vs a 1.16.4 local environment. Because if I do /usr/bin/juju deploy -e local ubuntu it works, if I do $GOBIN/juju deploy -e local ubuntu it fails.
:(