"Fossies" - the Fresh Open Source Software Archive

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