60199 Commits

Author SHA1 Message Date
Dan Smith
89b3b7795c Allow running functional-py311
This makes us able to run functional on python 3.11. Without this,
tox will happily (and silently) run the default venv, which is unit
tests.

Change-Id: I544a29ae78814f9a454daba8c1978f7ab2c2505c
2023-04-05 08:18:55 -07:00
Zuul
2aea80c0af Merge "Update min support for Bobcat" 2023-04-04 16:19:45 +00:00
Eric Harney
29de62bf3b mypy: Fix implicit optional usage
Current versions of mypy run with no-implicit-optional
by default.  This change gets Nova's mypy test environment
to pass again.

Change-Id: Ie50c8d364ad9c339355cc138b560ec4df14fe307
2023-03-27 10:43:58 -04:00
Dan Smith
402b155043 Add grenade-skip-level-always to nova
This makes us test N-2->N even for non-SLURP releases. Ideally we
would continue to keep this working, even though we don't have to.
But, even if this highlights some breaking change and we have to drop
this job, the sentinel will be useful.

Depends-On: https://review.opendev.org/c/openstack/grenade/+/875990
Change-Id: I2b21e7d5f487f65ce4391f5c934046552d01a1e2
2023-03-23 07:16:43 -07:00
Zuul
3886f078de Merge "Unbind port when offloading a shelved instance" 2023-03-13 18:04:20 +00:00
Zuul
373be3db5b Merge "fup for power management series" 2023-03-09 18:41:42 +00:00
Zuul
8de4377fa0 Merge "Update master for stable/2023.1" 2023-03-09 13:06:43 +00:00
OpenStack Proposal Bot
4df62f7015 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9442fd04f852986e903768f06453f2a0d9cc4dbb
2023-03-09 03:13:12 +00:00
Sylvain Bauza
55a3f17e0e Update min support for Bobcat
I needed to update some VDPA functests as they were verifying a Yoga compute
service.

NOTE(sbauza): For the moment, the grenade-skip-level is not voting but it
will be done once I2b21e7d5f487f65ce4391f5c934046552d01a1e2 is merged.

Change-Id: I8ef2a8f251a3142c359e14841459bffcc3b50ac9
2023-03-08 14:39:50 +01:00
Zuul
c4fe563bdd Merge "testing: Reset affinity support global variables" 2023-03-06 18:57:21 +00:00
e0fc974b97 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: I96511e7f86a9f7be9f65e0133c8b38dade57801a
2023-03-06 09:23:27 +00:00
Zuul
595443a1ca Merge "Make nova-next reduce mysql memory" 2023-03-05 18:48:45 +00:00
Zuul
2bb8689835 Merge "Revert "Add logging to find test cases leaking libvirt threads"" 27.0.0.0rc1 27.0.0 2023-03-04 02:02:19 +00:00
Dan Smith
59c85b6a28 Make nova-next reduce mysql memory
This job is known to fail due to OOM in various places, so this makes
it enable the memory footprint reduction flags for devstack that we
already use in the ceph job.

Change-Id: Ibf1bdb55018a329075e31058f83ab95331c84ebb
2023-03-03 06:53:16 -08:00
Zuul
59f7a524fd Merge "Add service version for Antelope" 2023-03-03 06:15:47 +00:00
Zuul
ad84a520f2 Merge "Add the 2023.1 Antelope prelude section" 2023-03-02 22:14:56 +00:00
melanie witt
d533727904 testing: Reset affinity support global variables
Ran into this randomly today, if a test sets
CONF.scheduler.enabled_filters to a non-default value, the affinity
support global variables will be set to False which can affect
subsequent test runs that expect the default configuration (affinity
filter support enabled).

Example error:

  WARNING [nova.scheduler.utils] Failed to
    compute_task_build_instances: ServerGroup policy is not supported:
      ServerGroupAffinityFilter not configured

This resets the global variables during base test setup, similar to how
other globals are reset.

Change-Id: Icbc75b1001c0a609280241f99a780313b244aa9d
2023-03-02 18:14:46 +00:00
Sylvain Bauza
349100eecc Add service version for Antelope
Also did a bit of cleanup in the text message to tell *when* we need to bump
the min service version.
Given 2023.1 is our first SLURP release, we need to clarify the level of
support we now have for rolling upgrades.

