Commit Graph

61192 Commits

Author SHA1 Message Date
Vasyl Saienko bf8883ca3b Fix serial console for ironic
Allign code after we switched to openstacksdk in ironic virt driver
related to serial console.

Closes-Bug: #2099872

Depends-On: https://review.opendev.org/c/openstack/requirements/+/942889

Change-Id: Ic25c5e8b9ac9cf87f4f96c9956140aa4f6576ded
2025-03-05 05:07:55 +00:00
Zuul 32326d4894 Merge "trivial: Remove legacy API artifact" 2025-02-10 16:46:39 +00:00
Zuul e36ec1b36b Merge "api: Allow min/max_version arguments to response" 2025-02-10 16:46:32 +00:00
Zuul e27bbe72e0 Merge "Cleanup RBAC jobs in check/gate pipeline" 2025-02-05 20:25:50 +00:00
Ghanshyam Mann bb8ee15106 Cleanup RBAC jobs in check/gate pipeline
This commit does the following changes in gate testing:

- Test tempest-integrated-compute-rbac-old-defaults (Test the
  RBAC old defaults which are deprecated but still supported)
  in periodic weekly pipeline instead of check/gate pipeline.

  Reason: Old defaults are deprecated and it will be rare to
  have any changes in those. These should be ok to run weekly
  to know if anything is broken for old defaults.

- Remove tempest-integrated-compute-enforce-scope-new-defaults
  This test the new defaults which are enabled by default and
  tested in every job.

  Reason: We kept this job for cinder because their new defaults
  are not enabled by default. To test nova new defaults combination
  with cinder new defaults, we have Tempest job running in tempest
  gate (tempest-full-enforce-scope-new-defaults).

Change-Id: I3a1634ff71b39c722401dea8e77092228f9cc064
2025-02-04 19:37:17 +00:00
Ghanshyam Mann b8b11c69bd [Trivial] Fix the typo error
Change-Id: I8234bf6ee7973ef246d57c6da7fd95dbf35a2c0f
2025-02-04 11:33:48 -08:00
Zuul d267ede98f Merge "api: Allow min/max_version arguments to expected_errors" 2025-01-31 00:43:59 +00:00
Zuul 00c8012acf Merge "ironic: Fix ConflictException when deleting server" 2025-01-30 00:31:34 +00:00
Zuul 03ddf02dba Merge "Add ServersViewBuilderTestV296 unit test class" 2025-01-29 11:29:22 +00:00
Mark Goddard 6ebd8a56d1 ironic: Fix ConflictException when deleting server
When unprovision works via Ironic, all operations in _cleanup_deploy
have already been completed. Previous to this patch, we continue
attempting all the clean up steps, which eventually errors out with
BadRequest, or similar, and we complete the delete.

Howerver, if cleaning has started, we hit a conflict exception,
so we don't hit the expected error above.

Prior to moving to the SDK, that landed in Caracal,
we would retry on conflict errors. You can tweak the
config to keep retrying for the length of time cleaning
usually takes in your enviroment.

After this patch:
Ieda5636a5e80ea4af25db2e90be241869759e30c

We now hard fail with this error:

openstack.exceptions.ConflictException:
Failed to detach VIF xxx from bare metal node yyy
...
Node yyy is locked by host zzz,
please retry after the current operation is completed.

This change simply skips calling the operations that
will always error out, avoiding the need to wait for
cleainging to complete before getting the expected
error message.

Closes-Bug: #2019977
Related-Bug: #1815799
Change-Id: I60971b58cf1f24bdb5d40f668e380ebfee2ac495
2025-01-29 09:59:58 +00:00
Zuul 8c953d4d25 Merge "zuul: Add missing context comments for nova-next" 2025-01-28 22:32:50 +00:00
Zuul a49c146504 Merge "Fix typo in release note" 2025-01-28 20:11:38 +00:00
Stephen Finucane 41a8a6ff82 trivial: Remove legacy API artifact
_api_version was always being set to '2.1' so logic based on this wasn't
doing anything. Removing this also highlights a few other places where
we have useless variable assignment and mocking happening.

