On cold migration, the contents of the instance folder are
copied to the new host. The original folder cannot be removed
because the VM configuration files cannot be deleted until the VM
is destroyed.
Because of this, when the migration fails to copy the files, it will
try to revert this through folder renaming. Since the original folder
still exists, an exception is raised.
Change-Id: Ia42ed873924999d57336a105bcaa2b856f3a3a9d
Closes-Bug: #1555699
(cherry picked from commit 7fb627c317d93b041b76263740f5729dade05b39)
Reviewed: https:/ /review. openstack. org/320570 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=7527a1f4d60 a804f54cba7a7da 706bf66863d789
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 7527a1f4d60a804 f54cba7a7da706b f66863d789
Author: Claudiu Belu <email address hidden>
Date: Thu Mar 17 03:35:51 2016 -0700
hyper-v: Copies back files on failed migration
On cold migration, the contents of the instance folder are
copied to the new host. The original folder cannot be removed
because the VM configuration files cannot be deleted until the VM
is destroyed.
Because of this, when the migration fails to copy the files, it will
try to revert this through folder renaming. Since the original folder
still exists, an exception is raised.
Change-Id: Ia42ed873924999 d57336a105bcaa2 b856f3a3a9d 41b76263740f572 9dade05b39)
Closes-Bug: #1555699
(cherry picked from commit 7fb627c317d93b0