Next cycle, we should update the min version to be Zed.

Change-Id: I2dd906f34118da02783bb7755e0d6c2a2b88eb5d
2023-03-02 12:16:42 +01:00
Sylvain Bauza
f587685f60 Add the 2023.1 Antelope prelude section
First time we now use the correct release naming [1].

Shamelessly copied the bullet points from the cycle highlights [2].

[1] https://governance.openstack.org/tc/reference/release-naming.html
[2] I02ed58bb5a4ecdc8171d9aa4a150be1bca214528

Change-Id: Id4e2e672e3a1a5aba7e664ba2d2f701b9be988e0
2023-03-01 10:26:53 +01:00
Zuul
6b0b009783 Merge "Fix logging in MemEncryption-related checks" 2023-02-28 20:28:08 +00:00
Zuul
d443f8e4c4 Merge "Transport context to all threads" 2023-02-27 15:11:25 +00:00
Zuul
3e5742253f Merge "Doc: update live-migration cmd" 2023-02-27 12:40:09 +00:00
Zuul
a46dfdfc45 Merge "doc: mark the max microversion for 2023.1 Antelope" 2023-02-27 11:28:36 +00:00
Arefiev Anton
0ffb61da60 Doc: update live-migration cmd
The deprecated `--live` option of the `server migrate` command
was removed I37ef09eca0db9286544a4b0bb33f845311baa9b2

Update docs with new arguments.

Change-Id: Id7a9a7509ca5e7811b6d3ce060390ea23c93d4ce
2023-02-24 15:50:27 +02:00
Zuul
3c4096a984 Merge "Use mysql memory reduction flags for ceph job" 2023-02-24 04:19:09 +00:00
Sylvain Bauza
37fa501cac fup for power management series
Emptying the cpu init file and directly calling the submodule API.

Relates to blueprint libvirt-cpu-state-mgmt

Change-Id: I1299ca4b49743f58bec6f541785dd9fbee0ae9e2
2023-02-23 12:04:17 +01:00
Sylvain Bauza
00299dcaad Add docs for cpu management
Relates to blueprint libvirt-cpu-state-mgmt

Change-Id: Id22018a880b39f694a509c04cc6497ef42343049
2023-02-23 12:04:11 +01:00
Dan Smith
84d1f25446 Use mysql memory reduction flags for ceph job
This makes the ceph-multistore job use the MYSQL_REDUCE_MEMORY
flag in devstack to try to address the frequent OOMs we see in that
job.

Change-Id: Ibc203bd10dcb530027c2c9f58eb840ccc088280d
Closes-Bug: #1961068
2023-02-21 08:44:48 -08:00
Takashi Natsume
d82fa9f2f7 doc: mark the max microversion for 2023.1 Antelope
Just follows the pattern that we do every release.

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: Iaba463eedf8ec24303a18d5ba63087cd26ca16d3
2023-02-19 01:56:26 +00:00
Zuul
439c672548 Merge "fup: support evacuate target state" 2023-02-18 23:10:53 +00:00
Zuul
6ec6f14629 Merge "Enable cpus when an instance is spawning" 2023-02-18 12:34:17 +00:00
Zuul
5ddb70c55d Merge "libvirt: let CPUs be power managed" 2023-02-18 12:34:08 +00:00
Zuul
5c32d5efe1 Merge "libvirt: Add configuration options to set SPICE compression settings" 2023-02-17 01:45:41 +00:00
Zuul
59ac941581 Merge "Factor out a mixin class for candidate aware filters" 2023-02-15 19:44:16 +00:00
Zuul
38592c28ab Merge "cpu: interfaces for managing state and governor" 2023-02-15 12:25:54 +00:00
Sylvain Bauza
cbed39822a Revert "Add logging to find test cases leaking libvirt threads"
This reverts commit 1778a9c589cf24e17b44f556680b17af9577df11.

Reason for revert: We said we wouldn't have it in RC1.

Change-Id: Idf0c9a8adeac231f099b312fc24b9cf9726687e0
2023-02-14 17:21:30 +00:00
Zuul
1330b28077 Merge "Add logging to find test cases leaking libvirt threads" 2023-02-14 16:25:42 +00:00
Alexey Stupnikov
54faea0196 Fix logging in MemEncryption-related checks
Currently Nova produces ambigous error when volume-backed instance
is started using flavor with hw:mem_encryption extra_specs flag:
ImageMeta doesn't contain name if it represents Cinder volume.