Change-Id: I4171191624e10513cbf094a3bebb4b1fcba3cc6c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-01-24 10:07:10 +00:00
Stephen Finucane 97ca3204ad api: Allow min/max_version arguments to response
As with expected_errors previously, this will allow us to get rid of the
duplicate function definitions that are the bane of my life as I add
schemas.

Change-Id: I6df7b257f7d2460b053a62f4393021d17789ea05
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-01-24 10:07:10 +00:00
Stephen Finucane 06e1353334 api: Allow min/max_version arguments to expected_errors
This will allow us to get rid of the duplicate function definitions that
are the bane of my life as we add schemas.

Change-Id: I1fbcb5dec81bcd66a863155783de6273e806dc2c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-01-24 10:07:10 +00:00
James Page 6f537e756b Restore nova.virt.__init__
Commit 14b5232e12 dropped use of
pkg_resources but also completely removed the __init__.py from
the nova.virt directory.  This creates mayhem downstream in
distros where tooling considers this not a module and excludes it
from the installed package.

Restore the __init__.py to resolve this.

Change-Id: I40ee77ee3a41e1ff458c963f6609c03a5c69eb86
2025-01-23 08:37:20 +00:00
Zuul 932866d078 Merge "Run nova-next without periodic cache healing" 2025-01-22 18:30:38 +00:00
Masahito Muroi 466156c3d5 Add ServersViewBuilderTestV296 unit test class
This new class is an unit test class for the server view builder
v2.96, which reproduces the bug #2095364. The bug is the list
server API and the list server details API returns 500 Internal
Server Error if request_spec object is missing by any reason.

Related-Bug: #2095364
Change-Id: I80d06ea335dd6fb311c4b9c9a79dbaa46ebe695f
2025-01-21 09:57:40 +09:00
Zuul 3d21445b73 Merge "Add whitebox-devstack-multinode job to periodic" 2025-01-20 21:08:50 +00:00
Zuul 8e11079376 Merge "libvirt: Wrap un-proxied listDevices() and listAllDevices()" 2025-01-20 19:19:58 +00:00
melanie witt f304b9eaad libvirt: Wrap un-proxied listDevices() and listAllDevices()
This is similar to change I668643c836d46a25df46d4c99a973af5e50a39db
where the objects returned in a list from a libvirt call were not
tpool.Proxy wrapped. Because the objects are not wrapped, calling
methods on them such as listCaps() can block all other greenthreads
and can cause nova-compute to freeze for hours in certain scenarios.

This adds the same wrapping to libvirt calls which return lists of
virNodeDevice.

Closes-Bug: #2091033

Change-Id: I60d6f04d374e9ede5895a43b7a75e955b0fea3c5
2025-01-17 11:08:11 +00:00
Bogdan Dobrelya 26d174b65d Run nova-next without periodic cache healing
Neutron networking backends today are expected to work without
the periodic healing of the cache in Nova. Turn it off to gain
additional performance and in order to start testing this
setup in advance, before we are ready to change the default
value to it.

Change-Id: Ic90949cae840290dc376af7a7a3056babe2539f2
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2025-01-16 15:19:44 +01:00
Zuul e4efead033 Merge "Revert "libvirt: Wrap un-proxied listDevices() and listAllDevices()"" 2025-01-16 09:48:50 +00:00
Zuul aadf01d05e Merge "Improve heal_instance_info_cache periodic" 2025-01-16 00:42:51 +00:00
sean mooney a67ab85678 Revert "libvirt: Wrap un-proxied listDevices() and listAllDevices()"
This reverts commit 0fccb365dd.

Reason for revert: the current version does not have test coverage to assert the proxy is used so we should revert this and fix it before backporting

