Commit Graph

615 Commits

Author SHA1 Message Date
Ghanshyam Mann 5288ade765 Retire compute-hyperv: remove repo content
Winstackers project has been retired
- https://review.opendev.org/c/openstack/governance/+/886880

this commit remove the content of compute-hyperv
deliverables of this project

Depends-On: https://review.opendev.org/c/openstack/project-config/+/894408/1
Change-Id: I06e90d64c0211f87d3b1347667b27e5c81f85dac
2023-09-09 12:28:11 -07:00
Zuul 4393891fa8 Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2022-09-19 12:52:34 +00:00
Lucian Petrut e7de7eef9d fix coordination unit tests
One of the coordination unit tests fails because of a mock that's
being applied twice. This affects Python 3.10 in particular.

We're addressing the issue by disabling "MOCK_TOOZ" for that
specific test.

Change-Id: If02f7ad022679d74cb88f558b85ee7d22f253c77
2022-09-19 12:12:00 +03:00
Zuul 02348b98c5 Merge "Use py3 as the default runtime for tox" 2022-09-19 07:53:20 +00:00
OpenStack Release Bot 8bf18c2c1f 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: I7758727b05ecb5f7d42248d2a734996184c05c1d
2022-09-13 09:18:52 +00:00
OpenStack Release Bot b6f073fedd 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: I5b25c55c0d1d42d97e6c1a512408783a22650ab1
2022-09-13 09:18:51 +00:00
wangjiaqi07 cc8441858f 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: I058be576e4c6a22d850fc8beb0cf7a5f22fa9fd7
2022-09-13 16:34:51 +08:00
LiZekun 4b80f61a5c 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: I8549cd018a53411f2991c8564c548a00b145631f
2022-05-19 07:14:19 +00:00
OpenStack Release Bot aad19eab91 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: If0f5e7a1fbbc323b78e87a9536af48c112055611
2022-03-10 07:58:50 +00:00
OpenStack Release Bot cef05142c0 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: I14695219f6fcf077faf2ac1b5e2dfb6a829b6e70
2022-03-10 07:58:48 +00:00
Zuul 6143a64329 Merge "Driver interface updates" 2022-01-31 08:39:28 +00:00
Lucian Petrut 64ff00727e Drop lower constraints
Maintaining project lower constraints has become an increasingly
difficult task, especially considering the new pip resolver.

That being considered, the TC has stated that it's up to project
maintainers to decide if they want to continue using lower constraints.
The Cinder project has already dropped the lower constraints job [2].

In order to reduce the burden, we dropped indirect dependencies from
the lower constraints file. This is now causing the lower constraints
job to time out:

   This is taking longer than usual. You might need to provide the
   dependency resolver with stricter constraints to reduce runtime.
   See https://pip.pypa.io/warnings/backtracking for guidance.
   If you want to abort this run, press Ctrl + C.

Since we don't really want to go back to maintaining a huge list of
lower constraints, it's time for us to remove the job.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-March/021204.html
[2] https://review.opendev.org/c/openstack/cinder/+/789077

Change-Id: I08de76202f9c37332e599b2becd21ca5ca87df19
2022-01-27 10:45:16 +02:00
Lucian Petrut 74c6d24e29 Driver interface updates
The "destroy_secrets" argument has been added to the "destroy" and
"cleanup" driver methods [1]. At the moment, it's only passed by the
Libvirt driver, so this interface change didn't break our driver.

At the same time, the "needs_legacy_block_device_info" property has
been removed [2].

[1] I856268b371f7ba712b02189db3c927cd762a4dc3
[2] I3895b61b436b9bb882477d2d1b3f4907f03b3b1c

Change-Id: I62b45bb8c3677e0117cbe2d86764ebb904deac90
2021-11-08 09:42:55 +02:00
OpenStack Release Bot b76e4867bd 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: I354cd5be9f6c645012c7f12cb7c4d174c6e0610c
2021-09-15 02:10:20 +00:00
OpenStack Release Bot 735863d476 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: Ice0287b1827c5b3cdbabc0596223bc667ca3021d
2021-09-15 02:10:19 +00:00
Zuul 1971a6719e Merge "doc: update IRC information" 2021-07-08 06:52:43 +00:00
Lucian Petrut d508d59b14 doc: update IRC information
We're pointing users to the #openstack-hyper-v and #openstack-dev
IRC channels but we aren't specifying which server to use. Let's
include this information as well.

