
Before this change, nova-next ran the same tests as the tempest-full job which was all non-slow API and scenario tests. To avoid running redundant tests on the same nova change, this patch changes the tempest run regex to run only compute API tests along with all scenario tests and includes slow tests (by not excluding them like tempest-full does). By removing the non-compute API tests we should still be able to keep this job running in a reasonable time even though the slow tests are added. As discussed in https://review.openstack.org/606978/, test_volume_swap_with_multiattach will be run again with this change since it otherwise won't run in tempest-slow since that is a multi-node job and the test was blocked from running in multi-node jobs until bug 1807723 is fixed. In other words, this gives us volume multi-attach testing of swap volumes again since nova-next is a single-node job. Change-Id: Icbc06849dfcc9f41c7aaf7de109e036a993de7c7
79 lines
2.7 KiB
YAML
79 lines
2.7 KiB
YAML
- hosts: all
|
|
name: nova-next
|
|
tasks:
|
|
|
|
- name: Ensure workspace directory
|
|
file:
|
|
path: '{{ ansible_user_dir }}/workspace'
|
|
state: directory
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat > clonemap.yaml << EOF
|
|
clonemap:
|
|
- name: openstack-infra/devstack-gate
|
|
dest: devstack-gate
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack-infra/devstack-gate
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
# Enable TLS between the noVNC proxy & compute nodes; this requires
|
|
# the tls-proxy service to be enabled.
|
|
|
|
# Switch off the provider association refresh, which should reduce the
|
|
# number of placement calls in steady state.
|
|
# TODO(efried): Due to bug #1802143, nova-cpu.conf gets overwritten
|
|
# after post-config|$NOVA_CPU_CONF gets effected, so use $NOVA_CONF
|
|
# instead for now.
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
NOVA_USE_SERVICE_TOKEN=True
|
|
NOVA_CONSOLE_PROXY_COMPUTE_TLS=True
|
|
USE_PYTHON3=True
|
|
ENABLE_VOLUME_MULTIATTACH=True
|
|
|
|
[[post-config|$NOVA_CONF]]
|
|
[compute]
|
|
resource_provider_association_refresh = 0
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
# tls-proxy is needed to initialize the CA and cert.
|
|
export ENABLED_SERVICES=tls-proxy
|
|
export PYTHONUNBUFFERED=true
|
|
# Yes we want to run Tempest.
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
# Run all compute API tests and all scenario tests at the default
|
|
# concurrency (nproc/2 which is normally 4 in the gate).
|
|
export DEVSTACK_GATE_TEMPEST_REGEX="^tempest\.((scenario)|(api\.compute))"
|
|
# The post_test_hook runs some post-test CLIs for things that
|
|
# Tempest does not test, like archiving deleted records.
|
|
function post_test_hook {
|
|
if [ -f $BASE/new/nova/gate/post_test_hook.sh ]; then
|
|
$BASE/new/nova/gate/post_test_hook.sh
|
|
fi
|
|
}
|
|
export -f post_test_hook
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|