os-win/os_win
Lucian Petrut f3de712905 Fix clustered vm live migration
At the moment, in order to migrate a clustered VM, we move the
according cluster resource group using the MoveToNewNodeParams WMI
method. This method accepts an undocumented 'Parameters' argument,
which is then passed to the underlying MoveClusterGroupEx clusapi.dll
function.

While the latter expects a property list as described at the following
link, we were passing the desired migration type directly.
https://msdn.microsoft.com/en-us/library/aa371809(v=vs.85).aspx

This worked on Windows Server 2012R2 but is causing issues on WS 2016.
Resource group end up hanging in a 'Pending' state.

This change addresses this issue by using clusapi.dll functions directly,
as the according WMI methods are not working, throwing a generic error
even though the VMs are migrated properly.

Closes-Bug: #1618425

Change-Id: Idfcd3505cbbf2754addeba4f1ebeb880f3b9a56b
2016-09-05 13:21:26 +03:00
..
_hacking Resolves flake8 errors 2016-08-17 17:30:57 +03:00
tests Fix clustered vm live migration 2016-09-05 13:21:26 +03:00
utils Fix clustered vm live migration 2016-09-05 13:21:26 +03:00
__init__.py Fix event listeners 2016-04-15 17:45:26 +03:00
_i18n.py Rename project to os-win 2015-09-17 05:21:49 -07:00
_utils.py Fix clustered vm live migration 2016-09-05 13:21:26 +03:00
constants.py Fix clustered vm live migration 2016-09-05 13:21:26 +03:00
exceptions.py Fix clustered vm live migration 2016-09-05 13:21:26 +03:00
utilsfactory.py Resolves flake8 errors 2016-08-17 17:30:57 +03:00