compute-hyperv/compute_hyperv/tests
Claudiu Belu e00240f5d7 Fixes cold migration path trimming issue
During cold migration, the following steps happen:

1. The source node will stop the VM, copy the VM files to a _revert path,
destroy the VM, and return the _revert path as disk_info.
2. The destination node will get that disk_info, and if it was configured
not to move the storage (multiple CSVs cluster scenario), it will just
copy the files to a path without the ending _revert.

The issue is that rstrip can strip more characters than desired. It will
remove all characters contained by "_revert" from the given path's ending.
For example:

"instance_000000be_revert".rstrip("_revert") => "instance_000000b"

Change-Id: I784835800a961be4ba755a4d51edbc931eccdc57
Closes-Bug: #1716862
2017-09-13 10:06:35 +00:00
..
unit Fixes cold migration path trimming issue 2017-09-13 10:06:35 +00:00
__init__.py move to compute_hyperv namespace 2017-08-09 09:00:32 +00:00
fake_instance.py move to compute_hyperv namespace 2017-08-09 09:00:32 +00:00
test.py move to compute_hyperv namespace 2017-08-09 09:00:32 +00:00