541 Commits

Author SHA1 Message Date
melissaml
068d1b5ec7 Update links in README
Change the outdated links to the latest links in README

Change-Id: Ie32a28cce8f8a629ab6dceaf460868f67f7ff91c
2018-03-09 11:38:52 +08:00
Zuul
6a5325be76 Merge "Remove deprecated methods" 4.0.0 2018-02-22 14:03:34 +00:00
Zuul
225832f215 Merge "Improve WMI jobs logging" 2018-02-14 14:17:39 +00:00
Lucian Petrut
58509209b9 Improve WMI jobs logging
This change provides additional log information when handling WMI
jobs. This allows us to get a better picture of the job states.

This will be extremely helpful for debugging purposes, as currently
we don't get much information about pending jobs or errors that
occur when stopping jobs.

Closes-Bug: #1748208

Change-Id: Ibb4d5969eea13a0b11a6d5b46b797482a6d2a20b
2018-02-08 17:26:03 +02:00
Claudiu Belu
ea65d0a510 Ensures that all classes have the same interface as their parents
VMUtils10 has a few extra methods when compared to VMUtils. This
patch adds those methods to VMUtils (raising NotImplementedError).

Adds unit test that checks for future inconsistentcies.

ISCSIInitiatorCLIUtils has been deprecated and removed, but it was
not removed from utilsfactory.utils_map. This patch addresses this
issue.

Closes-Bug: #1746986

Change-Id: I2a963304fc67595bc18e719e6b4420f553519c41
2018-01-31 01:57:45 -08:00
Zuul
59cbe05c0e Merge "Updated from global requirements" 2018-01-25 09:10:54 +00:00
edcd896480 Update reno for stable/queens
Change-Id: I8ad2a693b553b335afffa26e399b9a1adb448aad
2018-01-24 18:03:10 +00:00
OpenStack Proposal Bot
2cbb4221b3 Updated from global requirements
Change-Id: I8ccaea11ef1d43946d4707d448c13f2c61f1691f
2018-01-24 01:23:57 +00:00
Zuul
b5f08e21eb Merge "Fixes port security settings caching issue" 2018-01-23 10:56:31 +00:00
Zuul
f9f4ed072d Merge "tests: Use mock autospec in unit tests" 2018-01-22 17:20:55 +00:00
Zuul
12c46121f1 Merge "[Trivial] Allow flushing named pipe log handles" 2018-01-22 16:50:49 +00:00
Claudiu Belu
823b162c6a tests: Use mock autospec in unit tests
Autospecing will ensure that the method signatures are respected
during calls.

oslotest.mock_fixture contains 2 components, one of them adds the autospec
argument to mock.Mock and mock.MagicMock, while the other one fixes the
autospec behaviour for mock.patch functions, and sets autospec to True by
default, unless otherwise specified.

Closes-Bug: #1735588

Change-Id: I5a1dd8571988859b4a14a505fd5e016079582363
2018-01-22 08:39:13 -08:00
Zuul
f807dfa710 Merge "Adds NIC hardware offload support" 2018-01-22 16:30:43 +00:00
Claudiu Belu
776270c4b3 Fixes port security settings caching issue
When updating the MAC spoofing for a given vswitch port, its
Msvm_EthernetSwitchPortSecuritySettingData object is removed
and a new one is created, but the original object is not
cleared from the cache. Because of this, the next update will
fail with a Not Found exception.

This patch addresses this issue.

Closes-Bug: #1744755

Change-Id: I91b9000c64d269b7d5b1db9e0c6344bbd70e37b2
2018-01-22 16:23:05 +00:00
Claudiu Belu
63ccd40ed9 Adds NIC hardware offload support
Adds get_nic_hardware_offload_info method in hostutils, which
will return a list of dictionaries containing details regarding
different NIC hardware offload capacities for SR-IOV, IOV queue
pairs, VMQs, IPsec SAs.

Adds set_vswitch_port_offload method in networkutils, which will
set the given hardware offload options into the given switch port
(enable / disable SR-IOV or VMQ, set IOV queues, set offloaded IPsec
SAs).

Implements: blueprint nic-hardware-offload

