"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml" (20 Jul 2020, 3883 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-minimal-py35-dsvm-cephfs-native-centos-7 from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7-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     # Install centos-release-openstack-* needed for rabbitmq-server
   27     - name: Add centos-release-openstack-pike support
   28       become: yes
   29       yum:
   30         name: centos-release-openstack-pike
   31         state: present
   32 
   33     - shell:
   34         cmd: |
   35           set -e
   36           set -x
   37           cat << 'EOF' >>"/tmp/dg-local.conf"
   38           [[local|localrc]]
   39           SKIP_EPEL_INSTALL=True
   40 
   41           # swift is not ready for python3 yet
   42           disable_service s-account
   43           disable_service s-container
   44           disable_service s-object
   45           disable_service s-proxy
   46 
   47           enable_plugin manila https://opendev.org/openstack/manila
   48           enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
   49           enable_plugin devstack-plugin-ceph https://opendev.org/openstack/devstack-plugin-ceph
   50 
   51           # Enable CephFS as the backend for Manila.
   52           ENABLE_CEPH_MANILA=True
   53 
   54           # Disable Ceph as the storage backend for Nova.
   55           ENABLE_CEPH_NOVA=False
   56 
   57           # Disable Ceph as the storage backend for Glance.
   58           ENABLE_CEPH_GLANCE=False
   59 
   60           # Disable Ceph as the storage backend for Cinder.
   61           ENABLE_CEPH_CINDER=False
   62 
   63           # Disable Ceph as the storage backend for Cinder backup.
   64           ENABLE_CEPH_C_BAK=False
   65 
   66           # Set native or NFS variant of ceph driver
   67           MANILA_CEPH_DRIVER=cephfsnative
   68 
   69           EOF
   70         executable: /bin/bash
   71         chdir: '{{ ansible_user_dir }}/workspace'
   72       environment: '{{ zuul | zuul_legacy_vars }}'
   73 
   74     - shell:
   75         cmd: |
   76           set -e
   77           set -x
   78           export DEVSTACK_GATE_USE_PYTHON3=True
   79           export PYTHONUNBUFFERED=true
   80           export DEVSTACK_GATE_NEUTRON=1
   81           export ENABLED_SERVICES=tempest
   82           export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-ceph $PROJECTS"
   83           export KEEP_LOCALRC=1
   84           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
   85 
   86           function pre_test_hook {
   87               # Configure Manila with a CephFS Native or NFS driver backend.
   88               # Refer to job-template pre_test_hook for more details on the
   89               # arguments.
   90               source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
   91                   false cephfsnative singlebackend
   92           }
   93           export -f pre_test_hook
   94 
   95           function post_test_hook {
   96               # Configure and run Tempest API tests on Manila with a
   97               # CephFSNative driver backend.
   98               # Refer to job-template post_test_hook for more details on the
   99               # arguments.
  100               source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
  101                   singlebackend cephfsnative api
  102           }
  103           export -f post_test_hook
  104 
  105           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  106           ./safe-devstack-vm-gate-wrap.sh
  107         executable: /bin/bash
  108         chdir: '{{ ansible_user_dir }}/workspace'
  109       environment: '{{ zuul | zuul_legacy_vars }}'