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
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
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
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
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
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
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
This change removes some methods that have been deprecated in Pike.
For this reason, we should merge this in Rocky.
Change-Id: I7ccd54865920f28add085509e14c86efadfc4e56
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
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
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
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
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
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
The oslosphinx theme has been deprecated. Besides, we're currently
inconsistent with the other project docs themes.
Change-Id: I6a7a105d8b689ff5e5ca2f7829ce06d166e8db2e
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
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
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
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
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