Change-Id: Ib2915bd4fe050b97597799f359b310eef7457c58
2018-01-22 07:41:46 -08:00
OpenStack Proposal Bot
fbd33d5d53 Updated from global requirements
Change-Id: I46bf375a61e38b2dd7fba037c27d88a0de0ba623
2018-01-18 03:22:16 +00:00
Zuul
6aa0f9ff9f Merge "Updated from global requirements" 2018-01-16 18:43:17 +00:00
OpenStack Proposal Bot
951bafd3b4 Updated from global requirements
Change-Id: Ie59464e4a9a87026792c334d4030106f318417ef
2018-01-16 12:45:59 +00:00
OpenStack Proposal Bot
a51863374d Updated from global requirements
Change-Id: I6b5f060dc52f2e73b2d9606704d4db609219392c
2018-01-16 12:45:56 +00:00
OpenStack Proposal Bot
d72e3eba98 Updated from global requirements
Change-Id: I07f77928e044fd1e630ac2b1fdcc0de04fb0a4ea
2018-01-16 04:25:56 +00:00
Lucian Petrut
1b99d30fa2 [Trivial] Allow flushing named pipe log handles
The named pipe handler provided by os-win is used by Nova when
consuming instance serial ports. For convenience, it allows logging
the named pipe output to a file (useful for storing the serial
console output).

The issue is that the log file never gets flushed, thus Nova returns
incomplete results. This change adds a method that may be used for
flushing the log file.

Change-Id: I4b5eb7579ac0c92e9c3630539b0c4d76f5b98c6d
Closes-Bug: #1741494
2018-01-05 18:32:17 +02:00
melissaml
bbaa712277 Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I9e013fe5ce2abc6a9850d62a9a455c4090d200da
2018-01-03 17:24:40 +08:00
Lucian Petrut
818ba63110 Remove deprecated methods
This change removes some methods that have been deprecated in Pike.
For this reason, we should merge this in Rocky.

Change-Id: I7ccd54865920f28add085509e14c86efadfc4e56
2017-12-20 16:28:57 +02:00
Lucian Petrut
204156f69d Remove deprecated methods and exceptions
This change cleans up some deprecated methods and an exception.

Change-Id: I02ce0624d9b0963db7b00a5098e76a33552c1b12
3.0.0
2017-12-20 16:28:47 +02:00
Zuul
4e24801719 Merge "Implement VHD attach/detach" 2017-12-19 13:38:34 +00:00
Zuul
30a6363676 Merge "Add processutils module" 2017-12-19 13:38:34 +00:00
OpenStack Proposal Bot
edbb70dcae Updated from global requirements
Change-Id: I71d64ef302586309d13e9cbfe3c95fba815efef1
2017-12-19 01:37:33 +00:00
Lucian Petrut
f913051b00 Add processutils module
This change adds a processutils module, which includes several
process/job helpers.

Associating a job with a process will allow ensuring that when a
parent process is killed, processes associated with jobs (e.g. child
processes) will be killed as well.

This is especially useful for Cinder, which will use it for the
multiple backend per service scenario.

Job objects may have resource limits. We may use jobs in order to
implement resource limit support within oslo_concurrency (currently
not available on Windows).

Related-Bug: #1734334

Change-Id: Icc2bbe9191e6db685c0fd294abc1d0eb24bc420c
2017-12-18 16:04:56 +02:00
Lucian Petrut
69ea678ad8 Implement VHD attach/detach
This change adds support for attaching/detaching VHD images, as well
as retrieving the attached disk "physical" path.

This also adds support for changing disk online/readonly status,
as well as retrieving its size.

This feature will be used by os-brick, aiming to add volume backup
support for the Windows SMB Cinder driver.

Implements: blueprint vhd-attach-detach

Change-Id: I4ed28606a7f5643a2ccfef24d198649e28c59a3b
2017-12-18 16:02:18 +02:00
Claudiu Belu
0e58eac4a6 Cleanup vmutils create_vm
The method signature and behaviour has changed. The method will no longer
set VM's memory and vCPUs, update_vm should be called for this behaviour.

In order to maintain compatiblity with the previous usage, both
behaviours were kept.

After the old usage has been updated, the old behaviour can be safely
removed.

Change-Id: Iead1e1d4597394a1bebab87b2416baada1657e94
Related: blueprint hyper-v-vnuma-enable
2017-12-15 17:46:58 +02:00
Zuul
706bb41ee5 Merge "Updated from global requirements" 2017-12-15 13:21:32 +00:00
Andreas Jaeger
4aa86b8749 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Icb8bcec5166dd151336455c69db8e4c4067ac8c5
2017-12-02 17:06:38 +00:00
OpenStack Proposal Bot
cf5873dcef Updated from global requirements
Change-Id: Iaa951c60574f92caf6d7ef1f54d3061333e1b696
2017-11-29 09:14:04 +00:00
Zuul
6ab9f17bfe Merge "Adds SR-IOV support" 2.6.0 2017-11-21 11:16:18 +00:00
Claudiu Belu
05bdaea97a Adds SR-IOV support
SR-IOV support has been added to Hyper-V since Windows / Hyper-V
Server 2012.

