cannot delete lxd instances in horizon

Bug #1637620 reported by Kevin Metz
10
This bug affects 1 person
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.

Revision history for this message
Narinder Gupta (narindergupta) wrote :

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

Revision history for this message
James Page (james-page) wrote :

Cherry picked fix patched into package and uploaded for SRU team review.

Changed in nova-lxd (Ubuntu):
status: New → Fix Released
Changed in nova-lxd (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → James Page (james-page)
description: updated
Revision history for this message
James Page (james-page) wrote :

ppa:openstack-ubuntu-testing/mitaka has the package for testing prior to SRU team acceptance into xenial-proposed.

Revision history for this message
James Page (james-page) wrote :
Changed in nova-lxd (Ubuntu Xenial):
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Kevin, or anyone else affected,

Accepted nova-lxd into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nova-lxd/13.0.0-0ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in nova-lxd (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Kevin Metz (pertinent) wrote :

Tested the package nova-compute-lxd 13.0.0.0b3.dev712.201610311523.xenial-0ubuntu1 via the PPA. Have tested deleting, starting, stopping instances etc and all appears to be working.

tags: added: verification-done
removed: verification-needed
Frode Nordahl (fnordahl)
tags: added: sts
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova-lxd - 13.0.0-0ubuntu3.1

---------------
nova-lxd (13.0.0-0ubuntu3.1) xenial; urgency=medium

  * d/p/bug1638027.patch: Cherry pick fix to ensure that LXD containers
    can be deleted by deleting the container and then its associated
    profile, fixing compatibility with later versions of 2.0.x LXD
    (LP: #1637620).

 -- James Page <email address hidden> Mon, 31 Oct 2016 17:31:12 +0200

Changed in nova-lxd (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Update Released

The verification of the Stable Release Update for nova-lxd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.