"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml" (20 Jul 2020, 3510 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-dsvm-generic-no-share-servers from old job gate-manila-tempest-dsvm-generic-no-share-servers-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           cat << 'EOF' >>"/tmp/dg-local.conf"
   31           [[local|localrc]]
   32           enable_plugin manila https://opendev.org/openstack/manila
   33           enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
   34 
   35           EOF
   36         executable: /bin/bash
   37         chdir: '{{ ansible_user_dir }}/workspace'
   38       environment: '{{ zuul | zuul_legacy_vars }}'
   39 
   40     - shell:
   41         cmd: |
   42           set -e
   43           set -x
   44           export PYTHONUNBUFFERED=true
   45           export DEVSTACK_GATE_NEUTRON=1
   46           export DEVSTACK_GATE_POSTGRES=0
   47           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
   48 
   49           export ENABLED_SERVICES=tempest
   50 
   51           # Keep localrc to be able to set some vars in pre_test_hook
   52           export KEEP_LOCALRC=1
   53           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   54 
   55           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   56 
   57           function pre_test_hook {
   58               # 'dhss' - acronym for 'Driver Handles Share Servers',
   59               # defines mode of a share driver. Boolean-like.
   60               # 'driver' - codename of a share driver to configure.
   61               # 'back_end_type' - defines which installation Manila should
   62               # have - either 'singlebackend' or 'multibackend'.
   63               source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
   64                   0 \
   65                   generic \
   66                   multibackend
   67           }
   68           export -f pre_test_hook
   69 
   70           function post_test_hook {
   71               # 'back_end_type' - defines which installation Manila is
   72               # configured to - either 'singlebackend' or 'multibackend'.
   73               # 'driver' - codename of a share driver that is configured in
   74               # Manila. It is used for enabling/disabling tests that are not
   75               # supported by share driver that is used.
   76               # 'test_type' - defines which set of test suites should be used,
   77               # can have 'api' and 'scenario' values.
   78               # 'postgres_enabled' - set of test suites depends on DB backend
   79               # in some cases, so it is provided explicitely. Boolean-like.
   80               source $BASE/new/manila/contrib/ci/post_test_hook.sh \
   81                   multibackend \
   82                   generic \
   83                   api \
   84                   0
   85           }
   86           export -f post_test_hook
   87 
   88           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
   89           ./safe-devstack-vm-gate-wrap.sh
   90         executable: /bin/bash
   91         chdir: '{{ ansible_user_dir }}/workspace'
   92       environment: '{{ zuul | zuul_legacy_vars }}'