In order to properly use SR-IOV, the host must support it, and have it
enabled, and it must have SR-IOV capable NICs.

The Hyper-V vSwitches will have to be configured to enable SR-IOV.

vmutils: create_nic - mac_address can now be None. If None,
a dynamic address will be used instead.
hostuils: added get_nic_sriov_vfs - returns a list of dictionaries,
containing available vSwitch VFs.
networkutils: added set_vswitch_port_sriov - enables / disables SR-IOV
on the given switch port.

Implements: blueprint os-win-sriov

Change-Id: Ied27bb4e1b36e743b33c6b65351c2ee942ef535e
2017-11-21 12:37:42 +02:00
Zuul
a60e0e75ac Merge "Updated from global requirements" 2017-11-20 19:42:20 +00:00
Andreas Jaeger
de3f36d18e Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I16981e37c2e641c05fa65d5151b3dadf1e951482
2017-11-16 22:01:03 +01:00
OpenStack Proposal Bot
35a046207f Updated from global requirements
Change-Id: I0500fe112f55ca19e9df767939ed08882175cd29
2017-11-16 11:20:33 +00:00
Lucian Petrut
0ca03208a1 doc: Switch to openstackdocstheme
The oslosphinx theme has been deprecated. Besides, we're currently
inconsistent with the other project docs themes.

Change-Id: I6a7a105d8b689ff5e5ca2f7829ce06d166e8db2e
2017-11-13 19:03:37 +00:00
Zuul
59e34ac9fc Merge "Add config sample to os-win docs" 2017-11-13 18:08:49 +00:00
Zuul
eda1a642de Merge "[Trivial] Add HyperVvSwitchNotFound exception" 2017-11-13 17:59:38 +00:00
Lucian Petrut
e27e1831f9 Add config sample to os-win docs
This change adds an automatically generated config sample to the
os-win docs.

The config sample is generated each time the docs are built, using
the oslo.config sphinxconfiggen extension.

Related-Bug: #1709648

Change-Id: I01f44bf02c92ecfced6d5266caa40683a0a9248e
2017-11-13 17:53:39 +00:00
Zuul
91c7fee4f4 Merge "Add oslo.config entry point" 2017-11-13 16:02:25 +00:00
OpenStack Proposal Bot
f9acdd1fb2 Updated from global requirements
Change-Id: Ifa4d7f5349d65a0f1ace0e7605d9e8f3c1abdc61
2017-11-13 10:26:18 +00:00
Lucian Petrut
2f808ecb10 Add oslo.config entry point
This change will allow generating a config sample using the
oslo.config generator.

Generating an os_win config sample may be requested by using:
oslo-config-generator --namespace os_win

Closes-Bug: #1709648

Change-Id: Icc39a472cb05bfd0bcb673959b40b0d2e6e89077
2017-11-10 15:59:49 +02:00
Lucian Petrut
11c92505d6 [Trivial] Add HyperVvSwitchNotFound exception
At the moment, we're raising a generic HyperVException when
attempting to retrieve a non-existent vSwitch.

This change adds a 'HyperVvSwitchNotFound' exception, which will
allow callers to better handle such situations.

Change-Id: I221622bc050cf634f86edde49e26c09ee30b177e
2017-11-09 15:02:09 +02:00
Zuul
c5ce9a6cf6 Merge "Add SAN policy setter/getter" 2.5.0 2017-10-27 09:23:09 +00:00
Zuul
44320ca5f0 Merge "Add method returning vswitch extensions" 2017-10-27 09:22:11 +00:00
Lucian Petrut
340abb4009 Silently continue when destroying missing vNIC
At the moment, if requested to destroy an inexistent VM NIC,
os-win will raise an IndexError, which is not really helpful.

In quite a few other cases, we're silently continuing when dealing
with missing resources. We'll do the same here as well.

Change-Id: Ibe290ba2521a808f3dba150de33f9be0b3519e7c
Related-Bug: #1724282
2017-10-25 12:35:12 +03:00
Lucian Petrut
edb4e17131 Add SAN policy setter/getter
This change adds a setter and getter for the SAN policy, controlling
the way in which new disks will be handled (brought online or not).

Validating this policy will help prevent common vm disk attachment
issues when dealing with passthrough disks.

Related-Bug: #1727257

Change-Id: I25033c15b77f494a417c9cd01d194a8bfb3cfe13
2017-10-25 09:33:01 +00:00