Skip to content

Commit 4fb5d20

Browse files
committed
Test with computes using different cpu sets
1 parent aa293b4 commit 4fb5d20

1 file changed

Lines changed: 44 additions & 29 deletions

File tree

‎.zuul.yaml‎

Lines changed: 44 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -283,33 +283,46 @@
283283
cifmw_whitebox_install_crudini: true
284284
# avoid using default test_operator exclude list
285285
cifmw_test_operator_tempest_tests_exclude_override_scenario: false
286-
# This replaces the parent job's extra config, so repeat its Nehalem
287-
# model. A nova-operator pull request runs the parent and does not
288-
# get this block.
289-
# TODO: one NodeSet gives every compute the same nova.conf. Different
290-
# CPU sets need two OpenStackDataPlaneNodeSets, two nova dataplane
291-
# services, and two ConfigMaps. Until then whitebox does not prove
292-
# that live migration updates CPU pinning.
293-
cifmw_edpm_deploy_nova_compute_extra_config: |
294-
[compute]
295-
# /var/lib/nova is already mounted into the compute container, so
296-
# a provider.yaml written there after deploy is visible on restart.
297-
provider_config_location = /var/lib/nova/provider_config
298-
# Eight CPUs on each compute. The dedicated set is 0,1,4,5,
299-
# same as the RHOSO 18 job, so a guest that pins two CPUs
300-
# leaves two free. The shared set is 2,3,6,7 so a live
301-
# migration still has a free vCPU while Tempest runs four
302-
# tests at once.
303-
cpu_dedicated_set = 0,1,4,5
304-
cpu_shared_set = 2,3,6,7
305-
max_disk_devices_to_attach = 8
306-
[libvirt]
307-
cpu_mode = custom
308-
cpu_models = Nehalem
309-
cpu_model_extra_flags = vme,+ssse3,-mmx
310-
rx_queue_size = 1024
311-
[key_manager]
312-
backend = barbican
286+
# Swaps the CPU pools between the computes so a stale source pin fails
287+
# the destination checks. Each snippet fully replaces the parent job's
288+
# config, so both keep the Nehalem model needed to live migrate
289+
# between node pool computes.
290+
cifmw_edpm_deploy_nova_compute_extra_configs:
291+
openstack-edpm-0:
292+
hosts:
293+
- compute-0
294+
nova_compute_extra_config: |
295+
[compute]
296+
# /var/lib/nova is already mounted into the compute container,
297+
# so a provider.yaml written there after deploy is visible on
298+
# restart.
299+
provider_config_location = /var/lib/nova/provider_config
300+
cpu_dedicated_set = 0,1,4,5
301+
cpu_shared_set = 2,3,6,7
302+
max_disk_devices_to_attach = 8
303+
[libvirt]
304+
cpu_mode = custom
305+
cpu_models = Nehalem
306+
cpu_model_extra_flags = vme,+ssse3,-mmx
307+
rx_queue_size = 1024
308+
[key_manager]
309+
backend = barbican
310+
openstack-edpm-1:
311+
hosts:
312+
- compute-1
313+
nova_compute_extra_config: |
314+
[compute]
315+
provider_config_location = /var/lib/nova/provider_config
316+
cpu_dedicated_set = 2,3,6,7
317+
cpu_shared_set = 0,1,4,5
318+
max_disk_devices_to_attach = 8
319+
[libvirt]
320+
cpu_mode = custom
321+
cpu_models = Nehalem
322+
cpu_model_extra_flags = vme,+ssse3,-mmx
323+
rx_queue_size = 1024
324+
[key_manager]
325+
backend = barbican
313326
# identity.v3_endpoint_type public: tempest otherwise uses the
314327
# admin URL and the run becomes unstable.
315328
# ide_bus false: the default machine type has no IDE bus.
@@ -347,6 +360,7 @@
347360
whitebox.ctlplane_addresses compute-0.ctlplane.example.com:192.168.122.100,compute-1.ctlplane.example.com:192.168.122.101
348361
whitebox.ctlplane_ssh_username cloud-admin
349362
whitebox.ctlplane_ssh_private_key_path '/var/lib/tempest/.ssh/id_ecdsa'
363+
compute.min_compute_nodes 2
350364
whitebox.max_compute_nodes 2
351365
whitebox-hardware.dedicated_cpus_per_numa 2
352366
whitebox-hardware.shared_cpus_per_numa 1
@@ -377,8 +391,8 @@
377391
start_command: 'systemctl start edpm_nova_compute'
378392
stop_command: 'systemctl stop edpm_nova_compute'
379393
compute-1.ctlplane.example.com:
380-
cpu_dedicated_set: '0,1,4,5'
381-
cpu_shared_set: '2,3,6,7'
394+
cpu_dedicated_set: '2,3,6,7'
395+
cpu_shared_set: '0,1,4,5'
382396
services:
383397
libvirt:
384398
start_command: 'systemctl start virtqemud'
@@ -429,6 +443,7 @@
429443
description: |
430444
s2i Ceph Tempest and whitebox run. A nova-operator pull request
431445
runs the parent job and does not include whitebox.
446+
timeout: 12600
432447
vars:
433448
cifmw_test_operator_tempest_ssh_key_secret_name: dataplane-ansible-ssh-private-key-secret
434449
cifmw_whitebox_install_crudini: true

0 commit comments

Comments
 (0)