"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml" (20 Jul 2020, 3054 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-glusterfs-nfs-heketi from old
    3     job gate-manila-tempest-dsvm-glusterfs-nfs-heketi-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           # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS.
   37           enable_plugin devstack-plugin-glusterfs https://opendev.org/x/devstack-plugin-glusterfs
   38 
   39           # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila.
   40           CONFIGURE_GLUSTERFS_MANILA=True
   41 
   42           # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant.
   43           GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-nfs-heketi
   44 
   45           EOF
   46         executable: /bin/bash
   47         chdir: '{{ ansible_user_dir }}/workspace'
   48       environment: '{{ zuul | zuul_legacy_vars }}'
   49 
   50     - shell:
   51         cmd: |
   52           set -e
   53           set -x
   54           export PYTHONUNBUFFERED=true
   55           export DEVSTACK_GATE_NEUTRON=1
   56           export ENABLED_SERVICES=tempest
   57           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
   58           export PROJECTS="x/devstack-plugin-glusterfs $PROJECTS"
   59 
   60           # Keep localrc to be able to set some vars in pre_test_hook
   61           export KEEP_LOCALRC=1
   62           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   63           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   64 
   65           function pre_test_hook {
   66               # Configure devstack to run manila installation without handling of share servers
   67               source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh
   68           }
   69           export -f pre_test_hook
   70 
   71           function post_test_hook {
   72               # Configure and run tempest on singlebackend manila installation
   73               source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend
   74           }
   75           export -f post_test_hook
   76 
   77           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
   78           ./safe-devstack-vm-gate-wrap.sh
   79         executable: /bin/bash
   80         chdir: '{{ ansible_user_dir }}/workspace'
   81       environment: '{{ zuul | zuul_legacy_vars }}'