"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml" (20 Jul 2020, 3534 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: manila-tempest-minimal-dsvm-cephfs-native
    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           enable_plugin devstack-plugin-ceph https://opendev.org/openstack/devstack-plugin-ceph
   35 
   36           # Enable CephFS as the backend for Manila.
   37           ENABLE_CEPH_MANILA=True
   38 
   39           # Disable Ceph as the storage backend for Nova.
   40           ENABLE_CEPH_NOVA=False
   41 
   42           # Disable Ceph as the storage backend for Glance.
   43           ENABLE_CEPH_GLANCE=False
   44 
   45           # Disable Ceph as the storage backend for Cinder.
   46           ENABLE_CEPH_CINDER=False
   47 
   48           # Disable Ceph as the storage backend for Cinder backup.
   49           ENABLE_CEPH_C_BAK=False
   50 
   51           # Set native or NFS variant of ceph driver
   52           MANILA_CEPH_DRIVER=cephfsnative
   53 
   54           EOF
   55         executable: /bin/bash
   56         chdir: '{{ ansible_user_dir }}/workspace'
   57       environment: '{{ zuul | zuul_legacy_vars }}'
   58 
   59     - shell:
   60         cmd: |
   61           set -e
   62           set -x
   63           export PYTHONUNBUFFERED=true
   64           export DEVSTACK_GATE_NEUTRON=1
   65           export ENABLED_SERVICES=tempest
   66           export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS"
   67           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
   68           export KEEP_LOCALRC=1
   69           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   70           OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
   71           export OVERRIDE_ENABLED_SERVICES
   72 
   73           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   74           export DEVSTACK_GATE_USE_PYTHON3=True
   75 
   76           function pre_test_hook {
   77               # Configure Manila with a CephFS Native or NFS driver backend.
   78               # Refer to job-template pre_test_hook for more details on the
   79               # arguments.
   80               source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
   81                   false cephfsnative singlebackend
   82           }
   83           export -f pre_test_hook
   84 
   85           function post_test_hook {
   86               # Configure and run Tempest API tests on Manila with a
   87               # CephFSNative driver backend.
   88               # Refer to job-template post_test_hook for more details on the
   89               # arguments.
   90               source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
   91                   singlebackend cephfsnative api
   92           }
   93           export -f post_test_hook
   94 
   95           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
   96           ./safe-devstack-vm-gate-wrap.sh
   97         executable: /bin/bash
   98         chdir: '{{ ansible_user_dir }}/workspace'
   99       environment: '{{ zuul | zuul_legacy_vars }}'