Commit Graph

60434 Commits

Author SHA1 Message Date
Zuul 96d7c42e27 Merge "doc: clarify that pre-commit is optional" 2023-11-10 19:26:38 +00:00
Zuul 338ee65c4c Merge "Fix unit tests broken by olso.utils" 2023-11-10 02:55:21 +00:00
Takashi Kajinami e04d20a8bc Fix unit tests broken by olso.utils
Some of the object unit tests grub Mock object unintentionally, and
that results in failure during initializing an versioned object,
because the Mock object does not present its version correctly.

This fixes that problem

The sqlalchemy-2x job is made non-voting because this job requires
oslo.utils 6.3.0 which is blocked by this problem.

Closes-Bug: #2043116
Related-Bug: #2042886
Change-Id: Id1c1b77c020e2d8f0ac61c2aee86c9f37d388d53
2023-11-09 15:41:57 +00:00
Sylvain Bauza b64ecb0cc7 Adding server actions tests to grenade-multinode
We recently found a rolling-upgrade bug on rebuild so we need to make
sure that grenade-multinode can verify all our instance actions.

Given we pin the compute RPC API version to the N-1 compute one, we are
sure that all RPC calls continue to behave the previous release.

NOTE : Given the previous cycle was already supporting 6.2 RPC version,
we can't test here the previous problems hence why this is the last
patch from the series.

Change-Id: I1d8deb139922494dd74ff32965fd7dd74d1d768b
Related-Bug: #2040264
2023-10-30 10:17:57 -07:00
Sylvain Bauza ee9ed0f7c6 Fix rebuild compute RPC API exception for rolling-upgrades
By I0d889691de1af6875603a9f0f174590229e7be18 we broke rebuild for Yoga
or older computes.
By I9660d42937ad62d647afc6be965f166cc5631392 we broke rebuild for Zed
computes.

Fixing this by making the parameters optional.

Change-Id: I0ca04045f8ac742e2b50490cbe5efccaee45c5c0
Closed-Bug: #2040264
2023-10-30 10:17:42 -07:00
Sylvain Bauza 21fd0c430c add a regression test for all compute RPCAPI 6.x pinnings for rebuild
We forgot that we automatically pin our RPC calls to the RPC version
that the older compute supports, so when rolling-upgrading computes, we
continue to use either Yoga or Zed versions for example when upgrading
to 2023.1.

Since the new parameters aren't optional, we broke the
rebuild_instance() method then for Yoga to Zed and Zed to 2023.1.

Change-Id: Icf340f3d4c5ce0a4b7388003f168e7c479e58eee
Related-Bug: #2040264
2023-10-30 10:17:14 -07:00
Zuul 16d4e1d455 Merge "disable ovn based testing of test_live_migration_with_trunk" 2023-10-29 21:06:30 +00:00
Zuul f0d0c92343 Merge "objects: Stop fetching from security_groups table" 2023-10-29 21:06:22 +00:00
Zuul b37d50fecc Merge "fix sphinx-lint issues in api guide" 2023-10-24 23:54:55 +00:00
Zuul bed227c33a Merge "fix sphinx-lint issues in releasenotes" 2023-10-24 23:54:49 +00:00
Zuul d0b459423d Merge "Revert "Add upgrade check for compute-object-ids linkage"" 2023-10-20 21:44:59 +00:00
Zuul 9c9cd3d9b6 Merge "Translate VF network capabilities to port binding" 2023-10-20 14:36:50 +00:00
Zuul 67063dcfab Merge "Do not manage CPU0's state" 2023-10-19 22:13:48 +00:00
Zuul 4eecb60d97 Merge "docs: Fix unified limits code block text alignment" 2023-10-19 13:36:06 +00:00
Zuul 6094a68291 Merge "Clean up service_get_all()" 2023-10-18 23:16:20 +00:00
Zuul fca980cfb8 Merge "Improve logging at '_numa_cells_support_network_metadata'" 2023-10-18 23:05:46 +00:00
melanie witt e36b5315a1 docs: Fix unified limits code block text alignment
The text alignment for one of the code blocks on the unified limits
admin doc page being off by one causes the rendered code block to be
slightly askew.

This fixes the alignment and also adjusts inconsistencies in code block
text alignment throughout the unified limits docs.

