a3139c4bb5
This is the result of having run the zuul migration tool. Depends-On: I72687a56285a3d733a9adeaf3dc037a1ac95efd3 Change-Id: Ib511da75908e152e72fdf0d7b496f4fa98f9c223 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
100 lines
3.8 KiB
YAML
100 lines
3.8 KiB
YAML
- hosts: all
|
|
name: Autoconverted job legacy-manila-tempest-dsvm-scenario from old job gate-manila-tempest-dsvm-scenario-ubuntu-xenial-nv
|
|
tasks:
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat > clonemap.yaml << EOF
|
|
clonemap:
|
|
- name: openstack-infra/devstack-gate
|
|
dest: devstack-gate
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack-infra/devstack-gate
|
|
executable: /bin/bash
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
enable_plugin manila git://git.openstack.org/openstack/manila
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export DEVSTACK_GATE_POSTGRES=0
|
|
export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
|
|
|
|
# Install manila-image-elements project for building custom image
|
|
if [[ generic == *"_with_custom_image" ]]; then
|
|
export PROJECTS="openstack/manila-image-elements $PROJECTS"
|
|
fi
|
|
export ENABLED_SERVICES=tempest
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
export KEEP_LOCALRC=1
|
|
|
|
function pre_test_hook {
|
|
# Build custom image if needed
|
|
if [[ generic == *"_with_custom_image" ]]; then
|
|
current_dir=$(pwd)
|
|
|
|
# Go to 'manila-image-elements' dir, build image and get its name
|
|
cd /opt/stack/new/manila-image-elements
|
|
./tools/gate/build-images generic True
|
|
image_name=$(git ls-files --others --exclude-standard)
|
|
export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name"
|
|
export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name))
|
|
|
|
# Return back to execution dir
|
|
cd $current_dir
|
|
fi
|
|
|
|
# 'dhss' - acronym for 'Driver Handles Share Servers',
|
|
# defines mode of a share driver. Boolean-like.
|
|
# 'driver' - codename of a share driver to configure.
|
|
# 'back_end_type' - defines which installation Manila should
|
|
# have - either 'singlebackend' or 'multibackend'.
|
|
source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
|
|
1 \
|
|
generic \
|
|
multibackend
|
|
}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {
|
|
# 'back_end_type' - defines which installation Manila is
|
|
# configured to - either 'singlebackend' or 'multibackend'.
|
|
# 'driver' - codename of a share driver that is configured in
|
|
# Manila. It is used for enabling/disabling tests that are not
|
|
# supported by share driver that is used.
|
|
# 'test_type' - defines which set of test suites should be used,
|
|
# can have 'api' and 'scenario' values.
|
|
# 'postgres_enabled' - set of test suites depends on DB backend
|
|
# in some cases, so it is provided explicitely. Boolean-like.
|
|
source $BASE/new/manila/contrib/ci/post_test_hook.sh \
|
|
multibackend \
|
|
generic \
|
|
scenario \
|
|
0
|
|
}
|
|
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
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|