![]() 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 |
||
---|---|---|
doc/source | ||
os_win | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
openstack-common.conf | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
os-win
Windows / Hyper-V library for OpenStack projects.
This library contains Windows / Hyper-V specific code commonly used in OpenStack projects. The library can be used in any other OpenStack projects where it is needed.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/os-win
- Source: http://git.openstack.org/cgit/openstack/os-win
- Bugs: http://bugs.launchpad.net/os-win
How to Install
os-win is released on Pypi, meaning that it can be installed and upgraded via pip. To install os-win, run the following command:
pip install os-win
To upgrade os-win, run the following command:
pip install -U os-win
Note that the first OpenStack release to use os-win is Mitaka. Previous releases do not benefit from this library.
Tests
You will have to install the test dependencies first to be able to run the tests.
C:\os_win> pip install -r requirements.txt
C:\os_win> pip install -r test-requirements.txt
You can run the unit tests with the following command.
C:\os_win> nosetests os_win\tests
How to contribute
To contribute to this project, please go through the following steps.
- Clone the project and keep your working tree updated.
- Make modifications on your working tree.
- Run unit tests.
- If the tests pass, commit your code.
- Submit your code via
git review
. - Check that Jenkins and the Microsoft Hyper-V CI pass on your patch.
- If there are issues with your commit, ammend, and submit it again
via
git review
. - Wait for the patch to be reviewed.
Features
os-win is currently used in the following OpenStack projects:
- nova
- cinder
- compute-hyperv
- networking-hyperv
- ceilometer
- os-brick