"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml" (20 Jul 2020, 4252 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 legacy-manila-tempest-dsvm-generic-scenario-custom-image
    3     from old job gate-manila-tempest-dsvm-generic-scenario-custom-image-ubuntu-xenial-nv
    4   tasks:
    5 
    6     - name: Ensure legacy workspace directory
    7       file:
    8         path: '{{ ansible_user_dir }}/workspace'
    9         state: directory
   10 
   11     - shell:
   12         cmd: |
   13           set -e
   14           set -x
   15           cat > clonemap.yaml << EOF
   16           clonemap:
   17             - name: openstack/devstack-gate
   18               dest: devstack-gate
   19           EOF
   20           /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
   21               https://opendev.org \
   22               openstack/devstack-gate
   23         executable: /bin/bash
   24         chdir: '{{ ansible_user_dir }}/workspace'
   25       environment: '{{ zuul | zuul_legacy_vars }}'
   26 
   27     - shell:
   28         cmd: |
   29           set -e
   30           set -x
   31           cat << 'EOF' >>"/tmp/dg-local.conf"
   32           [[local|localrc]]
   33           enable_plugin manila https://opendev.org/openstack/manila
   34           enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
   35 
   36           EOF
   37         executable: /bin/bash
   38         chdir: '{{ ansible_user_dir }}/workspace'
   39       environment: '{{ zuul | zuul_legacy_vars }}'
   40 
   41     - shell:
   42         cmd: |
   43           set -e
   44           set -x
   45           export PYTHONUNBUFFERED=true
   46           export DEVSTACK_GATE_NEUTRON=1
   47           export DEVSTACK_GATE_POSTGRES=0
   48           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
   49 
   50           # Install manila-image-elements project for building custom image
   51           export PROJECTS="openstack/manila-image-elements $PROJECTS"
   52 
   53           export ENABLED_SERVICES=tempest
   54           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   55 
   56           # Keep localrc to be able to set some vars in pre_test_hook
   57           export KEEP_LOCALRC=1
   58           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   59 
   60           function pre_test_hook {
   61               current_dir=$(pwd)
   62 
   63               # Go to 'manila-image-elements' dir, build image and get its name
   64               cd /opt/stack/new/manila-image-elements
   65               ./tools/gate/build-images generic_with_custom_image
   66               image_name=$(cat ./IMAGE_NAME)
   67               export MANILA_SERVICE_IMAGE_URL="file://$(pwd)/$image_name"
   68               export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
   69 
   70               # Return back to execution dir
   71               cd $current_dir
   72 
   73               # 'dhss' - acronym for 'Driver Handles Share Servers',
   74               # defines mode of a share driver. Boolean-like.
   75               # 'driver' - codename of a share driver to configure.
   76               # 'back_end_type' - defines which installation Manila should
   77               # have - either 'singlebackend' or 'multibackend'.
   78               source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
   79                   1 \
   80                   generic_with_custom_image \
   81                   multibackend
   82           }
   83           export -f pre_test_hook
   84 
   85           function post_test_hook {
   86               # 'back_end_type' - defines which installation Manila is
   87               # configured to - either 'singlebackend' or 'multibackend'.
   88               # 'driver' - codename of a share driver that is configured in
   89               # Manila. It is used for enabling/disabling tests that are not
   90               # supported by share driver that is used.
   91               # 'test_type' - defines which set of test suites should be used,
   92               # can have 'api' and 'scenario' values.
   93               # 'postgres_enabled' - set of test suites depends on DB backend
   94               # in some cases, so it is provided explicitely. Boolean-like.
   95               source $BASE/new/manila/contrib/ci/post_test_hook.sh \
   96                   multibackend \
   97                   generic_with_custom_image \
   98                   scenario \
   99                   0
  100           }
  101           export -f post_test_hook
  102 
  103           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  104           ./safe-devstack-vm-gate-wrap.sh
  105         executable: /bin/bash
  106         chdir: '{{ ansible_user_dir }}/workspace'
  107       environment: '{{ zuul | zuul_legacy_vars }}'