"Fossies" - the Fresh Open Source Software Archive

Member "zaqar-10.0.0/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml" (13 May 2020, 8434 Bytes) of package /linux/misc/openstack/zaqar-10.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "run.yaml": 9.0.0_vs_10.0.0.

    1 - hosts: all
    2   name: Autoconverted job legacy-rally-dsvm-zaqar-zaqar from old job gate-rally-dsvm-zaqar-zaqar-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/devstack-gate
   17               dest: devstack-gate
   18           EOF
   19           /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
   20               https://opendev.org \
   21               openstack/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           if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then
   31               export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml"
   32           fi
   33 
   34           export PROJECTS="openstack/rally $PROJECTS"
   35 
   36           export DEVSTACK_GATE_NEUTRON=1
   37           export DEVSTACK_GATE_HORIZON=1
   38           export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0
   39           export DEVSTACK_GATE_IRONIC=0
   40           export DEVSTACK_GATE_ZAQAR=1
   41           export DEVSTACK_GATE_SENLIN=0
   42           export DEVSTACK_GATE_WATCHER=0
   43           export DEVSTACK_GATE_MAGNUM=0
   44           export DEVSTACK_GATE_HEAT=0
   45           export DEVSTACK_GATE_SWIFT=1
   46           export DEVSTACK_GATE_TELEMETRY=0
   47           export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0
   48           export DEVSTACK_GATE_EXERCISES=0
   49           export DEVSTACK_GATE_PREPOPULATE_USERS=0
   50 
   51           export DEVSTACK_GATE_USE_PYTHON3=True
   52           export USE_KEYSTONE_V2API=0
   53           export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-zaqar
   54 
   55           if [ $USE_KEYSTONE_V2API -eq 1 ]; then
   56               export IDENTITY_API_VERSION=2.0
   57           else
   58               export IDENTITY_API_VERSION=3
   59           fi
   60 
   61           DEVSTACK_LOCAL_CONFIG="enable_plugin rally https://opendev.org/openstack/rally"
   62           DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True"
   63           DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION"
   64 
   65           ENABLED_SERVICES=key,horizon,
   66           ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak,
   67           ENABLED_SERVICES+=g-api,g-reg,
   68           ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond,
   69           ENABLED_SERVICES+=q-qos,
   70 
   71           if [ $DEVSTACK_GATE_SWIFT -eq 1 ];
   72           then
   73               ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object,
   74           else
   75               export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
   76               export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
   77               export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
   78               export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
   79           fi
   80 
   81           if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then
   82               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://opendev.org/openstack/heat"
   83           fi
   84 
   85           export PROJECTS="openstack/neutron $PROJECTS"
   86           export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron https://opendev.org/openstack/neutron"
   87           if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then
   88               export PROJECTS="openstack/octavia $PROJECTS"
   89               export PROJECTS="openstack/neutron-fwaas $PROJECTS"
   90               export PROJECTS="openstack/diskimage-builder $PROJECTS"
   91               export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
   92               export PROJECTS="openstack/neutron-vpnaas $PROJECTS"
   93               export PROJECTS="openstack/networking-bgpvpn $PROJECTS"
   94               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://opendev.org/openstack/octavia"
   95               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://opendev.org/openstack/neutron-fwaas"
   96               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://opendev.org/openstack/neutron-vpnaas"
   97               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://opendev.org/openstack/networking-bgpvpn.git"
   98               export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta,
   99           fi
  100           if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then
  101               export PROJECTS="openstack/ironic $PROJECTS"
  102               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic https://opendev.org/openstack/ironic"
  103           fi
  104           if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then
  105               export PROJECTS="openstack/python-zaqarclient $PROJECTS"
  106               export PROJECTS="openstack/zaqar-ui $PROJECTS"
  107               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar https://opendev.org/openstack/zaqar"
  108           fi
  109           if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then
  110               export PROJECTS="openstack/senlin $PROJECTS"
  111               export PROJECTS="openstack/python-senlinclient $PROJECTS"
  112               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin https://opendev.org/openstack/senlin"
  113               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng"
  114           fi
  115           if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then
  116               export PROJECTS="openstack/watcher $PROJECTS"
  117               export PROJECTS="openstack/python-watcherclient $PROJECTS"
  118               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher https://opendev.org/openstack/watcher"
  119               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier"
  120           fi
  121           if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then
  122               export PROJECTS="openstack/magnum $PROJECTS"
  123               export PROJECTS="openstack/python-magnumclient $PROJECTS"
  124               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://opendev.org/openstack/magnum"
  125           fi
  126           if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then
  127               export PROJECTS="openstack/panko $PROJECTS"
  128               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko https://opendev.org/openstack/panko"
  129               export ENABLED_SERVICES+=panko-api,
  130               export PROJECTS="openstack/ceilometer $PROJECTS"
  131               export PROJECTS="openstack/aodh $PROJECTS"
  132               export PROJECTS="openstack/gnocchi $PROJECTS"
  133 
  134               export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler
  135 
  136               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer https://opendev.org/openstack/ceilometer"
  137               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh https://opendev.org/openstack/aodh"
  138               export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi https://opendev.org/openstack/gnocchi"
  139               export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api,
  140               export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector,
  141               export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier,
  142           fi
  143           export ENABLED_SERVICES
  144           export DEVSTACK_LOCAL_CONFIG
  145 
  146           if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then
  147               function gate_hook {
  148                   bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-zaqar
  149               }
  150               export -f gate_hook
  151           fi
  152 
  153           function post_test_hook {
  154               $BASE/new/rally/tests/ci/rally-gate.sh
  155           }
  156           export -f post_test_hook
  157 
  158           if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then
  159               # Switch off glance->swift communication as swift fails under py3.x
  160               function pre_test_hook {
  161                   local localconf=$BASE/new/devstack/local.conf
  162                   echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf
  163                   echo "[glance_store]" >> $localconf
  164                   echo "default_store=file" >> $localconf
  165               }
  166               export -f pre_test_hook
  167           fi
  168 
  169           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  170           ./safe-devstack-vm-gate-wrap.sh
  171         executable: /bin/bash
  172         chdir: '{{ ansible_user_dir }}/workspace'
  173       environment: '{{ zuul | zuul_legacy_vars }}'