"Fossies" - the Fresh Open Source Software Archive

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