fa5aa8f625
Change-Id: Ic7114e5923b74a4202a043388701826b4e47326e
93 lines
3.5 KiB
YAML
93 lines
3.5 KiB
YAML
- hosts: primary
|
|
tasks:
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
# Enable Magnum Tempest plugin
|
|
TEMPEST_PLUGINS='/opt/stack/new/magnum-tempest-plugin'
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
if [ "{{ devstack_python3 }}" -eq 1 ] ; then
|
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
else
|
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
fi
|
|
|
|
if [ "{{ neutron }}" -eq 1 ] ; then
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
fi
|
|
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
if [ "{{ tempest }}" -eq 0 ] ; then
|
|
# Do not run any tempest tests
|
|
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
|
fi
|
|
|
|
if [ "{{ branch_override }}" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
export PROJECTS="openstack/magnum $PROJECTS"
|
|
export PROJECTS="openstack/python-magnumclient $PROJECTS"
|
|
export PROJECTS="openstack/diskimage-builder $PROJECTS"
|
|
export PROJECTS="openstack/magnum-tempest-plugin $PROJECTS"
|
|
|
|
if [ "{{ multinode }}" -eq 1 ] ; then
|
|
export DEVSTACK_GATE_TOPOLOGY="multinode"
|
|
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest"
|
|
fi
|
|
|
|
if [ "{{ horizon }}" -eq 0 ] ; then
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon"
|
|
else
|
|
export DEVSTACK_GATE_HORIZON=1
|
|
fi
|
|
if [ "{{ swift }}" -eq 0 ] ; then
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
|
fi
|
|
if [ "{{ ceilometer }}" -eq 0 ] ; then
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector"
|
|
fi
|
|
|
|
# Keep localrc to be able to set some vars in post_test_hook
|
|
export KEEP_LOCALRC=1
|
|
|
|
function gate_hook {
|
|
cd /opt/stack/new/magnum/
|
|
./magnum/tests/contrib/gate_hook.sh {{ coe }} $MAGNUM_GATE_SPECIAL
|
|
}
|
|
export -f gate_hook
|
|
|
|
function post_test_hook {
|
|
source $BASE/new/devstack/accrc/admin/admin
|
|
cd /opt/stack/new/magnum/
|
|
./magnum/tests/contrib/post_test_hook.sh {{ coe }} $MAGNUM_GATE_SPECIAL
|
|
}
|
|
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 }}'
|