Files
nova/playbooks/legacy/nova-next/run.yaml
T
Ian Wienand 1623502eb1 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I913aafeeca1569bc244347bc630762f5a6cc072e
2019-03-24 20:34:42 +00:00

88 lines
3.3 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 \
https://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
# TODO (gmann): enable TLS console proxy once
# bug#1819794 is fixed. Something to take care
# while moving these jobs to devstack zuulv3 jobs.
# 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.
# TODO (gmann): enable TLS console proxy once
# bug#1819794 is fixed. Something to take care
# while moving these jobs to devstack zuulv3 jobs
# 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 most scenario tests at the default
# concurrency (nproc/2 which is normally 4 in the gate).
# 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.
export DEVSTACK_GATE_TEMPEST_REGEX="^tempest\.((scenario(?!\.test_network))|(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 }}'