Change-Id: I51cf7da85e05131da72acdcf9be09121a326d414
2025-01-14 17:12:41 +00:00
Zuul 77e9ec0a65 Merge "Handle iso+gpt detections" 2025-01-14 00:58:43 +00:00
Zuul a459467899 Merge "Fix add/remove SecurityGroup action json schemas" 2025-01-10 11:08:18 +00:00
Zuul b34ffcdea2 Merge "db: Retrieve VirtualInterface objects by UUID, not address" 2025-01-10 04:33:10 +00:00
Zuul feb55f3227 Merge "Fix bug 2000069" 2025-01-10 04:33:03 +00:00
Zuul a2e555574c Merge "docs: Show the recommended way to PXE boot an instance" 2025-01-10 03:17:48 +00:00
Zuul 2f27cc8a36 Merge "Adapt tests to new messages from jsonschema 4.23.0" 2025-01-10 03:17:40 +00:00
Zuul 12710fcb79 Merge "Drop compatibility code for Windows" 2025-01-10 03:17:32 +00:00
Zuul 3bd741126a Merge "Fix the command to list hw_machine_type unset instances" 2025-01-10 03:02:49 +00:00
Zuul 4871641b85 Merge "Modify the url of openstack client commands." 2025-01-10 03:02:42 +00:00
Zuul 1e98790381 Merge "Drop SQLALCHEMY_WARN_20" 2025-01-10 03:02:35 +00:00
Zuul 5ff412cb18 Merge "libvirt: Wrap un-proxied listDevices() and listAllDevices()" 2025-01-10 03:02:27 +00:00
Zuul 5420f9fb9a Merge "Allow hyphen in cinder catalog_info service-type" 2025-01-10 03:02:21 +00:00
Zuul 634be5191e Merge "api-ref: Update note on flavor disabled property" 2025-01-08 12:29:38 +00:00
Stephen Finucane 37e3d960f4 api-ref: Update note on flavor disabled property
This is not admin-only as suggested by the api-ref. In addition, there is
no mechanism available to disable flavors so this will always be false.

Change-Id: Ie1906366c8f141c6f6c58f21b0ff67eb827df4c8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-01-08 11:52:29 +00:00
Zuul 5bd645f444 Merge "Drop unused decoding of xml content" 2025-01-08 05:02:29 +00:00
Zuul e10b36b5d3 Merge "Refactor response schemas for share API" 2025-01-06 20:36:33 +00:00
Zuul c3250d23a7 Merge "[tox] add LOCALE_ARCHIVE to passenv" 2024-12-30 10:32:06 +00:00
Dr. Jens Harbott 2c8400043d Allow hyphen in cinder catalog_info service-type
The official service type for Cinder according to [0] is
"block-storage", so it should be allowed in the validation regex.

[0] https://specs.openstack.org/openstack/service-types-authority/

Closes-Bug: 2092194
Change-Id: I9a57aa72cc9589cec08b0f8d5797108043747ef6
2024-12-19 13:51:11 +01:00
René Ribaud 71e644764c Refactor response schemas for share API
Improve the schemas as suggested by stephenfin.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow
the shares provided by Manila to be associated with and attached to
instances using virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares
Change-Id: I0857410482439406da28410a6d7f5ca7f04e9c21
2024-12-13 14:04:55 +01:00
Zuul 3c038645db Merge "Refactor test_server_shares: Mock in Base Class and trait verification" 2024-12-13 10:40:32 +00:00
Zuul 4860c40d82 Merge "Manila shares admin guide documentation" 2024-12-13 10:40:25 +00:00
Zuul 8b7dce757c Merge "Add virt/libvirt error test cases" 2024-12-13 10:40:18 +00:00
Zuul 6568bc973c Merge "Add libvirt test to ensure metadata are working." 2024-12-13 08:26:12 +00:00
Zuul 967dbbd9aa Merge "Reports instance events to the DB regarding attaching and detaching a share" 2024-12-13 03:45:20 +00:00
Zuul 728337f200 Merge "Add instance.share_detach_error notification" 2024-12-12 21:36:13 +00:00