destroy-environment fails to clear lxc containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
High
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Running destroy-environment with --force happily cleans up evan-local-
% juju destroy-environment local --force
WARNING! this command will destroy the "local" environment (type: local)
This includes all machines, services, data and other resources.
Continue [y/N]? y
[sudo] password for evan:
ERROR failed to destroy lxc container: error executing "lxc-destroy": lxc_container: Error destroying rootfs for evan-local-
ERROR error executing "lxc-destroy": lxc_container: Error destroying rootfs for evan-local-
ERROR exit status 1
% sudo lxc-ls -f
NAME STATE IPV4 IPV6 AUTOSTART
-------
evan-local-
evan-local-
juju-precise-
% juju destroy-environment local --force
WARNING! this command will destroy the "local" environment (type: local)
This includes all machines, services, data and other resources.
Continue [y/N]? y
ERROR failed to destroy lxc container: error executing "lxc-destroy": lxc_container: Error destroying rootfs for evan-local-
ERROR error executing "lxc-destroy": lxc_container: Error destroying rootfs for evan-local-
ERROR exit status 1
% sudo lxc-ls -f
NAME STATE IPV4 IPV6 AUTOSTART
-------
evan-local-
evan-local-
juju-precise-
% juju destroy-environment local --force
WARNING! this command will destroy the "local" environment (type: local)
This includes all machines, services, data and other resources.
Continue [y/N]? y
% sudo lxc-ls -f
NAME STATE IPV4 IPV6 AUTOSTART
-------
evan-local-
evan-local-
juju-precise-
tags: | added: destroy-environment local-provider lxc |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.20.0 |
Changed in juju-core: | |
milestone: | 1.20.0 → none |
Changed in juju-core: | |
importance: | High → Medium |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Medium → High |
importance: | High → Medium |
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: ubuntu-engineering |
Changed in juju-core: | |
importance: | Medium → High |
milestone: | none → next-stable |
Changed in juju-core: | |
status: | Triaged → Invalid |
Changed in juju-core: | |
milestone: | next-stable → none |
Hi Evan, Can I get you to please run and pastebin the following?
juju destroy-environment local --logging- config= golxc=TRACE; juju=DEBUG --show-log
This will give us the output of the lxc command and why it is failing.