"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml" (20 Jul 2020, 4553 Bytes) of package /linux/misc/openstack/manila-8.1.3.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": 8.1.2_vs_8.1.3.

    1 - hosts: all
    2   name: Autoconverted job manila-tempest-minimal-dsvm-lvm from old job gate-manila-tempest-minimal-dsvm-lvm
    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           cat << 'EOF' >>"/tmp/dg-local.conf"
   31           [[local|localrc]]
   32           SKIP_EPEL_INSTALL=True
   33           enable_plugin manila https://opendev.org/openstack/manila
   34           enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
   35           enable_plugin neutron-dynamic-routing https://opendev.org/openstack/neutron-dynamic-routing
   36           enable_plugin neutron-tempest-plugin https://opendev.org/openstack/neutron-tempest-plugin
   37           EOF
   38         executable: /bin/bash
   39         chdir: '{{ ansible_user_dir }}/workspace'
   40       environment: '{{ zuul | zuul_legacy_vars }}'
   41 
   42     - shell:
   43         cmd: |
   44           set -e
   45           set -x
   46           export PYTHONUNBUFFERED=true
   47           export DEVSTACK_GATE_NEUTRON=1
   48           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
   49 
   50           export MANILA_SETUP_IPV6=True
   51           export RUN_MANILA_IPV6_TESTS=True
   52           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   53           export MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST=True
   54 
   55           # Basic services needed for minimal job
   56           OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
   57           # Enable glance for scenario tests
   58           OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg
   59           # Enable nova for scenario tests
   60           OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj
   61           # Enable neutron for scenario tests
   62           OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt
   63           # Enable tls-proxy
   64           OVERRIDE_ENABLED_SERVICES+=,tls-proxy
   65 
   66           # Enable mandatory placement services for nova starting with ocata
   67           if [[ "stable/newton" != $ZUUL_BRANCH ]]; then
   68                OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client
   69           fi
   70           export OVERRIDE_ENABLED_SERVICES
   71 
   72           # Keep localrc to be able to set some vars in pre_test_hook
   73           export KEEP_LOCALRC=1
   74           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   75           export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS"
   76           export PROJECTS="openstack/neutron-tempest-plugin $PROJECTS"
   77 
   78           function pre_test_hook {
   79               # 'dhss' - acronym for 'Driver Handles Share Servers',
   80               # defines mode of a share driver. Boolean-like.
   81               # 'driver' - codename of a share driver to configure.
   82               # 'back_end_type' - defines which installation Manila should
   83               # have - either 'singlebackend' or 'multibackend'.
   84               source $BASE/new/manila/contrib/ci/pre_test_hook.sh False lvm multibackend
   85           }
   86           export -f pre_test_hook
   87 
   88           function post_test_hook {
   89               # 'back_end_type' - defines which installation Manila is
   90               # configured to - either 'singlebackend' or 'multibackend'.
   91               # 'driver' - codename of a share driver that is configured in
   92               # Manila. It is used for enabling/disabling tests that are not
   93               # supported by share driver that is used.
   94               # 'test_type' - defines which set of test suites should be used,
   95               # can have 'api' and 'scenario' values.
   96               # 'postgres_enabled' - set of test suites depends on DB backend
   97               # in some cases, so it is provided explicitely. Boolean-like.
   98               source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend lvm api False
   99           }
  100           export -f post_test_hook
  101 
  102           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  103           ./safe-devstack-vm-gate-wrap.sh
  104         executable: /bin/bash
  105         chdir: '{{ ansible_user_dir }}/workspace'
  106       environment: '{{ zuul | zuul_legacy_vars }}'