4aa0945c1d
- Change post_test_hook in the gluster CI takes arguments - Enable glusterfs-nfs CI Depends-On: https://review.opendev.org/#/c/674738/ Change-Id: If6d233ffd658cd75599eec36eb8027f35771e224
84 lines
3.0 KiB
YAML
84 lines
3.0 KiB
YAML
- hosts: all
|
|
name: Autoconverted job manila-tempest-dsvm-glusterfs-nfs from old job gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv
|
|
tasks:
|
|
|
|
- name: Ensure legacy workspace directory
|
|
file:
|
|
path: '{{ ansible_user_dir }}/workspace'
|
|
state: directory
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat > clonemap.yaml << EOF
|
|
clonemap:
|
|
- name: openstack/devstack-gate
|
|
dest: devstack-gate
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
|
https://opendev.org \
|
|
openstack/devstack-gate
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
enable_plugin manila https://opendev.org/openstack/manila
|
|
enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
|
|
|
|
# Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS.
|
|
enable_plugin devstack-plugin-glusterfs https://opendev.org/x/devstack-plugin-glusterfs
|
|
|
|
# Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila.
|
|
CONFIGURE_GLUSTERFS_MANILA=True
|
|
|
|
# Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant.
|
|
GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-nfs
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export ENABLED_SERVICES=tempest
|
|
export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
|
|
export PROJECTS="x/devstack-plugin-glusterfs $PROJECTS"
|
|
export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
export KEEP_LOCALRC=1
|
|
export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
|
|
|
|
function pre_test_hook {
|
|
# Configure devstack to run manila installation without handling of share servers
|
|
source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh
|
|
}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {
|
|
# Configure and run tempest on singlebackend manila installation
|
|
source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh \
|
|
singlebackend \
|
|
glusterfs-nfs \
|
|
api
|
|
}
|
|
export -f post_test_hook
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|