Change-Id: If1f07ba80c953536a4981dae386d7bd7810e4b5b
2021-07-08 09:26:37 +03:00
Lucian Petrut 700e6b4016 Drop OVS support
We're no longer maintaining the Windows OVS port.

Normally, we'd go through the standard deprecation policy but
since the Neutron OVS agent no longer runs on Windows at all since
Wallaby, we're dropping it right away.

Change-Id: I54c681c29c80f1d537e38980f68717b72f6b215b
2021-05-26 08:55:56 +03:00
Lucian Petrut b85e6a2c90 Bump requirements
The lower constraints job is failing as Nova has bumped the
oslo.config minimum requirement. We'll do the same.

The nova conf fixture has been moved so we'll have to pick that up
as well.

Change-Id: I1907982ca8ffc81b2529af22a9a6fd4a55aecafb
2021-05-25 11:28:41 +03:00
jiangzhilin fc24385ee4 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Icfb86dbde500d053e160ef652dd597571bdcd040
2021-05-10 19:03:21 +08:00
OpenStack Release Bot e0aceaab50 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: If4315235006d11e7f26e1632eff4f353860483f2
2021-04-02 09:56:11 +00:00
Lucian Petrut 8e85d7004b Bump minimum requirements to match Nova
Nova bumped a few minimum requirements, which is why our lower
constraints job is currently failing.

We'll have to pick up those changes as well.

Change-Id: Icb31aff7309c008c141fea3a0de5745cd96bd8bc
2021-04-02 11:53:19 +03:00
OpenStack Release Bot 12c7fb686a 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: Ifce33d9eaf9e4faaef570e77be6aac60cbd472e5
2021-03-22 09:11:54 +00:00
Zuul 1c35c12ed0 Merge "rbd volume support" 2021-02-05 08:18:40 +00:00
Lucian Petrut 07c0f8b3c0 Bump eventlet requirement
Nova has raised the eventlet minimum requirement to 0.26.1, which
breaks our lower constraints job.

We're going to use the same constraint.

Change-Id: I9e5f202bc66eae39dcb7c6b3247012b584a8a618
2021-02-05 09:32:25 +02:00
liyou01 2f9ad1959c remove unicode from code
Change-Id: I03f6930fe19b7077202a90ed708a5e227866323c
2021-01-07 10:25:16 +08:00
Lucian Petrut b53f7d21b4 Avoid caching images when unshelving
Shelved instances are snapshotted and then uploaded to Glance.
Once unshelved, the Glance snapshot is removed, so there's no
reason why we should cache it. Furthermore, at the moment
unshelved instances can end up using the wrong image reference,
for example when being migrated.

This change will avoid caching the base image when the instance
is being unshelved.

Closes-Bug: #1907216

Change-Id: I09a0fccdabdc7a41211e364258ca243128784b55
2020-12-14 14:31:47 +02:00
Lucian Petrut f32ea3f0bd 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: Ifa2d545d1be6615bca1a85c471322c7e9a3da3b3
2020-12-10 10:45:02 +02:00
Lucian Petrut 81c7cf6c40 rbd volume support
Ceph 16 (Pacific) will support attaching RBD images to Windows
hosts as well as Hyper-V VMs [1].

This patch updates the Hyper-V driver so that it may be able to
consume RBD volumes.

os-brick patch: I56bf09cbd40679eefa5e378c9b36383de89e980c

[1] https://github.com/ceph/ceph/pull/33750

Implements: blueprint rbd-volumes

Change-Id: I726e426a7274d7c9c6a878afddd23a20ce222a33
2020-11-20 17:00:27 +02:00
Zuul b31ab3a293 Merge "hyperv: Configures chassis asset tags for VMs." 2020-10-26 14:36:32 +00:00
Lucian Petrut c57ac7aab5 Pick up InstanceMetadata changes
The InstanceMetadata constructor has been updated by
Ie27fd6a5513e53903b9acd5d63038b3b484acbde. The "request_context"
parameters was dropped, so we have to stop passing it.

