584188dbcb
As part of Train community goal 'Support IPv6-Only Deployments and Testing' [1], we need to define the integration job which deploy services on IPv6 and perform testing to make sure service listen and communicate over IPv6 properly. Blazar has legacy zuul jobs only so base zuulv3 IPv6 job 'devstack-ipv6' and 'devstack-tempest-ipv6' cannot be used and we have to copy the whole run.yaml to set the IPv6 setting and run the IPv6 verification script via post_test_hook. This commit adds the new job 'blazar-devstack-dsvm-ipv6-only' run on gate and set the required IPv6 setting'. It also updates Blazar code so that [DEFAULT]/os_auth_host is bracketed when used to build URLs, as required for IPv6 addresses. [1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html Change-Id: I9a598f591d3fbb40c90be5bd12913b851aff2c9f Co-Authored-By: Pierre Riteau <pierre@stackhpc.com> Story: #2005477 Task: #35882
75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
- hosts: all
|
|
name: legacy-blazar-devstack-dsvm-ipv6-only
|
|
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 blazar https://opendev.org/openstack/blazar
|
|
# Swift is not ready for python3 yet
|
|
disable_service s-account
|
|
disable_service s-container
|
|
disable_service s-object
|
|
disable_service s-proxy
|
|
# Without Swift, c-bak cannot run (in the Gate at least)
|
|
disable_service c-bak
|
|
# Enable Tempest plugin
|
|
TEMPEST_PLUGINS='/opt/stack/new/blazar-tempest-plugin'
|
|
SERVICE_IP_VERSION=6
|
|
SERVICE_HOST=""
|
|
# IPv6 and certificates known issue with python2
|
|
# https://bugs.launchpad.net/devstack/+bug/1794929
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest
|
|
export PROJECTS="openstack/blazar $PROJECTS"
|
|
export PROJECTS="openstack/blazar-nova $PROJECTS"
|
|
export PROJECTS="openstack/python-blazarclient $PROJECTS"
|
|
export PROJECTS="openstack/blazar-tempest-plugin $PROJECTS"
|
|
export DEVSTACK_GATE_TEMPEST_REGEX="blazar_tempest_plugin"
|
|
export TEMPEST_CONCURRENCY=1
|
|
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 }}'
|