cannot delete lxd instances in horizon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OPNFV |
New
|
Undecided
|
Unassigned | ||
nova-lxd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Critical
|
James Page |
Bug Description
[Impact]
With later LXD 2.0.x point releases, its not possible to delete instances running on a nova-lxd openstack cloud.
[Test Case]
Deploy OpenStack Nova LXD cloud
nova boot instance
nova delete instance - fails
[Regression Potential]
Minimal; later versions of nova-lxd take a different approach to profile management, but the fix simply ensures that the profile is deleted after the container, rather than the other way around.
[Original Bug Report]
After deploying Openstack and spinning up lxd instances we are unable to delete those instances
The following error appears in Horizon and in the nova-compute logs
Exception during message handling: Failed to communicate with LXD API instance-0000005f: Error 400 - Profile is currently in use
Its possible to delete the lxc container, then delete the profile. Then delete from Horizon.
Nova cases are failing when trying to delete or resize launched vm ("Failed to communicate with LXD API instance-00000027: Error 400 - Profile is currently in use.'").
Looks like similar issue as recently filed bug report https:/ /bugs.launchpad .net/ubuntu/ +source/ nova-lxd/ +bug/1637620 .
Regards,
JK