Merge "[train][goal] Define new 'zaqar-tempest-swift-ipv6' job"
This commit is contained in:
commit
f6c269fce6
@ -69,6 +69,11 @@
|
||||
vars:
|
||||
database_backend: swift
|
||||
|
||||
- job:
|
||||
name: zaqar-tempest-swift-ipv6
|
||||
parent: zaqar-tempest-swift
|
||||
run: playbooks/legacy/tempest-devstack-zaqar-base/run-ipv6.yaml
|
||||
|
||||
- job:
|
||||
name: zaqar-tox-integration
|
||||
parent: openstack-tox
|
||||
@ -124,6 +129,7 @@
|
||||
- zaqar-grenade-mongodb
|
||||
- zaqar-grenade-redis
|
||||
- zaqar-grenade-swift
|
||||
- zaqar-tempest-swift-ipv6
|
||||
# TripleO jobs that deploy Zaqar.
|
||||
# Note we don't use a project-template here, so it's easier
|
||||
# to disable voting on one specific job if things go wrong.
|
||||
@ -141,5 +147,6 @@
|
||||
- zaqar-tempest-mongodb
|
||||
- zaqar-tempest-redis
|
||||
- zaqar-tempest-swift
|
||||
- zaqar-tempest-swift-ipv6
|
||||
- tripleo-ci-centos-7-scenario002-standalone
|
||||
- heat-functional-convg-mysql-lbaasv2
|
||||
|
@ -92,7 +92,7 @@ function configure_zaqar {
|
||||
|
||||
# Enable pooling by default for now
|
||||
iniset $ZAQAR_CONF DEFAULT admin_mode True
|
||||
iniset $ZAQAR_CONF 'drivers:transport:websocket' bind $ZAQAR_SERVICE_HOST
|
||||
iniset $ZAQAR_CONF 'drivers:transport:websocket' bind $(ipv6_unquote $ZAQAR_SERVICE_HOST)
|
||||
iniset $ZAQAR_CONF 'drivers:transport:websocket' port $ZAQAR_WEBSOCKET_PORT
|
||||
iniset $ZAQAR_CONF drivers transport websocket
|
||||
|
||||
|
72
playbooks/legacy/tempest-devstack-zaqar-base/run-ipv6.yaml
Normal file
72
playbooks/legacy/tempest-devstack-zaqar-base/run-ipv6.yaml
Normal file
@ -0,0 +1,72 @@
|
||||
- hosts: all
|
||||
name: Tempest Devstack Zaqar Base
|
||||
tasks:
|
||||
|
||||
- name: Ensure legacy workspace directory
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/workspace'
|
||||
state: directory
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
cat > clonemap.yaml << EOF
|
||||
clonemap:
|
||||
- name: openstack/devstack-gate
|
||||
dest: devstack-gate
|
||||
EOF
|
||||
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||
https://opendev.org \
|
||||
openstack/devstack-gate
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||
[[local|localrc]]
|
||||
enable_plugin zaqar https://opendev.org/openstack/zaqar
|
||||
# Enable Zaqar Tempest plugin
|
||||
TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin'
|
||||
SERVICE_IP_VERSION=6
|
||||
SERVICE_HOST=""
|
||||
|
||||
EOF
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
export PROJECTS="openstack/python-zaqarclient $PROJECTS"
|
||||
export PYTHONUNBUFFERED=true
|
||||
export ENABLED_SERVICES=tempest
|
||||
export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests"
|
||||
export DEVSTACK_GATE_TEMPEST=0
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
|
||||
function gate_hook {
|
||||
cd /opt/stack/new/zaqar/devstack/gate
|
||||
./gate_hook.sh tempest "{{ database_backend }}"
|
||||
}
|
||||
|
||||
export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS"
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
cd $BASE/new/tempest/tools
|
||||
./verify-ipv6-only-deployments.sh
|
||||
}
|
||||
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 }}'
|
Loading…
x
Reference in New Issue
Block a user