This fix sligtly changes steps to get image_meta.name for
some MemEncryption-related checks where it could make any
difference.

Closes-bug: #2006952
Change-Id: Ia69e7cb18cd862f01ecfdbdc358c87af1ab8fbf6
2023-02-11 12:59:02 +01:00
Sylvain Bauza
0807b7ae9a Enable cpus when an instance is spawning
By this patch, we now automatically power down or up cores
when an instance is either stopped or started.

Also, by default, we now powersave or offline dedicated cores when
starting the compute service.

Implements: blueprint libvirt-cpu-state-mgmt
Change-Id: Id645fd1ba909683af903f3b8f11c7f06db3401cb
2023-02-10 13:03:39 +01:00
Sylvain Bauza
96f9518096 libvirt: let CPUs be power managed
Before going further, we need to somehow return the list of CPUs even offline
if they are power managed by Nova.

Co-Authored-By: Sean Mooney <smooney@redhat.com>
Partially-Implements: blueprint libvirt-cpu-state-mgmt
Change-Id: I5dca10acde0eff554ed139587aefaf2f5fad2ca5
2023-02-10 12:16:57 +01:00
Sylvain Bauza
1778a9c589 Add logging to find test cases leaking libvirt threads
We see functional test failures due to leaked libvirt event handling
thread weaking up after its original test finished and importing
libvirt. If it happens when the libvirt package import is poisoned then
the currently executing test will fail. This patch logs the name of the
test case that leaked the libvirt event handling thread.

We will revert his before RC1.

Change-Id: I3146e9afb411056d004fc118ccfa31126a3c6b15
Related-Bug: #1946339
2023-02-10 10:52:23 +01:00
Sylvain Bauza
ddf96bcd31 cpu: interfaces for managing state and governor
This is the first stage of the power management series.
In order to be able to switch the CPU state or change the
governor, we need a framework to access sysfs.

As some bits can be reused, let's create a nova.filesystem helper module
that will define read-write mechanisms for accessing sysfs-specific commands.

Partially-Implements: blueprint libvirt-cpu-state-mgmt
Change-Id: Icb913ed9be8d508de35e755a9c650ba25e45aca2
2023-02-09 07:04:02 +01:00
Dan Smith
a296441782 Add docs for stable-compute-uuid behaviors
This adds some admin guide documentation about the stable compute_id
file. It covers upgrade, greenfield generation, and greenfield
pre-provisioning by deployment tools.

Related to blueprint stable-compute-uuid

Change-Id: I078b3f9e1919f2008628dc7b889e8696f1f6159a
2023-02-08 09:36:26 -08:00
Zuul
49aa40394a Merge "Stable compute uuid functional tests" 2023-02-08 01:14:56 +00:00
Zuul
4f11257e97 Merge "Abort startup if nodename conflict is detected" 2023-02-08 01:14:48 +00:00
Zuul
7ea9aac71c Merge "Move comment about _destroy_evacuated_instances()" 2023-02-07 13:42:18 +00:00
Zuul
8cbb241e01 Merge "Fix 6.2 compute RPC version alias" 2023-02-07 11:06:46 +00:00
Tobias Urdin
56b8bb3fb9 Fix 6.2 compute RPC version alias
The alias for the 6.2 compute RPC version says
antilope but that is spelled incorrectly and
should be antelope.

Change-Id: I0a1e47baf9f8115cf1d02d57659a88b26eae89d0
2023-02-06 22:26:02 +01:00
Sahid Orentino Ferdjaoui
1d707a72fc fup: support evacuate target state
This fix minors comments that have been noticed.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: Iee6c224aa0f26d8550b38a8f69b28d8648b1da70
2023-02-06 14:25:33 +01:00
Dan Smith
b10685afbd Stable compute uuid functional tests
This adds a number of functional test cases for the stable-compute-uuid
error cases. Specifically around checks and aborted startups to make
sure we're catching what we expect, and failing in the appropriate
ways.

Related to blueprint stable-compute-uuid

Change-Id: I8bcb93a6887ed06dbd4b7c28c93a20a3705a6077
2023-02-01 11:12:29 -08:00