Commit Graph

60048 Commits

Author SHA1 Message Date
Zuul 72281b9f93 Merge "Add a hacking rule for the setDaemon method" 2022-12-20 16:25:03 +00:00
Zuul 7f7aabd26e Merge "Improving logging at '_allocate_mdevs'." 2022-12-20 16:24:55 +00:00
Zuul 3ec23d3f37 Merge "Update gate jobs as per the 2023.1 cycle testing runtime" 2022-12-20 16:24:47 +00:00
Zuul a2139db1ff Merge "Doc: Fix list servers detailed response param" 2022-12-20 16:07:24 +00:00
Zuul 7db43d8f38 Merge "libvirt: fix typo in test_config" 2022-12-20 16:07:16 +00:00
Zuul 6a67b5f03f Merge "db: Drop redundant indexes on instances and console_auth_tokens tables" 2022-12-20 16:07:00 +00:00
Zuul aec72ddeb6 Merge "Modify the command of getting serial console" 2022-12-20 15:05:36 +00:00
Zuul 9881e8d629 Merge "Correct reST markup in config help string" 2022-12-20 15:05:27 +00:00
Zuul fe839970cf Merge "fix typo in architecture document" 2022-12-20 15:03:36 +00:00
Zuul 9d0b55b70b Merge "Fix link to Cyborg device profiles API" 2022-12-20 15:03:28 +00:00
Zuul a077a5f5dd Merge "Add os_vif in nova-config-generator" 2022-12-20 15:03:18 +00:00
Zuul 12fd902ada Merge "add header alingment for PrettyTable 3.4.0" 2022-12-20 15:03:10 +00:00
Zuul b54beee429 Merge "Make allocation candidates available for scheduler filters" 2022-12-17 17:12:31 +00:00
John Garbutt 8a476061c5 Ironic: retry when node not available
After a baremetal instance is deleted, and its allocation is removed
in placement, the ironic node might start cleaning. Eventually nova
will notice and update the inventory to be reserved.
During this window, a new instance may have already picked this
ironic node.

When that race happens today the build fails with an error:
"Failed to reserve node ..."

This change tries to ensure the remaining alternative hosts are
attempted before aborting the build.
Clearly the race is still there, but this makes it less painful.

Related-Bug: #1974070
Change-Id: Ie5cdc17219c86927ab3769605808cb9d9fa9fa4d
2022-12-15 16:33:43 +00:00
Zuul 2f4feeabc2 Merge "Map PCI pools to RP UUIDs" 2022-12-15 13:10:45 +00:00
Zuul d7de0c121a Merge "Ironic nodes with instance reserved in placement" 2022-12-14 14:11:40 +00:00
Zuul 8b4104f9f7 Merge "Split PCI pools per PF" 2022-12-13 17:33:49 +00:00
Zuul 035b1c6fbe Merge "Support resource_class and traits in PCI alias" 2022-12-13 17:33:41 +00:00
Zuul 0ac870c8fa Merge "Create RequestGroups from InstancePCIRequests" 2022-12-13 17:33:34 +00:00
Zuul e40ac0c798 Merge "Support multiple config file with mod_wsgi" 2022-12-12 15:16:14 +00:00
Sean Mooney 73fe84fa0e Support multiple config file with mod_wsgi
Unlike uwsgi, apache mod_wsgi does not support passing
commandline arguments to the python wsgi script it invokes.

As a result while you can pass --config-file when hosting the
api and metadata wsgi applications with uwsgi there is no
way to use multiple config files with mod_wsgi.

This change mirrors how this is supported in keystone today
by intoducing a new OS_NOVA_CONFIG_FILES env var to allow
operators to optional pass a ';' delimited list of config
files to load.

This change also add docs for this env var and the existing
undocumented OS_NOVA_CONFIG_DIR.

Closes-Bug: 1994056
Change-Id: I8e3ccd75cbb7f2e132b403cb38022787c2c0a37b
2022-12-07 12:36:32 +01:00
Zuul bee679751b Merge "Adds check for VM snapshot fail while quiesce" 2022-12-03 13:11:20 +00:00
Zuul d05f9ef0dc Merge "Adds regression functional test for 1980720" 2022-12-01 08:45:51 +00:00
Zuul 9e2fdb4470 Merge "extend_volume of libvirt/volume/fc should not use device_path" 2022-11-29 22:02:15 +00:00
Zuul 0ac487fd6c Merge "Don't provide MTU value in metadata service if DHCP is enabled" 2022-11-29 22:02:04 +00:00
Zuul 5d66c89634 Merge "Handle mdev devices in libvirt 7.7+" 2022-11-29 21:52:22 +00:00
Slawek Kaplonski 6bdc79af30 Don't provide MTU value in metadata service if DHCP is enabled
For networks with subnets with enabled DHCP service don't provide
mtu value in the metadata. That way cloud-init will not configure it
"statically" in e.g. netplan's config file and guest OS will use MTU
value provided by the DHCP service.


