From e60e95f4997a8108de0d861e15775ea5e57ef759 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Thu, 29 Sep 2016 20:46:03 +0300 Subject: [PATCH] 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 --- nova/virt/hyperv/driver.py | 2 +- releasenotes/notes/bug-hyperv-1629040-e1eb35a7b31d9af8.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-hyperv-1629040-e1eb35a7b31d9af8.yaml diff --git a/nova/virt/hyperv/driver.py b/nova/virt/hyperv/driver.py index 6fd6710c3056..a8ec5c15db50 100644 --- a/nova/virt/hyperv/driver.py +++ b/nova/virt/hyperv/driver.py @@ -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, } diff --git a/releasenotes/notes/bug-hyperv-1629040-e1eb35a7b31d9af8.yaml b/releasenotes/notes/bug-hyperv-1629040-e1eb35a7b31d9af8.yaml new file mode 100644 index 000000000000..57b4fa9983a6 --- /dev/null +++ b/releasenotes/notes/bug-hyperv-1629040-e1eb35a7b31d9af8.yaml @@ -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.