Reviewed: https://review.openstack.org/7485 Committed: http://github.com/openstack/nova/commit/0624b7aab0c0fe4869111ad8e302151548d6ba20 Submitter: Jenkins Branch: master
commit 0624b7aab0c0fe4869111ad8e302151548d6ba20 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/ $ qemu-img info $instances/instance-00000017/disk | grep 'backing' backing file: $instances/_base/24083... (actual path: $the_same)
Whereas after the change referenced at: https://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01468.html It suppresses a duplicate (actual path:)
$ instances=/var/lib/nova/instances/ $ qemu-img info $instances/instance-00000017/disk | grep 'backing' backing file: $instances/_base/24083...
* nova/virt/libvirt/utils.py (get_disk_backing_file): Avoid an indexError exception when parsing the newer format. Fixes bug 1000261
Change-Id: Ie2889b6da8a5c93e0e874e7a330529f6e6e71b0b
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