|
| 1 | +- hosts: all |
| 2 | + name: Autoconverted job legacy-osc-dsvm-functional-tips from old job gate-osc-dsvm-functional-tips-ubuntu-xenial-nv |
| 3 | + tasks: |
| 4 | + |
| 5 | + - name: Ensure legacy workspace directory |
| 6 | + file: |
| 7 | + path: '{{ ansible_user_dir }}/workspace' |
| 8 | + state: directory |
| 9 | + |
| 10 | + - shell: |
| 11 | + cmd: | |
| 12 | + set -e |
| 13 | + set -x |
| 14 | + cat > clonemap.yaml << EOF |
| 15 | + clonemap: |
| 16 | + - name: openstack-infra/devstack-gate |
| 17 | + dest: devstack-gate |
| 18 | + EOF |
| 19 | + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ |
| 20 | + git://git.openstack.org \ |
| 21 | + openstack-infra/devstack-gate |
| 22 | + executable: /bin/bash |
| 23 | + chdir: '{{ ansible_user_dir }}/workspace' |
| 24 | + environment: '{{ zuul | zuul_legacy_vars }}' |
| 25 | + |
| 26 | + - shell: |
| 27 | + cmd: | |
| 28 | + set -e |
| 29 | + set -x |
| 30 | + cat << 'EOF' >>"/tmp/dg-local.conf" |
| 31 | + [[local|localrc]] |
| 32 | + # NOTE(amotoki): Some neutron features are enabled by devstack plugin |
| 33 | + enable_plugin neutron https://git.openstack.org/openstack/neutron |
| 34 | + enable_service q-qos |
| 35 | + enable_service neutron-segments |
| 36 | + # NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable |
| 37 | + GLANCE_V1_ENABLED=True |
| 38 | + # NOTE(dtroyer): Functional tests need a bit more volume headroom |
| 39 | + VOLUME_BACKING_FILE_SIZE=20G |
| 40 | + # Swift is not ready for python3 yet: At a minimum keystonemiddleware needs |
| 41 | + # to be installed in the py2 env, there are probably other things too... |
| 42 | + disable_service s-account |
| 43 | + disable_service s-container |
| 44 | + disable_service s-object |
| 45 | + disable_service s-proxy |
| 46 | + # This is insufficient, but leaving it here as a reminder of what may |
| 47 | + # someday be all we need to make this work |
| 48 | + disable_python3_package swift |
| 49 | + # NOTE(dtroyer): OSC needs to support Volume v1 for a while yet so re-enable |
| 50 | + [[post-config|$CINDER_CONF]] |
| 51 | + [DEFAULT] |
| 52 | + enable_v1_api = True |
| 53 | +
|
| 54 | + EOF |
| 55 | + executable: /bin/bash |
| 56 | + chdir: '{{ ansible_user_dir }}/workspace' |
| 57 | + environment: '{{ zuul | zuul_legacy_vars }}' |
| 58 | + |
| 59 | + - shell: |
| 60 | + cmd: | |
| 61 | + set -e |
| 62 | + set -x |
| 63 | + export PYTHONUNBUFFERED=true |
| 64 | + export DEVSTACK_GATE_USE_PYTHON3=True |
| 65 | + export DEVSTACK_GATE_UNSTACK=0 |
| 66 | + export DEVSTACK_GATE_TEMPEST=0 |
| 67 | + export DEVSTACK_GATE_EXERCISES=0 |
| 68 | + export DEVSTACK_GATE_INSTALL_TESTONLY=1 |
| 69 | + export DEVSTACK_GATE_NEUTRON=1 |
| 70 | + export BRANCH_OVERRIDE=default |
| 71 | + export DEVSTACK_PROJECT_FROM_GIT="python-openstackclient,python-openstacksdk,osc-lib,os-client-config" |
| 72 | + if [ "$BRANCH_OVERRIDE" != "default" ] ; then |
| 73 | + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE |
| 74 | + fi |
| 75 | +
|
| 76 | + function post_test_hook { |
| 77 | + # This test hook will install the master version of the following: |
| 78 | + # - osc-lib |
| 79 | + # - openstacksdk |
| 80 | + # - os-client-config |
| 81 | + hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook_tips.sh |
| 82 | + bash -xe $hook_location |
| 83 | + } |
| 84 | + export -f post_test_hook |
| 85 | +
|
| 86 | + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh |
| 87 | + ./safe-devstack-vm-gate-wrap.sh |
| 88 | + executable: /bin/bash |
| 89 | + chdir: '{{ ansible_user_dir }}/workspace' |
| 90 | + environment: '{{ zuul | zuul_legacy_vars }}' |
0 commit comments