RETIRED, Windows / Hyper-V library for OpenStack projects.
Go to file
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
doc/source Resolves flake8 errors 2016-08-17 17:30:57 +03:00
os_win Fix clustered vm live migration 2016-09-05 13:21:26 +03:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:42:06 +00:00
.gitignore Renames project to os-windows 2015-08-25 13:35:09 +03:00
.gitreview Rename project to os-win 2015-09-17 05:21:49 -07:00
.mailmap Adds oslo cookiecutter template 2015-08-05 19:48:23 +03:00
.testr.conf Renames project to os-windows 2015-08-25 13:35:09 +03:00
CONTRIBUTING.rst Rename project to os-win 2015-09-17 05:21:49 -07:00
HACKING.rst Rename project to os-win 2015-09-17 05:21:49 -07:00
LICENSE Initial commit 2015-08-05 19:34:43 +03:00
MANIFEST.in Adds oslo cookiecutter template 2015-08-05 19:48:23 +03:00
README.rst Updates README.rst 2016-08-19 16:37:16 +03:00
babel.cfg Adds oslo cookiecutter template 2015-08-05 19:48:23 +03:00
openstack-common.conf Rename project to os-win 2015-09-17 05:21:49 -07:00
requirements.txt Updated from global requirements 2016-08-19 09:09:56 +00:00
setup.cfg switch to post-versioning 2016-03-20 12:24:02 -04:00
setup.py Updated from global requirements 2015-12-03 15:06:50 +00:00
test-requirements.txt Remove discover from test-requirements 2016-07-22 06:37:08 +00:00
tox.ini Resolves flake8 errors 2016-08-17 17:30:57 +03:00

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.

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.

  1. Clone the project and keep your working tree updated.
  2. Make modifications on your working tree.
  3. Run unit tests.
  4. If the tests pass, commit your code.
  5. Submit your code via git review.
  6. Check that Jenkins and the Microsoft Hyper-V CI pass on your patch.
  7. If there are issues with your commit, ammend, and submit it again via git review.
  8. 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