HyperV: ensure config drives are copied as well during resizes
During cold migration, vhd config drive images are not copied
over, on the wrong assumption that the instance is already
configured and does not need the config drive.
For this reason, migrating instances using vhd config drives
will fail, as there is a check ensuring that the config drive
is present, if required.
This change addresses the issue, removing the check that was
preventing the config drive from being copied.
(cherry-picked from commit 2dd231cff199bd75bcd3d1031a9ff0a1a82ec1cb)
Reviewed: https:/ /review. openstack. org/387361 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=93a4cb6207e d35b7b5325b5b03 bff5126677695f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 93a4cb6207ed35b 7b5325b5b03bff5 126677695f
Author: Lucian Petrut <email address hidden>
Date: Mon Oct 17 14:20:12 2016 +0300
HyperV: ensure config drives are copied as well during resizes
During cold migration, vhd config drive images are not copied
over, on the wrong assumption that the instance is already
configured and does not need the config drive.
For this reason, migrating instances using vhd config drives
will fail, as there is a check ensuring that the config drive
is present, if required.
This change addresses the issue, removing the check that was
preventing the config drive from being copied.
(cherry-picked from commit 2dd231cff199bd7 5bcd3d1031a9ff0 a1a82ec1cb)
Change-Id: I8cd42bed4515f4 f75c92e595c4d8b 847b16058dd
Closes-Bug: #1619602