commit f5bc2c7ae45d83d90770a3e55bac0ae2465a8775
Author: Lee Yarwood <email address hidden>
Date: Wed Feb 19 20:39:54 2020 +0000
libvirt: Provide the backing file format when creating qcow2 disks
Libvirt v6.0.0 [1] will now fail to launch a domain when using qcow2
disks where the backing file format is not recorded in the qcow2
metadata.
There are some discussions upstream around relaxing this slightly [2]
but for now any attempt to launch an instance using qcow2 disks will
fail as Nova does not populate this value when creating the disk.
Nova needs to at a minimum start populating this field and depending on
the outcome of the thread upstream in Libvirt also potentially handle
the upgrade case where we may need to rebase existing disks in order to
update the metadata.
For now this change simply adds the backing_fmt option to the qemu-img
command line used to create these disks.
Reviewed: https:/ /review. opendev. org/710790 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f5bc2c7ae45 d83d90770a3e55b ac0ae2465a8775
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit f5bc2c7ae45d83d 90770a3e55bac0a e2465a8775
Author: Lee Yarwood <email address hidden>
Date: Wed Feb 19 20:39:54 2020 +0000
libvirt: Provide the backing file format when creating qcow2 disks
Libvirt v6.0.0 [1] will now fail to launch a domain when using qcow2
disks where the backing file format is not recorded in the qcow2
metadata.
There are some discussions upstream around relaxing this slightly [2]
but for now any attempt to launch an instance using qcow2 disks will
fail as Nova does not populate this value when creating the disk.
Nova needs to at a minimum start populating this field and depending on
the outcome of the thread upstream in Libvirt also potentially handle
the upgrade case where we may need to rebase existing disks in order to
update the metadata.
For now this change simply adds the backing_fmt option to the qemu-img
command line used to create these disks.
[1] https:/ /github. com/libvirt/ libvirt/ commit/ 3615e8b39badf2a 526996a69dc91a9 2b04cf262e /www.redhat. com/archives/ libvir- list/2020- February/ msg00616. html
[2] https:/
Partial-Bug: #1864020 2a300be4fa043fb 8676458402b 68c9949c6b8e873 abab94a407) cbccd63fbdbcc86 3de7db50f5)
Change-Id: I77ebada015f652
(cherry picked from commit 0cfe9c81e3fe4d2
(cherry picked from commit 7fd41e9b8c0f0f9