[SRU] Check for operation id in API

Bug #1524350 reported by Chuck Short
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-compute-lxd (Ubuntu)
Fix Released
High
Unassigned
Wily
Fix Released
High
Unassigned
Xenial
Fix Released
High
Unassigned

Bug Description

To support older versions of LXD we should check to see if there is an operation ID in the LXD API request before uploading the image to the LXD image store.

[Impact]
In order to support older versions of LXD due to an API change when using images, the operation ID is not sent. We need to check to see if we have a operation id before trying to split the operatin id url. Otherwise we would get an exception.

[Test Case]
* upload an image with LXD v0.18 and see there is an exception when trying to get an operation id.

[Regression Potential]
None

James Page (james-page)
Changed in nova-compute-lxd (Ubuntu):
importance: Undecided → High
Changed in nova-compute-lxd (Ubuntu Wily):
importance: Undecided → High
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Chuck, or anyone else affected,

Accepted nova-compute-lxd into wily-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nova-compute-lxd/0.18-0ubuntu3.2 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-compute-lxd (Ubuntu Wily):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Chuck Short (zulcss) wrote :

This fix was tested sucessfully.

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

This bug was fixed in the package nova-compute-lxd - 0.18-0ubuntu3.2

---------------
nova-compute-lxd (0.18-0ubuntu3.2) wily; urgency=medium

  * debian/patches/check-for-operation.patch: Check for operation
    id before blocking the upload. (LP: #1524350)

 -- Chuck Short <email address hidden> Wed, 09 Dec 2015 08:52:52 -0500

Changed in nova-compute-lxd (Ubuntu Wily):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for nova-compute-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.

Chuck Short (zulcss)
Changed in nova-compute-lxd (Ubuntu Xenial):
status: New → Fix Released
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.