b4897d0385
Zun will manage security groups by itself so it is unnecessary for kuryr to create additional security groups if it is used with Zun. Disable it will significant improve the performance on starting/stopping containers. Depends-On: I6d6d176512e6b30bb7372408aec1a7bac12335ab Change-Id: Ic281e17ef3920c0e85c3b52b97e1b43887040caf
83 lines
2.5 KiB
YAML
83 lines
2.5 KiB
YAML
- hosts: primary
|
|
name: Zun devstack base multinode
|
|
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:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
enable_plugin zun git://git.openstack.org/openstack/zun
|
|
LIBS_FROM_GIT="python-zunclient"
|
|
KURYR_CAPABILITY_SCOPE=global
|
|
KURYR_PROCESS_EXTERNAL_CONNECTIVITY=False
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
# Enable tempest for tempest plugin
|
|
export ENABLED_SERVICES=tempest
|
|
|
|
export PROJECTS="openstack/zun $PROJECTS"
|
|
export PROJECTS="openstack/kuryr-libnetwork $PROJECTS"
|
|
export PROJECTS="openstack/python-zunclient $PROJECTS"
|
|
export PROJECTS="openstack/devstack-plugin-container $PROJECTS"
|
|
export PROJECTS="openstack/zun-tempest-plugin $PROJECTS"
|
|
|
|
# Keep localrc to be able to set some vars in post_test_hook
|
|
export KEEP_LOCALRC=1
|
|
export DEVSTACK_GATE_TOPOLOGY="multinode"
|
|
|
|
function gate_hook {
|
|
cd /opt/stack/new/zun/
|
|
./zun/tests/contrib/gate_hook.sh docker sql
|
|
}
|
|
export -f gate_hook
|
|
|
|
function post_test_hook {
|
|
source $BASE/new/devstack/accrc/admin/admin
|
|
cd /opt/stack/new/zun/
|
|
./zun/tests/contrib/post_test_hook.sh docker
|
|
}
|
|
|
|
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 }}'
|