Disable 'supports_migrate_to_same_host' HyperV driver capability

The Hyper-V driver incorrectly enables the
'supports_migrate_to_same_host' capability.

This capability seems to have been introduced having the VMWare
cluster architecture in mind, but it leads to unintended behavior
in case of the HyperV driver.

For this reason, the Hyper-V CI is failing on an recently introduced
tempest test, which asserts that the host has changed.

This change disables this driver capability.

Change-Id: Ibb4f1d4e40ccc98dc297e463b127772a49207d9a
Closes-Bug: #1629040
This commit is contained in:
Lucian Petrut 2016-09-29 20:46:03 +03:00
parent d5f113de34
commit e60e95f499
2 changed files with 6 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class HyperVDriver(driver.ComputeDriver):
capabilities = {
"has_imagecache": True,
"supports_recreate": False,
"supports_migrate_to_same_host": True,
"supports_migrate_to_same_host": False,
"supports_attach_interface": True,
"supports_device_tagging": True,
}

View File

@ -0,0 +1,5 @@
---
fixes:
- The Hyper-V driver no longer accepts cold migrating
instances to the same host. Note that this does not
apply to resizes, in which case this is still allowed.