OpenStack DNS As A Service (Designate)
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.

run.yaml 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. - hosts: all
  2. name: Autoconverted job legacy-tempest-dsvm-designate-pdns4 from old job gate-tempest-dsvm-designate-pdns4-ubuntu-xenial
  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-infra/devstack-gate
  15. dest: devstack-gate
  16. EOF
  17. /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
  18. git://git.openstack.org \
  19. openstack-infra/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. export PYTHONUNBUFFERED=true
  28. services=rabbit,tempest,mysql,dstat,key
  29. services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt
  30. # placement service mandatory for nova from ocata
  31. if [[ "stable/newton" != $ZUUL_BRANCH ]]; then
  32. services+=,placement-api
  33. fi
  34. services+=,g-api,g-reg
  35. services+=,c-sch,c-api,c-vol,c-bak
  36. services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3
  37. export DEVSTACK_GATE_TEMPEST=1
  38. export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
  39. export DEVSTACK_GATE_TEMPEST_REGEX=designate
  40. export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"
  41. export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322"
  42. export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER={{ backend }}"
  43. export PROJECTS="openstack/designate $PROJECTS"
  44. export PROJECTS="openstack/python-designateclient $PROJECTS"
  45. export PROJECTS="openstack/designate-dashboard $PROJECTS"
  46. export PROJECTS="openstack/designate-tempest-plugin $PROJECTS"
  47. export BRANCH_OVERRIDE=default
  48. if [ "$BRANCH_OVERRIDE" != "default" ] ; then
  49. export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
  50. fi
  51. if [ "{{ identity_v3_only }}" == "1" ] ; then
  52. export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False"
  53. fi
  54. if [ "{{ worker_model }}" == "1" ] ; then
  55. export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer"
  56. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager"
  57. fi
  58. export OVERRIDE_ENABLED_SERVICES=$services
  59. if [ "{{ database }}" == "postgres" ] ; then
  60. export DEVSTACK_GATE_POSTGRES=1
  61. fi
  62. if [ "{{ python_version }}" == "py35" ] ; then
  63. export DEVSTACK_GATE_USE_PYTHON3=True
  64. fi
  65. cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  66. ./safe-devstack-vm-gate-wrap.sh
  67. executable: /bin/bash
  68. chdir: '{{ ansible_user_dir }}/workspace'
  69. environment: '{{ zuul | zuul_legacy_vars }}'