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/453784 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=1e2cc6ff213 bc3ffafd57bfc16 2b67acae2c0ecc
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 1e2cc6ff213bc3f fafd57bfc162b67 acae2c0ecc
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