newer `qemu-img info` causes in exception when finding the backing file for qcow2 images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Pádraig Brady | ||
Essex |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
With a qemu-img updated with:
https:/
you'll get this traceback on nova-compute startup
Patch coming up..
2012-05-16 14:17:26 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /var/lib/
2012-05-16 14:17:26 CRITICAL nova [-] list index out of range
2012-05-16 14:17:26 TRACE nova Traceback (most recent call last):
2012-05-16 14:17:26 TRACE nova File "/usr/bin/
2012-05-16 14:17:26 TRACE nova service.wait()
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova _launcher.wait()
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova service.wait()
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova return self._exit_
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova return hubs.get_
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova return self.greenlet.
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova result = function(*args, **kwargs)
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova server.start()
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova self.manager.
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova self.driver.
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova 'disk_available
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova disk_infos = utils.loads(
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova backing_file = libvirt_
2012-05-16 14:17:26 TRACE nova File "/usr/lib/
2012-05-16 14:17:26 TRACE nova for i in out.split('\n') if 0 <= i.find('backing file')]
2012-05-16 14:17:26 TRACE nova IndexError: list index out of range
Related branches
- Chuck Short: Pending requested
-
Diff: 56 lines (+14/-4)3 files modifieddebian/changelog (+8/-0)
debian/control (+6/-3)
debian/nova-console.install (+0/-1)
summary: |
- newer `qemu=img info` causes in exception when finding the backing file + newer `qemu-img info` causes in exception when finding the backing file for qcow2 images |
Changed in nova: | |
milestone: | none → folsom-1 |
Changed in nova: | |
assignee: | Russell Bryant (russellb) → Pádraig Brady (p-draigbrady) |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova (Ubuntu): | |
status: | New → In Progress |
Changed in nova (Ubuntu): | |
milestone: | none → ubuntu-12.04.1 |
tags: |
added: verification-done removed: verification-needed |
Changed in nova: | |
milestone: | folsom-1 → 2012.2 |
Reviewed: https:/ /review. openstack. org/7485 github. com/openstack/ nova/commit/ 0624b7aab0c0fe4 869111ad8e30215 1548d6ba20
Committed: http://
Submitter: Jenkins
Branch: master
commit 0624b7aab0c0fe4 869111ad8e30215 1548d6ba20
Author: Pádraig Brady <email address hidden>
Date: Wed May 16 13:44:46 2012 +0100
handle updated qemu-img info output
Originally `qemu-img info` always output an (actual path: ...)
even if it was duplicated with that already on the line.
$ instances= /var/lib/ nova/instances/ instance- 00000017/ disk | grep 'backing' _base/24083. .. (actual path: $the_same)
$ qemu-img info $instances/
backing file: $instances/
Whereas after the change referenced at: /lists. gnu.org/ archive/ html/qemu- devel/2012- 05/msg01468. html
https:/
It suppresses a duplicate (actual path:)
$ instances= /var/lib/ nova/instances/ instance- 00000017/ disk | grep 'backing' _base/24083. ..
$ qemu-img info $instances/
backing file: $instances/
* nova/virt/ libvirt/ utils.py (get_disk_ backing_ file):
Avoid an indexError exception when parsing the newer format.
Fixes bug 1000261
Change-Id: Ie2889b6da8a5c9 3e0e874e7a33052 9f6e6e71b0b