Run DevStack in the gate
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.1KB

  1. - hosts: all
  2. name: legacy-tempest-neutron-full-stable
  3. tasks:
  4. - name: Ensure legacy workspace directory
  5. file:
  6. path: '{{ ansible_user_dir }}/workspace'
  7. state: directory
  8. - shell:
  9. cmd: |
  10. set -e
  11. set -x
  12. cat > clonemap.yaml << EOF
  13. clonemap:
  14. - name: openstack/devstack-gate
  15. dest: devstack-gate
  16. EOF
  17. /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
  18. https://opendev.org \
  19. openstack/devstack-gate
  20. executable: /bin/bash
  21. chdir: '{{ ansible_user_dir }}/workspace'
  22. environment: '{{ zuul | zuul_legacy_vars }}'
  23. - shell:
  24. cmd: |
  25. set -e
  26. set -x
  27. cat << 'EOF' >>"/tmp/dg-local.conf"
  28. [[local|localrc]]
  29. ENABLE_FILE_INJECTION=True
  30. EOF
  31. executable: /bin/bash
  32. chdir: '{{ ansible_user_dir }}/workspace'
  33. environment: '{{ zuul | zuul_legacy_vars }}'
  34. - shell:
  35. cmd: |
  36. set -e
  37. set -x
  38. export PYTHONUNBUFFERED=true
  39. export DEVSTACK_GATE_TEMPEST=1
  40. export DEVSTACK_GATE_TEMPEST_FULL=1
  41. export DEVSTACK_GATE_NEUTRON=1
  42. export DEVSTACK_GATE_TLSPROXY=1
  43. # NOTE(gmann): Overriding the branch to most recent
  44. # stable branch. Idea here is to make sure devstack-gate
  45. # which is used in legacy jobs for stable branches work
  46. # fine. Testing it on most recent stable branch should
  47. # be enough to make sure devstack-gate keep working for
  48. # stable branch legacy jobs which are not yet migrated
  49. # to Zuul v3 native jobs.
  50. export BRANCH_OVERRIDE=stable/train
  51. if [ "$BRANCH_OVERRIDE" != "default" ] ; then
  52. export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
  53. fi
  54. cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  55. ./safe-devstack-vm-gate-wrap.sh
  56. executable: /bin/bash
  57. chdir: '{{ ansible_user_dir }}/workspace'
  58. environment: '{{ zuul | zuul_legacy_vars }}'