Change-Id: I80bc28f57862f420c9da01839fbfa00902f45da0
2020-10-26 14:09:52 +02:00
Claudiu Belu 32a46037e9 hyperv: Configures chassis asset tags for VMs.
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. The
value we are setting is similar to what libvirt is setting in the
LibvirtConfigGuestSysinfo.

[1] 1efa8a0a03

Partially-Fixes: #1895976

Change-Id: Ib9f605f68c79ff41d3959c7a1662a9e644fde946
Depends-On: 33e6c07dab4b46442bf0fbb838d59516112899b9
2020-10-26 13:20:06 +02:00
OpenStack Release Bot e7021d221a 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: I68b36c3fc21142cfd8c02e6f25a3b7fe3a19db56
2020-09-22 14:11:20 +00:00
OpenStack Release Bot 14dbf5078e 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: I9bf8c3d25bc19a7d13eaf29f10c4d4671fee6177
Sem-Ver: feature
2020-09-22 14:11:17 +00:00
zhangchun 15c0e16c1d Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I17325fa72e9028c40d8e44c1d699068d4725f021
2020-09-15 02:16:05 +00:00
Lucian Petrut 359fe0bc3b Pick up 'unrescue' driver method signature change
A recent patch[1] updated the 'unrescue' signature, adding a context
and dropping the 'network_info' parameter.

We'll need to pick up this change.

At the same time, we're re-adding the mock dependency. We're re-using
some of Nova's fixtures and other test helpers, which still use the
3rd party mock lib: [2].

[1] Id5e4b0f26d5a2a93db6a7d96555a2cff29d9a2cfre
[2] http://paste.openstack.org/raw/796530/

Change-Id: I0d46c4df4982e62ff81285a141c8b71bf06bcf15
2020-08-03 11:57:46 +03:00
lidong e0bada0f47 Add releasenotes link to README
Change-Id: If97e25f781fe76d5d13fc9a08f89340f6be1623f
2020-06-10 14:07:06 +08:00
Andreas Jaeger 47fa4f9e41 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: I614c930776145ab69a1b08d8affce43cae01f092
2020-06-01 16:21:12 +02:00
Zuul b467b20b75 Merge "Fix hacking min version to 3.0.1" 2020-05-27 09:21:30 +00:00
Lucian Petrut d96fed4f3c Fix case sensitive path comparisons
Windows paths are case insensitive. Furthermore, Hyper-V even
flips the casing in some cases.

For that reason, we have to ensure that our path comparisons
are case insensitive.

Change-Id: I4cb059c6bdcb09f7e0c3217fe34654c8e197b67d
Closes-Bug: #1878579
2020-05-14 12:35:08 +03:00
Ghanshyam Mann 705317f85d 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.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I49c423d7e659c31c60684c7ae0792649ec681132
2020-05-12 21:40:00 -05:00
Sean McGinnis b64cf50d07
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: I0cb0339c5e681b63783828cfde9921dfd6727f50
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-04 17:16:38 -05:00
Zuul b0068ba5b4 Merge "Add py38 package metadata" 2020-04-27 12:37:19 +00:00
Sean McGinnis 301658c437
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: I7d030c5de19d4bf4a3993851087026d1a7ac18cb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:36 -05:00
Sean McGinnis 701692082e
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: I5bf6afb3bdddda1cdc5a2c0476ee15073a4d28da
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:34 -05:00
Zuul 4d878f576a Merge "Address driver API changes (finish_migration)" 2020-04-23 10:01:14 +00:00
Lucian Petrut 8d7384a030 Address driver API changes (finish_migration)
As part of a bug fix, Nova is now passing resource allocations to
"finish_migration".

Change-Id: I8323ee22c1c71a9fee04701f62759c57d5182fe3
Depends-On: Ifd76289964d513e9544544e5787f5f8999589475
2020-04-23 11:37:39 +03:00
OpenStack Release Bot 5ce4494fd3 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

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

Change-Id: I20b332823e80577a4cf5f46c8d5d8684a35f9f48
2020-04-22 12:52:28 +00:00
OpenStack Release Bot 444adf0c82 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I1b963a7b410569cb0d4ff2d02faec6eb10aeeb58
Sem-Ver: feature
2020-04-22 12:52:25 +00:00
Zuul b14ae9e276 Merge "Document image cache manager limitation" 2020-04-14 09:08:12 +00:00