Change-Id: I52b61ad63a9788fe6443284db1a4e9012674aafe
2023-10-18 22:01:02 +00:00
Dan Smith e1b84a3987 Revert "Add upgrade check for compute-object-ids linkage"
This is being reverted because it's overly strict and complaining
that upgrade-related work has not been done before it should have or
needs to have been done. This may be re-added later when we start
depending on these linkages.

Closes-Bug: #2039597
This reverts commit 27f384b7ac.

Change-Id: Ifa5b82ca3b83d0ba481aa7a062827bd8e838989a
2023-10-18 07:25:37 -07:00
Alexey Stupnikov cef3b5ef2c Translate VF network capabilities to port binding
Libvirt's node device driver accumulates and reports information
about host devices. Network capabilities reported by node device
driver for NIC contain information about HW offloads supported
by this NIC.

One of possible features reported by node device driver is
switchdev: a NIC capability to implement VFs similar to actual
HW switch ports (also referred to as SR-IOV OVS hardware offload).
From Neutron perspective, vnic-type should be set to "direct" and
"switchdev" capability should be added to port binding profile to
enable HW offload (there are also configuration steps on compute
hosts to tune NIC config).

This patch was written to automatically translate "switchdev" from
VF network capabilities reported by node device driver to Neutron
port binding profile and allow user to skip manual step that
requires admin privileges.

Other capabilities are also translated: they are not used right
now, but provide visibility and can be utilized later.

Closes-bug: #2020813
Closes-bug: #2008238
Change-Id: I3b17f386325b8f42c0c374f766fb21c520161a59
2023-10-17 13:31:04 +00:00
Dan Smith bfdc99ffbb Install lxml before we need it in post-run
Change-Id: Ibf6bfde6c524821fa5dc3c01b2eb57635e587de6
Closes-Bug: #2039463
2023-10-16 08:32:56 -07:00
Zuul 9dceb735f6 Merge "Warn if we find compute services in cell0" 2023-10-14 00:40:32 +00:00
Zuul 3cee369de5 Merge "Compile mdev samples for nova-next" 2023-10-13 16:25:20 +00:00
Dan Smith 0b9d8cee58 Do not manage CPU0's state
If cpu_power_management_strategy is "cpu_state" and CPU0 is in the
dedicated set, we should just ignore it whenever we go to manage the
state. Since CPU0 cannot be powered off, but may be otherwise suitable
for the dedicated set, we can just skip it whenever we would normally
go to power it up or down.

Change-Id: I995c0953b361c7016bd77482fa2e2f276d239828
Fixes-Bug: #2038840
2023-10-12 12:20:45 -07:00
Dan Smith 82f4da91ab Compile mdev samples for nova-next
Change-Id: If44964f2b99ee0482600ec31e85ea1d4caeea1b3
2023-10-12 08:57:35 -07:00
Zuul 1e75373beb Merge "Sanity check that new hosts have no instances" 2023-10-11 15:48:02 +00:00
Zuul aba83b3fc2 Merge "cpu: make governors to be optional" 2023-10-09 18:45:50 +00:00
Dan Smith 190ecc6b8b Clean up service_get_all()
When we added the all_cells flag to this we just kinda hacked it
into place, leaving a big chunk of the method nested inside a
conditional. This refactors out that chunk into a helper, and also
corrects a naming error that was very confusing when reading the code
(a variable named "service" which was a list of services).

Change-Id: I41ff076864dce9ed826922f6609536ea4545a181
2023-10-09 07:45:08 -07:00
Dan Smith 86889b9182 Warn if we find compute services in cell0
While debugging a field issue recently, we determined that computes
had been pointed at cell0 and created service and node records there.
This makes us warn during service list if we find compute services
in cell0 to tip off operators that they have a configuration problem.

Change-Id: Id95c0d02cc34348623b01997fcd1930628d48ccc
2023-10-09 07:03:48 -07:00
Zuul b419f1dc56 Merge "Fix URLs in status check results" 2023-10-04 22:46:30 +00:00
Dr. Jens Harbott 32dc852b56 Fix URLs in status check results
The URLs had the wrong order of "/latest/nova" instead of the correct
one, leading to "404 not found" errors.

Closes-Bug: 2036530

Change-Id: I083381ad2649c06be9443f5ed6a55bddafab4df8
2023-10-04 17:18:23 +00:00
Zuul 9246630058 Merge "Add job to test with SQLAlchemy master (2.x)" 2023-10-03 16:00:57 +00:00
Sean Mooney df0a99a29a fix sphinx-lint issues in api guide
as with the previous commit this change is simply correcting the
usage of backticks for inline literals