Closes-Bug: #1899487
Change-Id: Ib775c2210349b72b3dc033554ac6d8b35b8d2d79
2022-11-29 15:12:24 +00:00
Amit Uniyal c8d5397b0a Adds check for VM snapshot fail while quiesce
Added check if quiesce fails because libvirt fails to connect with
qemu guest agent inside instance

Closes-Bug: #1980720
Change-Id: I134a4060ace2678f76ae3606bf117c07194a8d92
2022-11-29 14:09:53 +00:00
Amit Uniyal 50802572dc Adds regression functional test for 1980720
Related-Bug: #1980720
Change-Id: I223995b5f8cb72cb47d04e969819efe4885dfc88
2022-11-29 14:08:41 +00:00
Zuul 4b8729011a Merge "Temporary skip some volume detach test in nova-lvm job" 2022-11-29 11:08:29 +00:00
Ghanshyam Mann 2aa779016d Temporary skip some volume detach test in nova-lvm job
A few tests related to volume detach are timeout in
nova-lvm job (failing 100%[1]). Root cause of timeout is not
known and it may take time to find and fix the issue. To unblock
gate and keep runing rest of the tests in lvm job, let's skip
the failing tests until they are fixed.

Related-Bug: #1998148

[1] https://zuul.opendev.org/t/openstack/builds?job_name=nova-lvm&branch=master&skip=0

Change-Id: Id29ce352df84168d0a45512e2c59820aefc75943
2022-11-28 17:54:45 -06:00
Zuul 2d774541c5 Merge "Bump minimum version of os-vif to 3.1.0" 2022-11-24 10:23:28 +00:00
Zuul 17d8b92ed1 Merge "Reproducer for bug 1951656" 2022-11-23 19:59:33 +00:00
Ghanshyam Mann 58500c9967 Update gate jobs as per the 2023.1 cycle testing runtime
As per 2023.1 testing runtime[1], we need to test on Ubuntu
Jammy (which will be taken care by tempest and devstack patches
to move base jobs to Jammy) and at least single job to run on
Ubutnu Focal (for smooth upgrade). Also, python 3.10 testing is
voting now.

This commit adds a new job to run on focal which can be removed
in future cycle when testing runtime drop the requirement of Focal
testing. Also, make python 3.10 functional and unit test job as voting
(openstack-tox-py310 is running as part of generic template so we do
not need to explicitly add that)

