- hosts: all name: Autoconverted job legacy-blazar-devstack-dsvm from old job gate-blazar-devstack-dsvm 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-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 blazar git://git.openstack.org/openstack/blazar 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 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" # Construct a regex to limiting scope of tempest r="^(?:tempest\.cli\.simple_read_only\.test_.*reservation.*)" r="$r|^(?:tempest\.scenario\.test_.*reservation.*)" export DEVSTACK_GATE_TEMPEST_REGEX="$r" function pre_test_hook { # Install blazar tempest integration BLAZAR_TEMPEST_DIR=/opt/stack/new/blazar/contrib/tempest # Copying Tempest test suites # This will be removed once blazar tempest starts to use TempestPlugin if [ -e $BLAZAR_TEMPEST_DIR ] ; then TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest} cp -R $BLAZAR_TEMPEST_DIR/tempest/* $TEMPEST_DIR/tempest fi } export -f pre_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 }}'