8a993d583ffedb608a67acac9fce0c3d065e2dd2
Commit Graph

61764 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Zuul
8a993d583f Merge "add functional repoducer for bug 2048837" 2025年11月14日 22:20:55 +00:00
Dan Smith
326b77d837 Test nova-next with >1 parallel migrations
Change-Id: Ic69872e6667664d1b3bd7a88d7ef018b67352f44
Signed-off-by: Dan Smith <dansmith@redhat.com>
2025年11月13日 06:32:54 -08:00
Sean Mooney
fac1a4d9de add functional repoducer for bug 2048837
Change-Id: I8ce3044cff198209416d2a458317f01d1177e9da
Signed-off-by: Sean Mooney <work@seanmooney.info>
2025年11月12日 10:32:06 +00:00
Zuul
b7d50570c7 Merge "api: Add response body schemas for volumes APIs" 2025年11月11日 20:10:29 +00:00
Sean Mooney
61242f75da allow funtional test to run with released placment
As part of I0b5e13673cb4cc7c57aeae50914ace443dfc18fa
a new depency was created on a placement config
option and the workarounds config group
This enabled the workaround added in
I13ab83a165c229ae57876df4570e8af25221a45e
which is present on master but not in a release
That works in ci because in ci we use placement
master but locally and in the requirement repo
we do not.
Closes-Bug: #2131032
Change-Id: I744049b5cf0ef69624fc4b6db1e5f415ab89a5af
Signed-off-by: Sean Mooney <work@seanmooney.info>
2025年11月10日 20:07:10 +00:00
Zuul
68a0a69c33 Merge "Allow to perform parallel live migrations" 2025年11月07日 22:36:34 +00:00
Zuul
6625a7b0c0 Merge "Fix test_simple_tenant_usage test" 2025年11月07日 19:27:55 +00:00
Zuul
44c9d18b08 Merge "Migrate setup configuration to pyproject.toml" 2025年11月07日 17:18:30 +00:00
Zuul
3466cd0152 Merge "Migrate codespell configuration to pyproject.toml" 2025年11月07日 17:18:18 +00:00
Zuul
fa3f07994f Merge "Migrate mypy configuration to pyproject.toml" 2025年11月07日 17:18:06 +00:00
Dmitriy Rabotyagov
25fbf32f22 Allow to perform parallel live migrations
This patch implements parallel live migrations for libvirt driver.
It is achieved through introduction of new configuration parameter
`live_migration_parallel_connections`.
This allows to eliminate bottleneck on live migration speed by
establishing multiple connections for memory transition, thus
leveraging multi-threaded behavior in QEMU.
Implements-blueprint: libvirt-parallel-migrate
Change-Id: I98ff5f07f94d94f3aa0227591f425d532773adb0
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
2025年11月07日 07:17:54 -08:00
Zuul
6ce9c77553 Merge "Default native threading for sch, api and metadata" 2025年11月07日 12:52:34 +00:00
Zuul
a79fea0347 Merge "Move monkey_patch from init to the entrypoints" 2025年11月06日 23:48:36 +00:00
Balazs Gibizer
35207ee8b5 Default native threading for sch, api and metadata
This patch switches the default concurrency mode to native threading
for the services that gained native threading support in Flamingo:
nova-scheduler, nova-api, and nova-metadata.
The OS_NOVA_DISABLE_EVENTLET_PATCHING env variable still can be used to
explicitly switch the concurrency mode to eventlet by
 OS_NOVA_DISABLE_EVENTLET_PATCHING=false