[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: Ia43f73dba00b0b5932939bcc7d11b97a83072ee3
2022-11-22 13:44:26 -06:00
Zuul 3675dbf7a4 Merge "Update contributor guide for 2023.1 Antelope" 2022-11-21 21:50:41 +00:00
Billy Olsen a28b907c4f Handle mdev devices in libvirt 7.7+
Libvirt 7.7 changed the mdev device naming to include the parent PCI
device when listing node devices. The domain, however, will still only
see the UUID and not see the parent PCI device. Changing the parsing to
simply drop the PCI identifier is not enough as the device cannot be
found when attempting to lookup the new ID.

Modify the Libvirt Driver's _get_mediated_device_information to tolerate
different formats of the mdev name. This first uses the legacy behavior
by trying to lookup the device name that is passed in (typically
mdev_<uuid> format) and if that is not found, iterates the list of mdev
node devices until the right UUID is found and selects that one.

Note that the lookup of the mdev device by UUID are needed in order
to keep the ability to recreate assigned mediated devices on a reboot of
the compute node.

Additionally, the libvirt utils parsing method mdev_name2uuid, has
been updated to tolerate both mdev_<uuid> and mdev_<uuid>_<pciid>
formats.

Closes-Bug: 1951656

Change-Id: Ifed0fa16053228990a6a8df8d4c666521db7e329
2022-11-18 16:16:18 +01:00
Sylvain Bauza 1852019747 Reproducer for bug 1951656
Due to a new mdev naming, we can't parse it.

Change-Id: I0f785178b132dfef668829558dea9f7e674abadb
Related-Bug: #1951656
2022-11-18 16:15:01 +01:00
Zuul 596772d522 Merge "Replace "db archive" with "db archive_deleted_raws"" 2022-11-17 15:11:03 +00:00
Zuul 12f280b4dc Merge "DOC update remote console access" 2022-11-17 14:37:08 +00:00
John Garbutt 3c022e9683 Ironic nodes with instance reserved in placement
Currently, when you delete an ironic instance, we trigger
and undeploy in ironic and we release our allocation in placement.
We do this well before the ironic node is actually available.

We have attempted to fix this my marking unavailable nodes
as reserved in placement. This works great until you try
and re-image lots of nodes.

It turns out, ironic nodes that are waiting for their automatic
clean to finish, are returned as a valid allocation candidates
for quite some time. Eventually we mark then as reserved.

This patch takes a strange approach, if we mark all nodes as
reserved as soon as the instance lands, we close the race.
That is, when the allocation is removed the node is still
unavailable until the next update of placement is done and
notices that the node has become available. That may or may
not have been after automatic cleaning. The trade off is
that when you don't have automatic cleaning, we wait a bit
longer to notice the node is available again.

Note, this is also useful when a broken Ironic node is
marked as in-maintainance while it is in-use by a nova
instance. In a similar way, we mark the Nova as reserved
immmeidately, rather than first waiting for the instance to be
deleted before reserving the resources in Placement.

Closes-Bug: #1974070
Change-Id: Iab92124b5776a799c7f90d07281d28fcf191c8fe
2022-11-17 14:09:08 +00:00
Nobuhiro MIKI ae055aaf5d libvirt: fix typo in test_config
hosdev -> hostdev

Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
Change-Id: I8515a25d698a3671673edd393ec6964862d3d476
2022-11-16 11:29:22 +09:00
Takashi Natsume 628e1c152c Add a hacking rule for the setDaemon method
Add the following hacking rule.

* N372: Don't use the setDaemon method.
        Use the daemon attribute instead.

Change-Id: Idb45421205f76d2d3b0576bd0504d261ed249edd
Related-Bug: 1987191
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-11-14 13:04:05 +00:00
Rodolfo Alonso Hernandez 688fd7b427 Bump minimum version of os-vif to 3.1.0
This new os-vif version implements [1]. Now os-vif (Nova that
uses this library) is responsible of deleting the trunk bridges.
No other change is needed in Nova.

Please check [2] for context.

[1]https://review.opendev.org/c/openstack/os-vif/+/841499
[2]https://lists.openstack.org/pipermail/openstack-discuss/2022-April/028164.html

Related-Bug: #1869244
Change-Id: Icb5744497faa8761eb0891cc8c347dfaa71f1f29
2022-11-14 08:02:30 +01:00
Zuul 2eb358cdce Merge "Test ceph-multistore with a real image" 2022-11-11 19:12:15 +00:00
Rajesh Tailor ac42c43e43 Correct config help message related options
The options list in 'Related Options:' section doesn't rendered
as bulleted list for some params because of missing blank line.

This changes adds missing blank line wherever needed in [1].
[1] https://docs.openstack.org/nova/latest/configuration/config.html

Change-Id: I7077aea2abcf3cab67592879ebd1fde066bfcac5
2022-11-11 16:03:53 +05:30
Dan Smith 010983e803 Test ceph-multistore with a real image
This inflates the cirros image to 1G for a more realistic scenario.
Technically we should have been doing something like this all along,
as the deployment guidance for ceph is to use a raw image, not a qcow2
one, so this also increases our accuracy to real-life.

We also need to up the volume size tempest uses for various tests
to make sure we will fit.

Change-Id: I5c447e630aaf1413a5eac89c2e8103506d245221
2022-11-09 11:34:02 -08:00
Arnaud Morin 6b9342f6e2 Add os_vif in nova-config-generator
Some config in os_vif are affecting nova behavior, so we should add them
in nova.conf.sample in order to let people fine-tune this on demand
without looking into code.

This will also change the nova config reference docs.o.o

Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
Change-Id: Icfba423fda037be9cf071022283985297a989b07
2022-11-07 16:32:28 +01:00
Takashi Natsume ecbcf16dca Update contributor guide for 2023.1 Antelope
Change-Id: Iffd6f3017c3522bd80b571a19550c83401b99613
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-11-06 00:41:01 +00:00
alexc20 c97507dfcd record action log when deleting shelved instance
Closes-Bug: #1993736

Change-Id: I9ce18cbba5083c55d15d9b7c2a89133d227754ea
2022-11-03 17:46:48 -03:00
Zuul 5ad1555a85 Merge "Enable glance location tests on ceph-multistore" 2022-11-03 15:56:30 +00:00