Files
nova/.zuul.yaml
Abhishek Kekane 6182d28257 Add Glance preferred stores support
Nova can now send the configured ordered Glance store preferences
to Glance when downloading an image. This helps deployments choose
a local or co-located image copy.

Nova now requires ``python-glanceclient>=4.12.0``, which adds client
support for passing the preferred stores to Glance.

Implements blueprint glance-preferred-store
Assisted-By: claude-4.5-sonnet for tests and reno
Change-Id: I7d685b69db95b37fe1bfbfb5f5ac30c8bdcd1cef
Signed-off-by: Abhishek Kekane <akekane@redhat.com>
2026-11-04 15:31:54 +00:00

1195 lines
46 KiB
YAML

# See https://docs.openstack.org/infra/manual/drivers.html#naming-with-zuul-v3
# for job naming conventions.
- job:
name: nova-tox-functional-py311
parent: openstack-tox-functional-py311
description: |
Run tox-based functional tests for the OpenStack Nova project
under cPython version 3.10 with Nova specific irrelevant-files list.
Uses tox with the ``functional-py311`` environment.
This job also provides a parent for other projects to run the nova
functional tests on their own changes.
required-projects:
# including nova here makes this job reusable by other projects
- openstack/nova
- openstack/placement
irrelevant-files: &functional-irrelevant-files
- ^.*\.rst$
- ^api-.*$
- ^doc/(source|test)/.*$
- ^nova/locale/.*$
- ^\.pre-commit-config\.yaml$
- ^releasenotes/.*$
vars:
# explicitly stating the work dir makes this job reusable by other
# projects
zuul_work_dir: src/opendev.org/openstack/nova
bindep_profile: test py311
timeout: 3600
- job:
name: nova-tox-functional-py314
parent: openstack-tox-functional-py314
description: |
Run tox-based functional tests for the OpenStack Nova project
under cPython version 3.14 with Nova specific irrelevant-files list.
Uses tox with the ``functional-py314`` environment.
This job also provides a parent for other projects to run the nova
functional tests on their own changes.
required-projects:
# including nova here makes this job reusable by other projects
- openstack/nova
- openstack/placement
irrelevant-files: *functional-irrelevant-files
vars:
# explicitly stating the work dir makes this job reusable by other
# projects
zuul_work_dir: src/opendev.org/openstack/nova
bindep_profile: test py314
timeout: 3600
- job:
name: nova-tox-py314-threading
parent: openstack-tox-py314
description: |
Run tox-based unit tests for the OpenStack Nova project
under cPython version 3.14 with eventlet disabled.
Uses tox with the ``py314-threading`` environment.
required-projects:
# including nova here makes this job reusable by other projects and
# allow depends-on placement to work with our placement fixture
- openstack/nova
- openstack/placement
vars:
# explicitly stating the work dir makes this job reusable by other
# projects
zuul_work_dir: src/opendev.org/openstack/nova
bindep_profile: test py314
tox_envlist: py314-threading
- job:
name: nova-tox-functional-py314-threading
parent: openstack-tox-functional-py314
description: |
Run tox-based functional tests for the OpenStack Nova project
under cPython version 3.14 with eventlet disabled (native threading).
Uses tox with the ``functional-py314-threading`` environment.
This job also provides a parent for other projects to run the nova
functional tests with threading on their own changes.
required-projects:
# including nova here makes this job reusable by other projects
- openstack/nova
- openstack/placement
irrelevant-files: *functional-irrelevant-files
vars:
# explicitly stating the work dir makes this job reusable by other
# projects
zuul_work_dir: src/opendev.org/openstack/nova
bindep_profile: test py314
tox_envlist: functional-py314-threading
timeout: 7200
- job:
name: nova-tox-validate-backport
parent: openstack-tox
description: |
Determine whether a backport is ready to be merged by checking whether it
has already been merged to master or more recent stable branches.
Uses tox with the ``validate-backport`` environment.
vars:
tox_envlist: validate-backport
- job:
name: nova-live-migration
parent: tempest-multinode-full-py3
description: |
Run tempest live migration tests against local qcow2 ephemeral storage
and shared LVM/iSCSI cinder volumes.
irrelevant-files:
- ^api-.*$
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^doc/.*$
- ^nova/hacking/.*$
- ^nova/locale/.*$
- ^nova/policies/.*$
- ^nova/tests/.*$
- ^nova/test.py$
- ^nova/virt/ironic/.*$
- ^\.pre-commit-config\.yaml$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$
- ^tox.ini$
vars:
tox_envlist: all
tempest_test_regex: (^tempest\.api\.compute\.admin\.(test_live_migration|test_migration))
# revert this when bug #1940425 is fixed in neutron
tempest_exclude_regex: (test_live_migration_with_trunk)
devstack_localrc: &uec_image_vars
# We are using the split kernel/initramfs image by default in an
# effort to reduce the occurrence of guest kernel panics in the APIC
# timer handler. We will cover testing of the full disk image by
# using it in the nova-next job.
CIRROS_VERSION: 0.6.2
DEFAULT_IMAGE_NAME: cirros-0.6.2-x86_64-uec
DEFAULT_IMAGE_FILE_NAME: cirros-0.6.2-x86_64-uec.tar.gz
# We need to set the IMAGE_URLS manually in order to get a UEC image
# for what Tempest will use for CONF.compute.image_ref_alt. The first
# image will be used for CONF.compute.image_ref and the second image
# for CONF.compute.image_ref_alt. If we don't do this, the full disk
# image will be downloaded and used for image_ref_alt instead.
DOWNLOAD_DEFAULT_IMAGES: false
IMAGE_URLS: http://download.cirros-cloud.net/0.6.2/cirros-0.6.2-x86_64-uec.tar.gz, http://download.cirros-cloud.net/0.6.1/cirros-0.6.1-x86_64-uec.tar.gz
devstack_services:
neutron-trunk: true
openstack-cli-server: true
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
compute-feature-enabled:
volume_backed_live_migration: true
block_migration_for_live_migration: true
block_migrate_cinder_iscsi: true
post-run: playbooks/nova-live-migration/post-run.yaml
- job:
name: nova-alt-configurations
parent: tempest-multinode-full-py3
nodeset: devstack-two-node-debian-trixie
description: |
Run move operations, reboot, and evacuation (via the same post-run hook
as the nova-live-migration job) tests with the OVS network backend and
the "iptables_hybrid" securitygroup firewall driver, aka "hybrid plug".
The external events interactions between Nova and Neutron in these
situations has historically been fragile. This job exercises them.
This job also explicitly sets eventlet mode for all nova services to keep
testing eventlet mode even after the default is set to native threading
for some services. This job also tests spice support in the libvirt
driver and uses debian 13 with a default python versions of 3.13.
The job also configures Glance multi-store and Nova preferred Glance
stores.
required-projects:
- novnc/novnc
irrelevant-files: &nova-base-irrelevant-files
- ^api-.*$
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^doc/.*$
- ^nova/hacking/.*$
- ^nova/locale/.*$
- ^nova/policies/.*$
- ^nova/tests/.*$
- ^nova/test.py$
- ^\.pre-commit-config\.yaml$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$
- ^tox.ini$
vars:
tox_envlist: all
# bug #1940425 only affect ml2/ovn so we execute
# test_live_migration_with_trunk in this job to keep test coverage.
tempest_test_regex: (^tempest\..*compute\..*(migration|resize|reboot|spice|novnc).*)
devstack_localrc:
Q_AGENT: openvswitch
Q_ML2_TENANT_NETWORK_TYPE: vxlan
Q_ML2_PLUGIN_MECHANISM_DRIVERS: openvswitch
ML2_L3_PLUGIN: router
NOVA_VNC_ENABLED: True
NOVA_SPICE_ENABLED: True
# Enable TLS between the noVNC/SPICE proxy & compute nodes; this requires
# the tls-proxy service to be enabled.
NOVA_CONSOLE_PROXY_COMPUTE_TLS: True
NOVNC_FROM_PACKAGE: false
devstack_services:
# Disable OVN services
br-ex-tcpdump: false
br-int-flows: false
ovn-controller: false
ovn-northd: false
q-ovn-agent: false
# Neutron services
q-agt: true
q-dhcp: true
q-l3: true
q-meta: true
# NOTE(sean-k-mooney) this job is testing ml2/ovs with
# hybrid plug we do not need to test cinder and we want to ensure
# that we have at least one job without cinder in our gate so we
# disable it in this job
# Cinder services
c-api: false
c-bak: false
c-sch: false
c-vol: false
# we also do not need swift in this job so disable it for speed
s-account: false
s-container: false
s-object: false
s-proxy: false
openstack-cli-server: true
# Enable TLS infrastructure before console proxies
tls-proxy: true
n-novnc: true
n-spice: true
devstack_local_conf:
post-config:
"/$NEUTRON_CORE_PLUGIN_CONF":
securitygroup:
firewall_driver: iptables_hybrid
$NEUTRON_CONF:
nova:
live_migration_events: True
$NOVA_CPU_CONF:
compute:
heal_instance_info_cache_interval: 60
glance:
preferred_stores: fast
$NOVA_CONF:
vnc:
ssl_only: true
spice:
ssl_only: true
DEFAULT:
concurrency_backend: eventlet
$GLANCE_API_CONF:
DEFAULT:
enabled_backends: "fast:file, web:http"
glance_store:
default_backend: fast
fast:
filesystem_store_datadir: /opt/stack/data/glance/fast/
web:
https_insecure: false
group-vars:
subnode:
devstack_localrc:
Q_AGENT: openvswitch
Q_ML2_TENANT_NETWORK_TYPE: vxlan
Q_ML2_PLUGIN_MECHANISM_DRIVERS: openvswitch
ML2_L3_PLUGIN: router
NOVA_CONSOLE_PROXY_COMPUTE_TLS: true
NOVA_VNC_ENABLED: true
NOVA_SPICE_ENABLED: true
NOVNC_FROM_PACKAGE: false
devstack_services:
# Disable OVN services
br-ex-tcpdump: false
br-int-flows: false
ovn-controller: false
ovn-northd: false
ovs-vswitchd: false
ovsdb-server: false
q-ovn-agent: false
# Neutron services
q-agt: true
# NOTE(sean-k-mooney) this job is testing ml2/ovs with
# hybrid plug we do not need to test cinder and we want to ensure
# that we have at least one job without cinder in our gate so we
# disable it in this job
# Cinder services
c-api: false
c-bak: false
c-sch: false
c-vol: false
# we also do not need swift in this job so disable it for speed
s-account: false
s-container: false
s-object: false
s-proxy: false
tls-proxy: true
devstack_local_conf:
post-config:
"/$NEUTRON_CORE_PLUGIN_CONF":
securitygroup:
firewall_driver: iptables_hybrid
$NEUTRON_CONF:
nova:
live_migration_events: True
$NOVA_CPU_CONF:
compute:
heal_instance_info_cache_interval: 60
$NOVA_CONF:
vnc:
ssl_only: true
spice:
ssl_only: true
DEFAULT:
concurrency_backend: eventlet
post-run: playbooks/nova-live-migration/post-run.yaml
- job:
name: nova-graceful-shutdown
parent: devstack-multinode
description: |
Run Nova graceful shutdown tests.
run: playbooks/nova-graceful-shutdown/run.yaml
timeout: 10800
irrelevant-files: *nova-base-irrelevant-files
vars:
graceful_shutdown_timeout: 180
service_report_interval: 10
devstack_services:
neutron-trunk: true
openstack-cli-server: true
s-account: false
s-container: false
s-object: false
s-proxy: false
c-bak: false
tempest_test_regex: ''
devstack_localrc:
<<: *uec_image_vars
SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT: "{{ graceful_shutdown_timeout }}"
NOVA_SERVICE_REPORT_INTERVAL: "{{ service_report_interval }}"
NOVA_ALLOW_MOVE_TO_SAME_HOST: false
LIVE_MIGRATION_AVAILABLE: true
USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION: true
devstack_local_conf:
post-config:
$NOVA_CONF:
DEFAULT:
concurrency_backend: threading
group-vars:
subnode:
devstack_services:
openstack-cli-server: true
s-account: false
s-container: false
s-object: false
s-proxy: false
c-bak: false
devstack_localrc:
SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT: "{{ graceful_shutdown_timeout }}"
NOVA_SERVICE_REPORT_INTERVAL: "{{ service_report_interval }}"
NOVA_ALLOW_MOVE_TO_SAME_HOST: false
LIVE_MIGRATION_AVAILABLE: true
USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION: true
devstack_local_conf:
post-config:
$NOVA_CONF:
DEFAULT:
concurrency_backend: threading
- job:
name: nova-graceful-shutdown-eventlet
parent: nova-graceful-shutdown
description: |
Run Nova graceful shutdown tests in eventlet mode.
vars:
devstack_local_conf:
post-config:
$NOVA_CONF:
DEFAULT:
concurrency_backend: eventlet
group-vars:
subnode:
devstack_local_conf:
post-config:
$NOVA_CONF:
DEFAULT:
concurrency_backend: eventlet
- job:
name: nova-live-migration-ceph
parent: devstack-plugin-ceph-multinode-tempest-py3
description: |
Run tempest live migration tests against ceph ephemeral storage and
cinder volumes.
irrelevant-files: *nova-base-irrelevant-files
vars:
tox_envlist: all
tempest_test_regex: (^tempest\.api\.compute\.admin\.(test_live_migration|test_migration))
# revert this when bug #1940425 is fixed in neutron
tempest_exclude_regex: (test_live_migration_with_trunk)
devstack_services:
openstack-cli-server: true
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
compute-feature-enabled:
volume_backed_live_migration: true
block_migration_for_live_migration: false
block_migrate_cinder_iscsi: false
post-run: playbooks/nova-live-migration/post-run.yaml
- job:
name: nova-lvm
parent: devstack-tempest
description: |
Run tempest compute API tests using LVM image backend. This only runs
against nova/virt/libvirt/*, nova/privsep/* and .zuul.yaml changes.
files:
- ^nova/virt/libvirt/.*$
- ^nova/privsep/.*$
- .zuul.yaml
vars:
# Increase the swap size to avoid OOM errors when running the tests.
configure_swap_size: 8192
# We use the "all" environment for tempest_test_regex and
# tempest_exclude_regex.
tox_envlist: all
# Only run compute API tests.
tempest_test_regex: ^tempest\.api\.compute
# Skip slow tests. Also, skip some volume detach tests until bug#1998148
# is fixed.
tempest_exclude_regex: (^tempest\.(api\.compute\.(volumes\.test_attach_volume\.AttachVolumeTestJSON\.test_attach_detach_volume|servers\.(test_server_rescue\.ServerStableDeviceRescueTest\.test_stable_device_rescue_disk_virtio_with_volume_attached|test_server_rescue_negative\.ServerRescueNegativeTestJSON\.test_rescued_vm_detach_volume)))|.*\[.*\bslow\b.*\])
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
compute-feature-enabled:
# NOTE(mriedem): resize of non-volume-backed lvm instances does
# not yet work (bug 1831657).
resize: false
cold_migration: false
devstack_localrc:
NOVA_BACKEND: LVM
# Do not waste time clearing volumes.
LVM_VOLUME_CLEAR: none
# Increase the size of the swift loopback device to accommodate RAW
# snapshots from the LV based instance disks.
# See bug #1913451 for more details.
SWIFT_LOOPBACK_DISK_SIZE: 24G
# As above, increase the total image limit per tenant to 10G
GLANCE_LIMIT_IMAGE_SIZE_TOTAL: 10240
devstack_services:
# Disable non-essential services that we don't need for this job.
c-bak: false
openstack-cli-server: true
- job:
name: nova-emulation
parent: devstack-tempest
description: |
Run compute tests using emulated AARCH64 architecture.
# NOTE(chateaulav): due to constraints with no IDE support for aarch64,
# tests have been limited to eliminate any items that are incompatible.
# This is to be re-evaluated as greater support is added and defined.
files:
- ^nova/virt/libvirt/.*$
- ^nova/objects/.*$
- ^nova/scheduler/.*$
- .zuul.yaml
vars:
tox_envlist: all
tempest_concurrency: 4
tempest_test_regex: ^tempest\.(api\.compute\.servers|scenario\.test_network_basic_ops)
tempest_exclude_regex: (^tempest\.(api\.compute\.servers\.(test_attach_interfaces.AttachInterfacesTestJSON.test_create_list_show_delete_interfaces_by_network_port|test_delete_server.DeleteServersTestJSON.test_delete_server_while_in_attached_volume.*|test_list_.*|test_disk_config|test_server_rescue.*|test_server_actions\.ServerActionsTestJSON\.test_resize.*|test_device_tag.*))|.*\[.*\bslow\b.*\])
devstack_localrc:
<<: *uec_image_vars
FORCE_CONFIG_DRIVE: False
ADMIN_PASSWORD: emulation
DATABASE_PASSWORD: $ADMIN_PASSWORD
RABBIT_PASSWORD: $ADMIN_PASSWORD
SERVICE_PASSWORD: $ADMIN_PASSWORD
SWIFT_HASH: 1234abcd
DOWNLOAD_DEFAULT_IMAGES: False
IMAGE_URLS: "http://download.cirros-cloud.net/0.5.3/cirros-0.5.3-aarch64-disk.img"
DEFAULT_INSTANCE_TYPE: m1.micro
devstack_services:
openstack-cli-server: true
# Increase the swap size to avoid OOM errors when running the tests.
configure_swap_size: 8192
devstack_local_conf:
post-config:
$NOVA_CPU_CONF:
libvirt:
# Use lower TB cache than default(1GiB), only applicable with
# libvirt>=8.0.0
tb_cache_size: 128
pre-run:
- playbooks/nova-emulation/pre.yaml
- job:
name: nova-whitebox
parent: whitebox-devstack-multinode
description: |
Run tempest whitebox vTPM and vGPU tests against local qcow2 ephemeral storage and shared
LVM/iSCSI cinder volumes.
irrelevant-files: *nova-base-irrelevant-files
vars:
tox_envlist: all
# NOTE(melwitt): These tests cannot run in parallel due to
# test_vtpm_creation_after_virtqemud_restart, which involves a libvirt
# restart, which can and will cause other tests to fail if the timing is
# unfortunate. Loss of libvirt connection will cause the
# COMPUTE_STATUS_DISABLED trait to be automatically added, which can
# result in NoValidHost, for example.
tempest_concurrency: 1
# Include vgpu whitebox tests to test vgpu functionality with mtty
tempest_test_regex: ^(tempest\.api\.compute\.admin\.test_live_migration\.LiveMigrationWithVTPMTest|whitebox_tempest_plugin\.api\.compute\.(test_vtpm|test_vgpu))
# revert the exclusion of test_live_migration_with_trunk when bug
# #1940425 is fixed in neutron
# only mtty is supported in libvirt so we can't run the VGPUMultiTypes
# tests since we can only use one mdev type per device
tempest_exclude_regex: (test_live_migration_with_trunk|VGPUMultiTypes)
devstack_services:
neutron-trunk: true
openstack-cli-server: true
c-bak: false
s-account: false
s-container: false
s-object: false
s-proxy: false
barbican: true
devstack_local_conf:
post-config:
$NOVA_CPU_CONF:
# Added in Hibiscus. Enable mtty devices
devices:
enabled_mdev_types: mtty-1
mdev_mtty-1:
device_addresses: mtty_mtty
test-config:
$TEMPEST_CONFIG:
# Added in Hibiscus
compute-feature-enabled:
vgpu_cold_migration_supported: True
whitebox-hardware:
vgpu_vendor_id: "4348"
whitebox:
# some vms were failing to boot with the default 64 value
flavor_ram_size: 128
devstack_localrc:
# Added in Hibiscus.
NOVA_COMPILE_MDEV_SAMPLES: True
group-vars:
# override devstack plugins defined in parent job via the tempest group
tempest:
devstack_plugins:
# Added in Hibiscus. Needed to compile the mtty kernel module
nova: https://opendev.org/openstack/nova
subnode:
devstack_services:
c-bak: false
s-account: false
s-container: false
s-object: false
s-proxy: false
barbican: false
devstack_localrc:
# Added in Hibiscus.
NOVA_COMPILE_MDEV_SAMPLES: True
devstack_local_conf:
post-config:
$NOVA_CPU_CONF:
# Added in Hibiscus. Enable mtty devices
devices:
enabled_mdev_types: mtty-1
mdev_mtty-1:
device_addresses: mtty_mtty
devstack_plugins:
# Added in Hibiscus. Needed to compile the mtty kernel module
nova: https://opendev.org/openstack/nova
- nodeset:
# custom nodeset so we can uses tow node ubuntu 26.04
name: nova-next-two-node
nodes:
- name: controller
label: ubuntu-resolute-8GB
- name: compute1
label: ubuntu-resolute-8GB
groups:
# Node where tests are executed and test results collected
- name: tempest
nodes:
- controller
# Nodes running the compute service
- name: compute
nodes:
- controller
- compute1
# Nodes that are not the controller
- name: subnode
nodes:
- compute1
# Switch node for multinode networking setup
- name: switch
nodes:
- controller
# Peer nodes for multinode networking setup
- name: peers
nodes:
- compute1
# TODO(lucasagomes): Move this job to ML2/OVN when QoS Minimum Bandwidth
# support is implemented.
# See: https://docs.openstack.org/neutron/latest/ovn/gaps.html
- job:
name: nova-next
parent: tempest-multinode-full-py3
nodeset: nova-next-two-node
description: |
This job was added in Newton when placement and cellsv2
were optional. Placement and cellsv2 are required starting in Ocata. In
Pike, the service user token functionality was added. This job is also
unique in that it runs the post_test_hook from the nova repo, which runs
post-test scripts to ensure those scripts are still working,
e.g. archive_deleted_rows. In Queens, this job started testing the
TLS console proxy code in the libvirt driver.
Starting in Stein, the job was changed to run with python 3 and enabled
volume multi-attach testing.
Starting in Train, the job enabled counting quota usage from placement.
Starting in Ussuri, the job was changed to multinode.
Starting in Wallaby, the job defaults to the q35 machine type.
Starting in Yoga, the job tests noVNC from source and enables unified limits.
Starting in Caracal, the job compiles the mdev sample drivers from source.
Starting in Gazpacho, the job test placement with
allocation_candidates_generation_strategy=breadth-first and
optimize_for_wide_provider_trees=True.
Starting in Hibiscus, the job tests nova-manage and nova-status CLIs with
native threading mode (OS_NOVA_DISABLE_EVENTLET_PATCHING=true).
Runs all tempest compute API and most scenario tests concurrently.
irrelevant-files: *nova-base-irrelevant-files
# Run post-tempest tests like for nova-manage commands.
post-run: playbooks/nova-next/post.yaml
pre-run: playbooks/nova-next/pre.yaml
required-projects:
- novnc/novnc
- openstack/devstack-plugin-jaeger
roles:
# Make the verify-tracing-backend role available to the post-run
# playbook so it can assert nova-api traces landed in Jaeger.
- zuul: openstack/devstack-plugin-jaeger
vars:
# We use the "all" environment for tempest_test_regex and
# tempest_exclude_regex.
tox_envlist: all
# Test nova-manage and nova-status CLIs in threading mode via post_test_hook.sh
nova_cli_threading_mode: "true"
# Run all compute API tests and most scenario tests at the default
# concurrency (nproc/2 which is normally 4 in the gate).
# Explicitly include console tests (novnc, spice) to ensure
# console proxy services are tested in threading mode.
tempest_test_regex: ^tempest\.((scenario|api\.compute)|(.*\.(novnc|spice).*))
# The tempest.scenario.test_network* tests are skipped because they
# (1) take a long time and (2) are already covered in the
# tempest-slow* job. If this regex gets more complicated use
# tempest_test_exclude_list.
# FIXME(lyarwood): The tempest.api.compute.admin.test_volume_swap tests
# are skipped until bug #1929710 is resolved.
# revert excluding test_live_migration_with_trunk when bug #1940425
# is fixed in neutron
tempest_exclude_regex: ^tempest\.(scenario\.test_network_(?!qos)|api\.compute\.admin\.test_volume_swap)|test_live_migration_with_trunk
devstack_local_conf:
post-config:
$NOVA_CPU_CONF:
DEFAULT:
# Added in Gazpacho. Ensures that thread statistics is logged
# each time a task is submitted to the executor so that we
# can troubleshoot hanging threads easier.
thread_pool_statistic_period: 0
libvirt:
# Increase the number of PCIe ports per instance given the q35
# machine type attaches more devices by default than pc
num_pcie_ports: 12
hw_machine_type: "x86_64=q35"
# Use lower TB cache than default(1GiB), only applicable with
# libvirt>=8.0.0
tb_cache_size: 128
live_migration_parallel_connections: 4
compute:
# Switch off the provider association refresh, which should
# reduce the number of placement calls in steady state. Added in
# Stein.
resource_provider_association_refresh: 0
workarounds:
# This wa is an improvement on hard reboot that cannot be turned
# on unconditionally. But we know that ml2/ovs sends plug time
# events so we can enable this in this ovs job for vnic_type
# normal
wait_for_vif_plugged_event_during_hard_reboot: normal
$NOVA_CONF:
quota:
# Added in Train.
count_usage_from_placement: True
scheduler:
# Added in Train.
query_placement_for_image_type_support: True
DEFAULT:
# Added in Flamingo. Ensures that thread statistics is logged
# each time a task is submitted to the executor so that web
# can troubleshoot hanging threads easier.
thread_pool_statistic_period: 0
"/$NEUTRON_CORE_PLUGIN_CONF":
# Needed for QoS port heal allocation testing.
ovs:
bridge_mappings: public:br-ex
resource_provider_bandwidths: br-ex:1000000:1000000
resource_provider_packet_processing_without_direction: :100
AGENT:
tunnel_types: gre,vxlan
ml2:
type_drivers: flat,geneve,vlan,gre,local,vxlan
$PLACEMENT_CONF:
placement:
allocation_candidates_generation_strategy: breadth-first
max_allocation_candidates: 100000
workarounds:
optimize_for_wide_provider_trees: True
test-config:
$TEMPEST_CONFIG:
network-feature-enabled:
qos_placement_physnet: public
qos_min_bw_and_pps: True
compute-feature-enabled:
# The q35 machine type doesn't support an IDE bus
ide_bus: False
# Added in Yoga.
unified_limits: True
neutron_plugin_options:
available_type_drivers: flat,geneve,vlan,gre,local,vxlan
devstack_localrc:
LIBVIRT_TYPE: qemu
Q_AGENT: openvswitch
Q_ML2_TENANT_NETWORK_TYPE: vxlan
Q_ML2_PLUGIN_MECHANISM_DRIVERS: openvswitch
ML2_L3_PLUGIN: router
# Enable TLS between the noVNC proxy & compute nodes; this requires
# the tls-proxy service to be enabled. Added in Queens.
NOVA_CONSOLE_PROXY_COMPUTE_TLS: True
# Added in Stein.
ENABLE_VOLUME_MULTIATTACH: True
# Added in Ussuri.
FORCE_CONFIG_DRIVE: True
# Added in Yoga.
NOVNC_FROM_PACKAGE: False
NOVA_SPICE_ENABLED: True
NOVA_USE_UNIFIED_LIMITS: True
'SYSTEMD_ENV_VARS["n-sch"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-api"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-api-meta"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-cond-cell1"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-super-cond"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-cpu"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-novnc-cell1"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
'SYSTEMD_ENV_VARS["n-spice-cell1"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
# Enable oslo.middleware OpenTelemetry tracing for nova-api from boot
# and point it at the Jaeger OTLP endpoint deployed by
# devstack-plugin-jaeger.
OSLO_TRACING_SERVICES: nova-api
devstack_services:
# Disable OVN services
br-ex-tcpdump: false
br-int-flows: false
ovn-controller: false
ovn-northd: false
q-ovn-agent: false
# Neutron services
q-agt: true
q-dhcp: true
q-l3: true
q-meta: true
q-metering: true
tls-proxy: true
# neutron-* needed for QoS port heal allocation testing.
neutron-placement: true
neutron-qos: true
# Disable non-essential services that we don't need for this job.
c-bak: false
openstack-cli-server: true
n-spice: true
n-novnc: true
# Jaeger all-in-one trace backend (devstack-plugin-jaeger).
jaeger: true
devstack_plugins:
# Needed for QoS port heal allocation testing.
neutron: https://opendev.org/openstack/neutron
# Deploys Jaeger all-in-one as an OTLP trace backend so the
# oslo.middleware tracing wired into nova-api can be verified
# end to end.
devstack-plugin-jaeger: https://opendev.org/openstack/devstack-plugin-jaeger
group-vars:
subnode:
devstack_localrc:
LIBVIRT_TYPE: qemu
Q_AGENT: openvswitch
Q_ML2_TENANT_NETWORK_TYPE: vxlan
Q_ML2_PLUGIN_MECHANISM_DRIVERS: openvswitch
ML2_L3_PLUGIN: router
NOVA_CONSOLE_PROXY_COMPUTE_TLS: True
FORCE_CONFIG_DRIVE: True
# Added in Yoga.
NOVNC_FROM_PACKAGE: False
NOVA_SPICE_ENABLED: True
'SYSTEMD_ENV_VARS["n-cpu"]': OS_NOVA_DISABLE_EVENTLET_PATCHING=true
devstack_services:
# Disable OVN services
br-ex-tcpdump: false
br-int-flows: false
ovn-controller: false
ovn-northd: false
ovs-vswitchd: false
ovsdb-server: false
q-ovn-agent: false
# Neutron services
q-agt: true
tls-proxy: true
c-bak: false
- job:
name: nova-tempest-v2-api
parent: devstack-tempest
branches:
- master
description: |
This job runs the Tempest compute tests against v2.0 endpoint.
Former names for this job was:
* legacy-tempest-dsvm-nova-v20-api
vars:
tox_envlist: all
tempest_test_regex: api.*compute
devstack_localrc:
TEMPEST_COMPUTE_TYPE: compute_legacy
- job:
name: nova-tempest-full-oslo.versionedobjects
parent: tempest-full-py3
description: |
Run test with git version of oslo.versionedobjects to check that
changes to nova will work with the next released version of
that library.
required-projects:
- openstack/oslo.versionedobjects
vars:
devstack_localrc:
<<: *uec_image_vars
- job:
name: nova-grenade-multinode
parent: grenade-multinode
description: |
Run a multinode grenade job and run the smoke, cold and live migration
tests with the controller upgraded and the compute on the older release.
The former names for this job were "nova-grenade-live-migration" and
"legacy-grenade-dsvm-neutron-multinode-live-migration".
irrelevant-files: *nova-base-irrelevant-files
vars:
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
compute-feature-enabled:
live_migration: true
volume_backed_live_migration: true
block_migration_for_live_migration: true
block_migrate_cinder_iscsi: true
tox_envlist: all
tempest_test_regex: ((tempest\.(api\.compute|scenario)\..*smoke.*)|(^tempest\.api\.compute\.admin\.(test_live_migration|test_migration))|(^tempest\.api\.compute\.servers\.test_server_actions))
# revert this when bug #1940425 is fixed in neutron
tempest_exclude_regex: (test_live_migration_with_trunk)
- job:
name: nova-multi-cell
parent: tempest-multinode-full-py3
description: |
Multi-node python3 job which runs with two nodes and two non-cell0
cells. The compute on the controller runs in cell1 and the compute
on the subnode runs in cell2.
irrelevant-files: *nova-base-irrelevant-files
vars:
# We use the "all" environment for tempest_test_regex and
# tempest_test_exclude_list.
tox_envlist: all
# Run compute API and scenario tests.
tempest_test_regex: ^tempest\.(scenario|(api\.compute))
tempest_test_exclude_list: '{{ ansible_user_dir }}/{{ zuul.projects["opendev.org/openstack/nova"].src_dir }}/devstack/nova-multi-cell-exclude-list.txt'
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
compute-feature-enabled:
# Enable cold migration for migrating across cells. Note that
# because NOVA_ALLOW_MOVE_TO_SAME_HOST=false, all cold migrations
# will move across cells.
cold_migration: true
devstack_services:
# Disable other non-essential services that we don't need for this job.
c-bak: false
openstack-cli-server: true
devstack_localrc:
# Setup two non-cell0 cells (cell1 and cell2).
NOVA_NUM_CELLS: 2
# Disable resize to the same host so all resizes will move across
# cells.
NOVA_ALLOW_MOVE_TO_SAME_HOST: false
# We only have two computes and we don't yet support cross-cell live
# migration.
LIVE_MIGRATION_AVAILABLE: false
DEVSTACK_PARALLEL: True
group-vars:
peers:
devstack_localrc:
NOVA_ALLOW_MOVE_TO_SAME_HOST: true
LIVE_MIGRATION_AVAILABLE: false
subnode:
devstack_localrc:
# The subnode compute will get registered with cell2.
NOVA_CPU_CELL: 2
devstack_services:
# Disable other non-essential services that we don't need for this
# job.
c-bak: false
# Perform setup for the multi-cell environment. Note that this runs
# before devstack is setup on the controller host.
pre-run: playbooks/nova-multi-cell/pre.yaml
- job:
name: nova-osprofiler-redis
parent: tempest-smoke-py3-osprofiler-redis
description: |
Runs osprofiler with the Redis collector on a subset of compute-specific
tempest-full-py3 smoke tests.
irrelevant-files: *nova-base-irrelevant-files
required-projects:
- openstack/nova
vars:
# We use the "all" environment for tempest_test_regex.
tox_envlist: all
# Run compute API and only the test_server_basic_ops scenario tests.
tempest_test_regex: ^tempest\.(scenario\.test_server_basic_ops|(api\.compute))
- job:
name: nova-ceph-multistore
parent: devstack-plugin-ceph-tempest-py3
description: |
Just like the normal ceph job, but with glance multistore
irrelevant-files: *nova-base-irrelevant-files
required-projects:
- openstack/nova
timeout: 9000
pre-run:
- playbooks/ceph/glance-setup.yaml
vars:
# revert this when bug #1940425 is fixed in neutron
# FIXME(sean-k-mooney) skip the test_image_formats for now
# as we have not configured this job correctly to run them
tempest_exclude_regex: (test_live_migration_with_trunk|tempest.api.image.v2.test_images_formats)
# NOTE(danms): Increase our swap size since we're dealing with
# larger images and trigger OOMs.
configure_swap_size: 8192
# NOTE(danms): These tests create an empty non-raw image, which nova
# will refuse because we set never_download_image_if_on_rbd in this job.
# Just skip these tests for this case.
devstack_localrc:
GLANCE_USE_IMPORT_WORKFLOW: True
DEVSTACK_PARALLEL: True
GLANCE_LIMIT_IMAGE_SIZE_TOTAL: 2048
MYSQL_REDUCE_MEMORY: True
# NOTE(danms): This job is pretty heavy as it is, so we disable some
# services that are not relevant to the nova-glance-ceph scenario
# that this job is intended to validate.
devstack_services:
c-bak: false
s-account: false
s-container: false
s-object: false
s-proxy: false
openstack-cli-server: true
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
image-feature-enabled:
manage_locations: true
volume:
volume_size: 1
image:
disk_formats: qcow2,ari,aki,vhd,vmdk,raw,ami,vdi,iso,vhdx
post-config:
$NOVA_CONF:
libvirt:
images_rbd_glance_store_name: robust
workarounds:
never_download_image_if_on_rbd: True
$GLANCE_API_CONF:
DEFAULT:
enabled_backends: "cheap:file, robust:rbd, web:http"
default_log_levels: "amqp=WARN, amqplib=WARN, boto=WARN, qpid=WARN, sqlalchemy=WARN, suds=INFO, oslo.messaging=INFO, oslo_messaging=INFO, iso8601=WARN, requests.packages.urllib3.connectionpool=WARN, urllib3.connectionpool=WARN, websocket=WARN, requests.packages.urllib3.util.retry=WARN, urllib3.util.retry=WARN, keystonemiddleware=WARN, routes.middleware=WARN, stevedore=WARN, taskflow=WARN, keystoneauth=WARN, oslo.cache=INFO, dogpile.core.dogpile=INFO, oslo_policy=DEBUG"
glance_store:
default_backend: cheap
stores: file, http, rbd
default_store: file
robust:
rbd_store_pool: images
rbd_store_user: glance
rbd_store_ceph_conf: /etc/ceph/ceph.conf
cheap:
filesystem_store_datadir: /opt/stack/data/glance/images/
web:
https_insecure: false
os_glance_staging_store:
filesystem_store_datadir: /opt/stack/data/glance/os_glance_staging_store/
os_glance_tasks_store:
filesystem_store_datadir: /opt/stack/data/glance/os_glance_tasks_store/
$GLANCE_IMAGE_IMPORT_CONF:
image_import_opts:
image_import_plugins: "['image_conversion']"
image_conversion:
output_format: raw
- job:
name: tempest-integrated-compute-rbac-old-defaults
parent: tempest-integrated-compute
description: |
This job runs the Tempest tests with Nova RBAC old defaults
irrelevant-files: &policies-irrelevant-files
- ^api-.*$
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^doc/.*$
- ^nova/hacking/.*$
- ^nova/locale/.*$
- ^nova/tests/.*$
- ^nova/test.py$
- ^\.pre-commit-config\.yaml$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$
- ^tox.ini$
vars:
devstack_services:
openstack-cli-server: true
devstack_localrc:
NOVA_ENFORCE_NEW_DEFAULTS: false
- project:
# Please try to keep the list of job names sorted alphabetically.
templates:
- check-requirements
- integrated-gate-compute
- openstack-cover-jobs
- openstack-python3-jobs
- openstack-python3-jobs-arm64
- periodic-stable-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
# We define our own irrelevant-files so we don't run the job
# on things like nova docs-only changes.
- ironic-tempest-bios-ipmi-autodetect:
voting: false
irrelevant-files: *nova-base-irrelevant-files
- nova-ceph-multistore:
irrelevant-files: *nova-base-irrelevant-files
- nova-live-migration
- nova-whitebox
# NOTE(gmaan): We will be running the graceful shutdown testing in
# check pipeline only and not required to test in gate as such.
- nova-graceful-shutdown
- nova-live-migration-ceph
- nova-lvm
- nova-multi-cell
- nova-next
- nova-alt-configurations
# NOTE: nova-tox-validate-backport is non-voting in the check pipeline
# but voting in the gate pipeline. This way, if a stable backport is
# waiting on master fix or an older stable backport to merge first, the
# job fails and Zuul votes -1. A -1 in the check pipeline would otherwise
# need unnecessary rechecks once the master fix merges, or lead reviewers
# to skip the review.
- nova-tox-validate-backport:
voting: false
- nova-tox-functional-py311
- nova-tox-functional-py314
- nova-tox-functional-py314-threading
- tempest-integrated-compute:
# NOTE(gmann): Policies changes do not need to run all the
# integration test jobs. Running only tempest and grenade
# common jobs will be enough along with nova functional
# and unit tests.
irrelevant-files: *policies-irrelevant-files
- grenade-skip-level-always:
irrelevant-files: *policies-irrelevant-files
- nova-grenade-multinode:
irrelevant-files: *policies-irrelevant-files
- tempest-ipv6-only:
irrelevant-files: *nova-base-irrelevant-files
- openstacksdk-functional-devstack:
irrelevant-files: *nova-base-irrelevant-files
- cyborg-tempest-py3:
irrelevant-files: *nova-base-irrelevant-files
voting: false
- barbican-tempest-plugin-simple-crypto:
irrelevant-files: *nova-base-irrelevant-files
voting: false
- nova-tox-py314-threading
- openstack-tox-cover:
# Allow more time for unit and functional tests to run.
timeout: 6000
gate:
jobs:
- nova-live-migration
- nova-tox-functional-py311
- nova-tox-functional-py314
- nova-tox-functional-py314-threading
- nova-multi-cell
- nova-next
- nova-tox-validate-backport
- nova-ceph-multistore:
irrelevant-files: *nova-base-irrelevant-files
- tempest-integrated-compute:
irrelevant-files: *policies-irrelevant-files
- grenade-skip-level-always:
irrelevant-files: *policies-irrelevant-files
- nova-grenade-multinode:
irrelevant-files: *policies-irrelevant-files
- tempest-ipv6-only:
irrelevant-files: *nova-base-irrelevant-files
- openstacksdk-functional-devstack:
irrelevant-files: *nova-base-irrelevant-files
- nova-tox-py314-threading
- nova-alt-configurations
periodic-weekly:
jobs:
# Runs emulation feature functionality test less frequently due
# to being the initial release and experimental in nature.
- nova-emulation
- ironic-tempest-ipa-wholedisk-direct-tinyipa-multinode-shard
- tempest-centos9-stream-fips
- whitebox-devstack-multinode
- tempest-integrated-compute-rbac-old-defaults
- nova-graceful-shutdown-eventlet
experimental:
jobs:
- ironic-tempest-bfv:
irrelevant-files: *nova-base-irrelevant-files
- ironic-tempest-ipa-wholedisk-direct-tinyipa-multinode-shard:
irrelevant-files: *nova-base-irrelevant-files
- devstack-plugin-nfs-tempest-full:
irrelevant-files: *nova-base-irrelevant-files
- nova-osprofiler-redis
- nova-tempest-full-oslo.versionedobjects:
irrelevant-files: *nova-base-irrelevant-files
- nova-tempest-v2-api:
irrelevant-files: *nova-base-irrelevant-files
- neutron-ovs-tempest-dvr-ha-multinode-full:
irrelevant-files: *nova-base-irrelevant-files
- neutron-ovs-tempest-iptables_hybrid:
irrelevant-files: *nova-base-irrelevant-files
- os-vif-ovn:
irrelevant-files: *nova-base-irrelevant-files
- devstack-plugin-ceph-compute-local-ephemeral:
irrelevant-files: *nova-base-irrelevant-files
- devstack-tobiko-nova:
irrelevant-files: *nova-base-irrelevant-files
- tempest-centos9-stream-fips:
irrelevant-files: *nova-base-irrelevant-files
- nova-emulation
- tempest-integrated-compute-centos-9-stream:
irrelevant-files: *nova-base-irrelevant-files
- whitebox-devstack-multinode
- tempest-integrated-compute-rbac-old-defaults:
irrelevant-files: *policies-irrelevant-files
- nova-graceful-shutdown-eventlet