We also ensure that the cover, docs, py3xx and functional tox targets
are still running with eventlet while py312-threading kept running
with native threading.
Change-Id: I86c7f31f19ca3345218171f0abfa8ddd4f8fc7ea
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
2025年11月06日 19:42:24 +01:00
Zuul
4cfdf18a0b Merge "[CI]nova-alt-configurations tests eventlet" 2025年11月06日 17:44:13 +00:00
Ghanshyam Maan
c4ddc76bd6 Fix test_simple_tenant_usage test
API policy test_simple_tenant_usage test does
not send the start and end time in request's query
string. In that case, API set the current time to
both start and end times. So there is a chance that
both start and end times can be the same, and Nova
raises an error:
- 9e5ad07aee/nova/api/openstack/compute/simple_tenant_usage.py (L258)
Closes-Bug: 2130703
Change-Id: Ib47890087110d460504df64aeed5206ded2e70b0
Signed-off-by: Ghanshyam Maan <gmaan@ghanshyammann.com>
2025年11月05日 20:23:48 +00:00
Zuul
7cf0758f38 Merge "Add handling for vTPM secret permission error" 2025年11月05日 20:23:18 +00:00
Zuul
66558107c7 Merge "Add hw:tpm_secret_security extra spec validation" 2025年11月05日 20:23:05 +00:00
Balazs Gibizer
0afb72e883 Move monkey_patch from init to the entrypoints
This move is needed so that we can define a per service default for
monkey patching.
And yes, the single line with both noqa and autopep8 decorators are
needed to convince autopep8 that this code is OK to be at the start of
the file.
After moving the monkey_patching earlier in the wsgi entrypoint I needed
to move the functional test monkey_patching call earlier too to keep the
early enough for the test where the wsgi entry point is not directly
imported
Change-Id: Idedd2a440adc1cde1e8ffe6636854d5a891e66d2
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
2025年11月05日 15:56:59 +01:00
Balazs Gibizer
0bf6780fb8 [CI]nova-alt-configurations tests eventlet
This patch renames the nova-ovs-hybrid-plug Job to
nova-alt-configurations and ensures that all nova services are
running with eventlet even after some of the services switches to
native threading by default. This ensures we keep eventlet test
coverage in place.
Change-Id: Id2b70aa3870f2bf5a28c875a7564f84c012c9456
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
2025年11月05日 14:14:04 +01:00
Zuul
9e5ad07aee Merge "setup: Remove pbr's wsgi_scripts" 2025年11月05日 11:15:52 +00:00
Stephen Finucane
324af749bb Migrate setup configuration to pyproject.toml
Or as much of it as we can currently.
Change-Id: I25f8e0ae5f7a652576678829e574b5bf2d2441a2
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025年11月04日 16:11:53 +00:00
Stephen Finucane
0b5461e18b Migrate codespell configuration to pyproject.toml
Change-Id: I9554b74bfd732e0e8e792ba543f2c3a6908c4bd9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025年11月04日 16:11:53 +00:00
Stephen Finucane
4b09ba2a6b Migrate mypy configuration to pyproject.toml
Change-Id: Ife39b55eb40c9cb8e61f1b2295b6d42cefe3a680
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025年11月04日 16:11:53 +00:00
Stephen Finucane
5da2dc2060 setup: Remove pbr's wsgi_scripts
This is technical dead end and not something we're going to be able to
support long-term in pbr. We need to push users away from this. Doing so
highlights quite a few place where our docs need some work, particularly
in light of the recent removal of the eventlet servers.
Change-Id: I2ffaed710fac2612f5337aca5192af15eab46861
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025年11月04日 16:11:50 +00:00
Johannes Kulik
710ffbb0c5 api: Pre-query not deleted members in server groups
When retrieving multiple - or all - server groups, the code tries to
find not deleted members for each server group in every cell
individually. This is highly inefficient, which is especially noticable
when the number of server groups rises.
We change this to query all members of all server-groups we will reply
with (i.e. from the already limited list) in advance and pass this set
of existing uuids into the function formatting the server group. This is
more efficient, because we only do one large query instead of up to 1000
times the number of cells.
Change-Id: I3459ce7a8bec9a9e6f3a3b496a3e441078b86af0
Signed-off-by: Johannes Kulik <johannes.kulik@sap.com>
Partial-Bug: #2122109 
2025年11月03日 11:46:43 +01:00
Zuul
32f58e8ad6 Merge "[func]Test with optimize_for_wide_provider_trees" 2025年10月31日 16:30:09 +00:00
Zuul
74c568b96b Merge "[CI][nova-next]test with placement ac optimizations" 2025年10月31日 16:29:56 +00:00
melanie witt
b4861a6d2b Add handling for vTPM secret permission error
Currently there is no handling for this case so if we get a HTTP 403
from Barbican for a permission error, a very long multi-layered
traceback gets logged in nova-compute. This can happen if an admin
tries to start an instance with vTPM belonging to a different user, for
example.
This adds some basic error handling for this case. Most of the logged
traceback consists RPC oslo.messaging content, so the new
VTPMSecretForbidden exception is added as an expected exception to the
compute manager methods we expect users are more likely to encounter
such as build, start, and reboot.
Other compute manager methods where VTPMSecretForbidden can be raised
are resize, resume, restore, and delete but we will leave these as-is
and let them log tracebacks because we expect them to be rare.
Change-Id: I2ef6df818ed3f63efe2ff9b333c97928d4efa18d
Signed-off-by: melanie witt <melwittt@gmail.com>
2025年10月29日 22:15:43 +00:00
Artom Lifshitz
7446ba158e Add hw:tpm_secret_security extra spec validation
Like the image property, it can have the `user`, `host`, or
`deployment` value. Use this opportunity to also add unit testing for
the previous TPM extra specs, hw:tpm_model and hw:tpm_version.
NOTE(artom) The spec used hw:vtpm_secret_security, this patch uses
hw:tpm_secret_security (without the v) to align with the existing
extra specs (and image properties).
Implements: blueprint vtpm-live-migration
Change-Id: Ie6495bef7a2a782d4c70eae7f8ff685afe8fe93a
Signed-off-by: melanie witt <melwittt@gmail.com>
2025年10月29日 22:15:43 +00:00
Zuul
30bf8c1025 Merge "api: Handle empty imageRef alongside null for local BDM check" 2025年10月24日 14:55:45 +00:00
Zuul
eff7dfd693 Merge "pci: Add more detail and examples to pci.alias docs" 2025年10月22日 18:54:13 +00:00
Zuul
a2fa7b1fa1 Merge "[doc]PCI in Placement tuning" 2025年10月21日 11:58:39 +00:00
Zuul
7daff51fe9 Merge "Dump conf to debug log later in the WSGI app pipeline" 2025年10月20日 22:27:42 +00:00
Zuul
94ae45c1d1 Merge "api-ref: Fix server topology API docs" 2025年10月19日 10:37:37 +00:00
melanie witt
45cdc1903b Dump conf to debug log later in the WSGI app pipeline
When CONF.log_options = True, we dump the config to the DEBUG log and
it can help with debugging issues to see whether a config has been
applied or not. Currently, the log is dumped before other options in
the pipeline are registered, such as the keystonemiddleware.auth_token
options in the [keystone_authtoken] config section.
This moves the conf dumping code after the WSGI app is loaded in order
to reflect more config options in the debug log.
Change-Id: I53d36b68d7942bc65a85fbe314a7f0baa6124343
Signed-off-by: melanie witt <melwittt@gmail.com>
2025年10月17日 11:30:06 -07:00
Zuul
6d5cf6845e Merge "Fix fill_metadata usage for the ImagePropertiesWeigher" 2025年10月16日 23:56:01 +00:00
Balazs Gibizer
29c609be23 [func]Test with optimize_for_wide_provider_trees
Placement implemented a workaround optimization for large provider
trees. This patch enables that optimization to run the pci_in_placement
related nova functional tests with this config enabled.
Change-Id: I0b5e13673cb4cc7c57aeae50914ace443dfc18fa
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
2025年10月16日 19:03:24 +02:00
Balazs Gibizer
35b8a1cae9 [doc]PCI in Placement tuning
Related-Bug: #2070257
Related-Bug: #2126751
Change-Id: I602c78e02d1821fab202a91fc4e42e1b0cae42ad
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
2025年10月16日 17:29:16 +02:00
Sylvain Bauza
98885344bd Fix fill_metadata usage for the ImagePropertiesWeigher
When using the weigher, we need to target the right cell context for the
existing instances in the host.
fill_metadata was also having an issue as we need to pass the dict value
from the updated dict by keying the instance uuid, not the whole dict of
updated instances.
Change-Id: I18260095ed263da4204f21de27f866568843804e
Closes-Bug: #2125935
Signed-off-by: Sylvain Bauza <sbauza@redhat.com>
2025年10月16日 11:09:45 +02:00
Zuul
17f1f0ad49 Merge "Switch nova-conductor to use global executor" 2025年10月14日 18:45:50 +00:00
Zuul
9df3068dc7 Merge "Move cleanup of vTPM secret from driver to compute" 2025年10月14日 16:44:46 +00:00
Zuul
420df9ecf8 Merge "Add functional reproducer for bug 2125030" 2025年10月14日 15:30:50 +00:00
Kamil Sambor
f6314d9027 Switch nova-conductor to use global executor
Change-Id: I0700a907746712965860455909d976f6eab0d9bd
Signed-off-by: Kamil Sambor <kamil.sambor@gmail.com>
2025年10月13日 13:26:26 +02:00
Zuul
8b81b5f91f Merge "Reset the mapped field of nodes at service deletion" 2025年10月13日 10:17:28 +00:00
Balazs Gibizer
da1fb487e7 [CI][nova-next]test with placement ac optimizations
The nova-next job will run tempest with allocation candidate generation
optimizations enabled:
 [placement]
 allocation_candidates_generation_strategy = breadth-first
 max_allocation_candidates = 100000
 [workarounds]
 optimize_for_wide_provider_trees = True
Depends-On: https://review.opendev.org/c/openstack/devstack/+/939825
Deepnds-On: https://review.opendev.org/c/openstack/placement/+/962776
Change-Id: Icbfc568bead950a3be22784746421cc11382b2d7
Signed-off-by: Balazs Gibizer <gibi@redhat.com>
2025年10月13日 11:07:06 +02:00
Zuul
d4044a8031 Merge "Add a regression test for ImagePropsWeigher" 2025年10月10日 18:29:56 +00:00
Zuul
ff15b46eb9 Merge "Adds regression test for bug LP#2085135" 2025年10月10日 10:22:15 +00:00
Zuul
f1930757a9 Merge "Fix string format specifier" 2025年10月10日 10:21:38 +00:00
Julien Le Jeune
c04c94ecfb Reset the mapped field of nodes at service deletion
Make sure that the 'mapped' field of compute nodes is reset
to 0 at nova-compute service deletion.
To let nova-manage create the missing host mapping in nova_api
database.
Closes-Bug: #2085135
Change-Id: I774d4312d7e94af94d960f7269717a00fa08c583
Signed-off-by: Julien Le Jeune <julien.le-jeune@ovhcloud.com>
2025年10月09日 15:18:16 +02:00