Running tests in serial

Adding the following job which runs tempest tests in serial:
kuryr-kubernetes-tempest-daemon-containerized-openshift-octavia-serial

This is needed, for example, to a test like "Test restart of CNI and
Controller kuryr pods" which can cause problems when running in parallel with
other tests.

Also configured kuryr-kubernetes-tempest-daemon-pools-octavia to run the
tests in serial

Change-Id: Ie961a0ceeb33a6da285afba0019551ce5b54f905
This commit is contained in:
Itzik Brown 2018-07-03 11:28:21 +03:00
parent bf3ce1ad47
commit fe5b79b5ff
3 changed files with 15 additions and 3 deletions

View File

@ -124,6 +124,15 @@
devstack_localrc:
KURYR_K8S_CONTAINERIZED_DEPLOYMENT: true
- job:
name: kuryr-kubernetes-tempest-daemon-containerized-openshift-octavia-serial
description: Tempest with Octavia running in serial, CNI daemon enabled, containers and OpenShift
parent: kuryr-kubernetes-tempest-daemon-containerized-openshift-octavia
vars:
devstack_localrc:
KURYR_K8S_SERIAL_TESTS: True
tempest_concurrency: 1
- job:
name: kuryr-kubernetes-tempest-daemon-pools-octavia
parent: kuryr-kubernetes-tempest-daemon-octavia
@ -135,6 +144,5 @@
KURYR_USE_PORT_POOLS: true
KURYR_POD_VIF_DRIVER: neutron-vif
KURYR_VIF_POOL_DRIVER: neutron
TEMPEST_CONCURRENCY: 1
KURYR_K8S_SERIAL_TESTS: True
tempest_concurrency: 1

View File

@ -40,4 +40,5 @@
- kuryr-kubernetes-tempest-daemon-pools-octavia
- kuryr-kubernetes-tempest-daemon-containerized-octavia-l2
- kuryr-kubernetes-tempest-daemon-containerized-octavia-namespace
- kuryr-kubernetes-tempest-daemon-containerized-openshift-octavia-serial
- kuryr-kubernetes-tempest-daemon-ovn

View File

@ -855,6 +855,9 @@ elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
if is_service_enabled tempest && [[ "$KURYR_SUBNET_DRIVER" == "namespace" ]]; then
iniset $TEMPEST_CONFIG kuryr_kubernetes namespace_enabled True
fi
if is_service_enabled tempest && [[ "$KURYR_K8S_SERIAL_TESTS" == "True" ]]; then
iniset $TEMPEST_CONFIG kuryr_kubernetes run_tests_serial True
fi
fi
if [[ "$1" == "unstack" ]]; then