Use VIR_DOMAIN_BLOCK_REBASE_COPY_DEV when rebasing
Previously, in swap_volume, the VIR_DOMAIN_BLOCK_REBASE_COPY_DEV flag
was not passed to virDomainBlockRebase. In the case of iSCSI-backed
disks, this caused the XML to change from <source dev=/dev/iscsi/lun>
to <source file=/dev/iscsi/lun>. This was a problem because
/dev/iscsi/lun is not a regular file. This patch passes the
VIR_DOMAIN_BLOCK_REBASE_COPY_DEV flag to virDomainBlockRebase, causing
the correct <source dev=/dev/iscsi/lun> to be generated upon
volume-update.
Reviewed: https:/ /review. openstack. org/465205 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a8a4a8ea7b8 e6c85273ddb02d3 4d6af1740b183f
Committed: https:/
Submitter: Jenkins
Branch: master
commit a8a4a8ea7b8e6c8 5273ddb02d34d6a f1740b183f
Author: Artom Lifshitz <email address hidden>
Date: Wed May 17 00:22:34 2017 +0000
Use VIR_DOMAIN_ BLOCK_REBASE_ COPY_DEV when rebasing
Previously, in swap_volume, the VIR_DOMAIN_ BLOCK_REBASE_ COPY_DEV flag ebase. In the case of iSCSI-backed iscsi/lun> . This was a problem because DOMAIN_ BLOCK_REBASE_ COPY_DEV flag to virDomainBlockR ebase, causing
was not passed to virDomainBlockR
disks, this caused the XML to change from <source dev=/dev/iscsi/lun>
to <source file=/dev/
/dev/iscsi/lun is not a regular file. This patch passes the
VIR_
the correct <source dev=/dev/iscsi/lun> to be generated upon
volume-update.
Change-Id: I868a0dae0baf8c ded9c7c5807ea63 ffc5eec0c5e
Closes-bug: 1691195