"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml" (20 Jul 2020, 4615 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-dsvm-cephfs-nfs-centos-7 from old job gate-manila-tempest-minimal-dsvm-cephfs-nfs-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     - name: Check for /etc/yum/vars/contentdir
   34       stat:
   35         path: /etc/yum/vars/contentdir
   36       register: yum_contentdir
   37 
   38     - when: not yum_contentdir.stat.exists
   39       block:
   40 
   41       - name: Discover package architecture
   42         command: rpm -q --qf "%{arch}" -f /etc/redhat-release
   43         register: rpm_arch
   44 
   45       - debug:
   46           msg: Package architecture is '{{ rpm_arch.stdout }}'
   47 
   48       - name: Set contentdir to altarch
   49         set_fact:
   50           yum_contentdir: altarch
   51         when: rpm_arch.stdout in ['aarch64', 'ppc64le']
   52 
   53       - name: Populate /etc/yum/vars/contentdir
   54         copy:
   55           dest: /etc/yum/vars/contentdir
   56           content: "{{ yum_contentdir|default('centos') }}"
   57         become: true
   58 
   59     - shell:
   60         cmd: |
   61           set -e
   62           set -x
   63           cat << 'EOF' >>"/tmp/dg-local.conf"
   64           [[local|localrc]]
   65           SKIP_EPEL_INSTALL=True
   66           enable_plugin manila https://opendev.org/openstack/manila
   67           enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
   68           enable_plugin devstack-plugin-ceph https://opendev.org/openstack/devstack-plugin-ceph
   69 
   70           # Enable CephFS as the backend for Manila.
   71           ENABLE_CEPH_MANILA=True
   72 
   73           # Disable Ceph as the storage backend for Nova.
   74           ENABLE_CEPH_NOVA=False
   75 
   76           # Disable Ceph as the storage backend for Glance.
   77           ENABLE_CEPH_GLANCE=False
   78 
   79           # Disable Ceph as the storage backend for Cinder.
   80           ENABLE_CEPH_CINDER=False
   81 
   82           # Disable Ceph as the storage backend for Cinder backup.
   83           ENABLE_CEPH_C_BAK=False
   84 
   85           # Set native or NFS variant of ceph driver
   86           MANILA_CEPH_DRIVER=cephfsnfs
   87 
   88           EOF
   89         executable: /bin/bash
   90         chdir: '{{ ansible_user_dir }}/workspace'
   91       environment: '{{ zuul | zuul_legacy_vars }}'
   92 
   93     - shell:
   94         cmd: |
   95           set -e
   96           set -x
   97           export PYTHONUNBUFFERED=true
   98           export DEVSTACK_GATE_NEUTRON=1
   99           export ENABLED_SERVICES=tempest
  100           export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS"
  101           export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
  102           export KEEP_LOCALRC=1
  103           export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
  104           export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
  105           export MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST=True
  106           OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
  107           export OVERRIDE_ENABLED_SERVICES
  108 
  109           function pre_test_hook {
  110               # Configure Manila with a CephFS Native or NFS driver backend.
  111               # Refer to job-template pre_test_hook for more details on the
  112               # arguments.
  113               source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
  114                   false cephfsnfs singlebackend
  115           }
  116           export -f pre_test_hook
  117 
  118           function post_test_hook {
  119               # Configure and run Tempest API tests on Manila with a
  120               # CephFSNative driver backend.
  121               # Refer to job-template post_test_hook for more details on the
  122               # arguments.
  123               source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
  124                   singlebackend cephfsnfs api
  125           }
  126           export -f post_test_hook
  127 
  128           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
  129           ./safe-devstack-vm-gate-wrap.sh
  130         executable: /bin/bash
  131         chdir: '{{ ansible_user_dir }}/workspace'
  132       environment: '{{ zuul | zuul_legacy_vars }}'