In Python 3.11, inspect.getargspec. We shall use getfullargspec from now
on instead. This patch was added to Debian. See Debian bug:
https://bugs.debian.org/1025112
Change-Id: Ib7982470958377d9454446dab326aaa9e782ad69
By default, Hyper-V filters some of the SCSI commands received from
the VMs. This change allows disabling the filter.
Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>
Change-Id: I1b0fc8e7e75a6c5395aedd5b8e94b3bd000e1843
The setDaemon method of the threading.Thread was deprecated
in Python 3.10 (*).
Replace the setDaemon method with the daemon property.
*: https://docs.python.org/3.10/library/threading.html#threading.Thread.setDaemon
Change-Id: I34c7753ae1ba3704a1c2ec1a9b5a9905b6bcb8f5
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I87228e7c8255ceb756e4b65f75da1aeeee633ac5
Add file to the reno documentation build to show release notes for
stable/zed.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.
Sem-Ver: feature
Change-Id: I0089359e2bdee18b8f249236075ca0b47098ba6f
Python3 has deprecated (and recently dropped) collections.Iterable in
favor of using the collections.abc module. This change fixes the import.
Closes-Bug: #1966442
Change-Id: I76ed972890a2fe0bedebd0364276590d5aa90f29
Add file to the reno documentation build to show release notes for
stable/yoga.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.
Sem-Ver: feature
Change-Id: Ia40467d2461e1fb5f55d24b5392d6881476aab66
Add file to the reno documentation build to show release notes for
stable/xena.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.
Sem-Ver: feature
Change-Id: I03a8dcd26404f5529b55347928f4d48784b10503
Add file to the reno documentation build to show release notes for
stable/wallaby.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.
Sem-Ver: feature
Change-Id: Iae9631f52aea96f8c0f0658109d2d4a428ac1daa
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
Change-Id: Ic3feedde768d18d6751bf278af36779558a8d0a8
Hyper-V exposes the VHD GUIDs to guests, which can be used to
easily identify attached disks.
This change will allow setting the VHD GUID for new as well as
existing images.
Worth mentioning that the Kubernetes Openstack provider will
benefit from this. Without it, k8s Persistent Volumes can't be
identified by some guests.
http://paste.openstack.org/raw/801011/
Change-Id: Ied73997e6f5f3ded9827703867f059ef3dfca159
The soft shutdown operation is expected to fail while the VM is
still booting. The issue is that in some cases, os-win will
propagate a wmi exception that Nova cannot handle:
http://paste.openstack.org/raw/800833/
That's because of Msvm_ShutdownComponent.InitiateShutdown, an
asynchronous WMI method that can sometimes throw a wmi exception
right away.
For now, we're taking care of this specific WMI call only. If needed,
we may consider handling all async WMI methods by introducing a new
decorator or helper function.
Change-Id: I9263b14c3c343db6453645152cb9274e38864b48
Closes-Bug: #1907270
As per the OpenStack TC decision [1], the doc requirements should
be listed separately.
This also simplifies the requirements handling. At them moment,
we're facing some issues due to conflicting doc related lower
constraints.
While at it, we're bumping the lower constraints based on Nova's
requirements, dropping indirect dependencies which are very difficult
to maintain.
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: Ifffbb94c069d58df1dbaa1c5a1681312e8455ae2
The Msvm_VirtualSystemSettingData object associated with a VM has a
field named "ChassisAssetTag". The value set in this field is reflected
in Linux VMs in /sys/class/dmi/id/chassis-asset-tag. This value is
checked by cloud-init in order to figure out if it is currently running
inside an OpenStack VM.
The verification above has been introduced in cloud-init [1] in order to
avoid costly metadata probes that aren't needed in non-OpenStack VMs.
Setting the ChassisAssetTag will allow us to pass these checks.
Partially-Fixes: #1895976
[1] 1efa8a0a03
Change-Id: I50dd761b3df9f2d243ca295f02d20422f6af965e
eventlet 0.18 is incompatible with Python 3.8, so we'll have
to bump the requirement.
Log: http://paste.openstack.org/raw/798067/
Change-Id: If7ddc29df5c317ecc850dd52bf64cd276d4044f8
Babel is no longer a requirement for OpenStack projects.
we need remove it and save some disk space.
Change-Id: Ibd4789c36ed1dc52ffc43a300a4005542d2a1de3
Add file to the reno documentation build to show release notes for
stable/victoria.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.
Change-Id: I5ae59e6ef0aa0a3e9b8ca9482f02240f234e3339
Sem-Ver: feature
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.
Story: #2007865
Task: #40228
Change-Id: I697e1d8099a6d776a5b2f9505a99335931e68067
With the removal of Python 2.x we can remove the unittest2 compat
wrappers and switch to assertCountEqual instead of assertItemsEqual
We have been able to use them since then, because
testtools required unittest2, which still included it. With testtools
removing Python 2.7 support [3][4], we will lose support for
assertItemsEqual, so we should switch to use assertCountEqual.
[1] - https://bugs.python.org/issue17866
[2] - https://hg.python.org/cpython/rev/d9921cb6e3cd
[3] - testing-cabal/testtools#286
[4] - testing-cabal/testtools#277^
Change-Id: I4fd20ef857846117b50e8d17fdf98fa4aa117262
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.
These changes will help us to drop `mock` from openstack/requirements
Change-Id: I54a2fde199c151eee0ca81c0db840609088803ac
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Disable openstackdocs_auto_name to use 'project' variable as name.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I51ed3c145a96259b9439d0ffda4685bff9721177
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: I8abacb64ca67bd3da04b1597b5b860761bd34e7a
While Windows paths are case insensitive, a few os-win checks are
case sensitive and are addressed by this patch.
Change-Id: I60c0d3e12501d7b2f62df8f95a3d3f328de83817
Closes-Bug: #1878588
These translation sections are not needed anymore, Babel can
generate translation files without them.
Change-Id: Ib77952f71193b4027e77635f4e5c16fa34f079b6
The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.
Change-Id: I809de2f6fe257c80de7c81f9e08499a919f52ff8
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.
This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.
Change-Id: Ic4a081c389df1bb3a0fce130b0ad4d782066e033
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.
Change-Id: If0cdc781a68cc90ec97c22b62bfa87fb105d6c94
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I24c8926bc7a571b45af77c497f0791d101ebbc12
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>