Commit Graph

665 Commits

Author SHA1 Message Date
Ghanshyam Mann 83dc573004 Retire os-win: remove repo content
Winstackers project has been retired
- https://review.opendev.org/c/openstack/governance/+/886880

this commit remove the content of os-win
deliverables of this project

Depends-On: https://review.opendev.org/c/openstack/project-config/+/894407/1
Change-Id: Ia157731a558dc66e7fc944d8e42938b2eff8afa7
2023-09-09 12:25:13 -07:00
Thomas Goirand 318b1052d3 Python 3.11: use getfullargspec, not getargspec
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
2022-12-01 10:25:43 +01:00
Stefan Chivu 248d4f1e57 Added function for enabling AllowFullSCSICommandSet
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
2022-11-22 16:10:47 +02:00
Zuul 2a5ee8bdee Merge "Use daemon property instead of setDaemon method" 2022-10-25 10:38:58 +00:00
Lucian Petrut e18d57e319 Update zuul queue configuration
Zuul changed the way in which queues have to be declared [1][2].
We'll update the os-win zuul configuration accordingly.

[1] https://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html
[2] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I9b443aba106df12de5a8d215a0d88843bfecddf7
2022-10-25 12:14:30 +03:00
Takashi Natsume 3be4e4a684 Use daemon property instead of setDaemon method
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>
2022-09-25 16:23:42 +09:00
Zuul 91b20a0171 Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2022-09-13 08:05:02 +00:00
OpenStack Release Bot e950a7e2df Switch to 2023.1 Python3 unit tests and generic template name
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
2022-09-12 16:43:32 +00:00
Zuul a93a5ed2dc Merge "Update master for stable/zed" 2022-09-12 12:48:56 +00:00
Takashi Natsume a4effc7e54 Fix wrong assertion methods
Replcae 'has_calls' with 'assert_has_calls' or
remove 'has_calls'.

Change-Id: I65f9a761af75d94052362056fe1c9ba152f6449e
Closes-Bug: 1989280
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-09-12 20:38:19 +09:00
OpenStack Release Bot 854eb06811 Update master for stable/zed
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
2022-09-06 12:13:57 +00:00
Zuul 04991fce4b Merge "Add Python3 zed unit tests" 2022-08-23 06:37:32 +00:00
niuke 4f35a26842 remove unicode prefix from code
Change-Id: I276e5d33afc624f3a1d3fe946a9e1d8a4dbee4be
2022-08-12 23:13:43 +08:00
Elod Illes 77e3c60827 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8bf923bde55293cb15d45ab340755cb6df4fd849
2022-08-08 15:48:31 +02:00
Ghanshyam Mann 3abe14fa93 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ib5364b375daba592af39118131670c5d234ec0cb
2022-05-01 13:03:32 -05:00
Felipe Reyes c672101e60 Drop collections.Iterable in favor of collections.abc.Iterable
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
2022-03-25 10:06:40 -03:00
OpenStack Release Bot 0d760009cc Update master for stable/yoga
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
2022-03-03 10:51:02 +00:00
OpenStack Release Bot 283af66f30 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: If15289d91d79017be4a392521f90f9b1012fbf0e
2021-09-10 14:32:53 +00:00
OpenStack Release Bot 0b1ece565b Update master for stable/xena
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
2021-09-10 14:32:51 +00:00
Takashi Kajinami d571260d41 Use importlib instead of imp
... because the imp module is deprecated since Python 3.4 .

Closes-Bug: #1937904
Change-Id: Ib8f06ee629753faec73cf3a2f41e7c743b6e0b04
2021-07-24 22:42:25 +09:00
yangyawei 50d0797b79 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I948a123f71b0e19afaff2086a30566c9d8bcee5d
2021-05-27 02:56:27 +08:00
OpenStack Release Bot 530563b6d3 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I17793d1863bc59e96b29891e2045036a30dfc5f6
2021-03-18 10:32:19 +00:00
OpenStack Release Bot a35717739a Update master for stable/wallaby
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
2021-03-18 10:32:15 +00:00
zhangboye 80315f7658 Use TOX_CONSTRAINTS_FILE
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
2020-12-24 16:10:21 +08:00
Lucian Petrut cce95b44a9 Allow setting VHD GUIDs
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
2020-12-15 11:38:05 +02:00
Lucian Petrut fa9061f31d Avoid propagating wmi exceptions for soft shutdown
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
2020-12-09 15:20:21 +02:00
Lucian Petrut 954693f5ff Use a separate doc requirements file
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
2020-12-09 13:56:18 +02:00
Claudiu Belu 78414e7160 vmutils: Adds the ability to modify the VM's chassis asset tag
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
2020-09-21 14:58:42 +03:00
Zuul 0d81aded4d Merge "Bump eventlet requirement" 2020-09-18 12:48:32 +00:00
Lucian Petrut 2c068a626c Bump eventlet requirement
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
2020-09-18 11:56:42 +00:00
Zuul feb431d24d Merge "Add Python3 wallaby unit tests" 2020-09-17 06:33:10 +00:00
Zuul 7bb83b2da9 Merge "Update master for stable/victoria" 2020-09-17 06:25:19 +00:00
wu.shiming 6a10853d40 Remove Babel requirement
Babel is no longer a requirement for OpenStack projects.
we need remove it and save some disk space.

Change-Id: Ibd4789c36ed1dc52ffc43a300a4005542d2a1de3
2020-09-10 18:05:03 +08:00
OpenStack Release Bot 71c4258afe Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I62296feb3086cc17ea0b890648bca40d0cf13c6d
2020-09-10 09:46:22 +00:00
OpenStack Release Bot 259e2f236f Update master for stable/victoria
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
2020-09-10 09:46:19 +00:00
Ghanshyam Mann 86529bc22f [goal] Migrate testing to ubuntu focal
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
2020-08-17 14:09:36 +00:00
Dirk Mueller 066c1c49b5 Switch from unittest2 compat methods to Python 3.x methods
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
2020-06-23 14:21:25 +02:00
Hervé Beraud 33036bcc32 drop mock from lower-constraints
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
2020-06-09 10:58:01 +02:00
Andreas Jaeger 331bf08383 Switch to newer openstackdocstheme and reno versions
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
2020-06-01 16:18:44 +02:00
Zuul f2c12bf1a0 Merge "Remove translation sections from setup.cfg" 2020-05-27 09:20:09 +00:00
Zuul 875f845748 Merge "Fix hacking min version to 3.0.1" 2020-05-27 09:19:20 +00:00
Ghanshyam Mann 61bf34bc93 Fix hacking min version to 3.0.1
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
2020-05-15 11:17:17 -05:00
Lucian Petrut 94046df43a Fix case sensitive path comparisons
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
2020-05-14 13:23:25 +03:00
melissaml c978c8ad91 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: Ib77952f71193b4027e77635f4e5c16fa34f079b6
2020-05-14 18:04:14 +08:00
Sean McGinnis 8be89e1076
Remove monotonic usage
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>
2020-05-04 17:23:36 -05:00
Zuul a5009bfe98 Merge "Bump default tox env from py37 to py38" 2020-04-27 07:04:42 +00:00
Sean McGinnis 74b64c20b3
Bump default tox env from py37 to py38
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>
2020-04-24 10:25:53 -05:00
Sean McGinnis 3bcc87d322
Add py38 package metadata
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>
2020-04-24 08:23:15 -05:00
Sean McGinnis c995a87873
Use unittest.mock instead of third party mock
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>
2020-04-18 11:56:56 -05:00
Zuul e486ee0faf Merge "Cleanup py27 support" 2020-04-13 10:37:57 +00:00