Change-Id: Icbfd168266dc1348ee15f7347ed673d220989ceb
2023-10-02 22:20:01 +01:00
Sean Mooney 0829c1b995 fix sphinx-lint issues in releasenotes
This change adress the incorrect use fo single backticks
for literals `literal` -> ``literal``

Change-Id: I852e397d0c19987bd16898581b58d5e776548a6b
2023-10-02 22:07:43 +01:00
Dan Smith abbac59e33 Sanity check that new hosts have no instances
If we are starting up and we think we are a new host (i.e. no pre-
existing service record was found for us), we expect to have no
instances on our hypervisor. If that is not the case, it is likely
that we got pointed at a new fresh database or the wrong database
(i.e. a different cell from our own). In that case, we should abort
startup to avoid creating new service, compute node, and resource
provider records.

This is a sort of follow-on additional improvement related to
work done in blueprint stable-compute-uuid.

Change-Id: Id817c51c90485119270f3b7f3c52858f42100637
2023-10-02 12:35:00 -07:00
Sylvain Bauza 167e3380c9 doc: clarify that pre-commit is optional
Change-Id: Id904304da6c8b300fbdf151089bfc95666bdaebe
2023-10-02 17:53:12 +02:00
Zuul 87d4807848 Merge "docs: update libvirt support matrix by adding min versions" 2023-09-25 14:21:17 +00:00
Zuul f8697f4816 Merge "Update master for stable/2023.2" 2023-09-25 13:31:37 +00:00
Sylvain Bauza 05fb718456 docs: update libvirt support matrix by adding min versions
We had a long blip between Xena and now where we didn't changed the libvirt
versions. Now it's time to modify the documentation for it.

Change-Id: Ida10f12d7dd950e470ba06d0f38c3dd6ac7f8876
TODO: We should also modify the supported distro versions.
2023-09-25 12:08:25 +02:00
Zuul 11843f249c Merge "Fix pep8 errors with new hacking" 2023-09-22 17:34:40 +00:00
Zuul c96ff395df Merge "db: Replace use of backref" 2023-09-22 12:25:03 +00:00
Stephen Finucane ed6563b078 Add job to test with SQLAlchemy master (2.x)
Change-Id: I9ae3ddc7e57d2afcfc9dad49e3361080f8145357
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-22 11:15:56 +01:00
OpenStack Proposal Bot 4fa7a335dc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I48a9dbd179f46134d653542f94d797dc0b818e38
2023-09-22 03:20:48 +00:00
OpenStack Release Bot ab9f55f649 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: Ifd0b0ebbe148a323304a9e422e4c7f2bf39757f8
2023-09-21 10:36:59 +00:00
Zuul 1f60a71e0a Merge "Add a Bobcat prelude section" 2023-09-19 13:50:23 +00:00
Sylvain Bauza 10ea7a4fb2 Add a Bobcat prelude section
Shamelessly copied from the cycle highlights.

Change-Id: I79b501e61b91fc0e003bfe352975c6500917f7e7
2023-09-19 11:32:43 +02:00
Zuul 022b1bf2a6 Merge "Revert "Limit nodes by ironic shard key"" 2023-09-18 19:07:55 +00:00
Zuul 270e63e20a Merge "Revert "Add nova-manage ironic-compute-node-move"" 2023-09-18 13:41:30 +00:00
Sean Mooney c290a6ed75 disable ovn based testing of test_live_migration_with_trunk
due to bug #1940425 where ml2/ovn is not correctly configuring the
active status on trunk port we see test_live_migration_with_trunk
fail more often then not.

This was previously disbaled in tempest and then fixed in neutorn.
the tempest skip was then reverted and so was the neutron fix as
it broke somethign else... so this is failing in our gate again.

This change skips test_live_migration_with_trunk on all jobs that
are using ml2/ovn but keeps it enabled on the hybrid plug job
which uses ml2/ovs.

Related-Bug: #1940425
Change-Id: I0a8dd6e6e30526aa2841b4db67ed9affed166fd8
2023-09-18 13:49:59 +01:00
Zuul 3e8b2f37a7 Merge "Make our nova-ovs-hybrid-plug job omit cinder" 2023-09-16 21:27:13 +00:00
Zuul b4e6daf6fa Merge "Add service version for Bobcat" 2023-09-14 08:24:43 +00:00