"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml" (20 Jul 2020, 3583 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-nfs
    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=cephfsnfs
   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 MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
   69           export MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST=True
   70 
   71           export KEEP_LOCALRC=1
   72           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   73           OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
   74           export OVERRIDE_ENABLED_SERVICES
   75 
   76           export DEVSTACK_GATE_USE_PYTHON3=True
   77 
   78           function pre_test_hook {
   79               # Configure Manila with a CephFS Native or NFS driver backend.
   80               # Refer to job-template pre_test_hook for more details on the
   81               # arguments.
   82               source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
   83                   false cephfsnfs singlebackend
   84           }
   85           export -f pre_test_hook
   86 
   87           function post_test_hook {
   88               # Configure and run Tempest API tests on Manila with a
   89               # CephFSNative driver backend.
   90               # Refer to job-template post_test_hook for more details on the
   91               # arguments.
   92               source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
   93                   singlebackend cephfsnfs api
   94           }
   95           export -f post_test_hook
   96 
   97           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
   98           ./safe-devstack-vm-gate-wrap.sh
   99         executable: /bin/bash
  100         chdir: '{{ ansible_user_dir }}/workspace'
  101       environment: '{{ zuul | zuul_legacy_vars }}'