Add functional jobs to check and gate pipelines
This commit brings functional test jobs to stable/ocata.
It began as a backport of 6fec3f2356
however, we'll run a minimum set of jobs
on this branch because it is transitioning to
extended maintenance.
This commit also reverts the old LVM centos-7 job to
running on Ubuntu Xenial Xerus since there are
outstanding package issues with centos that
are out of the scope of the manila team. See [1]
Check Queue:
- Voting:
- manila-tox-genconfig
- manila-tempest-minimal-dsvm-dummy
- manila-tempest-minimal-dsvm-lvm
- Non-voting:
- openstack-tox-cover
- openstack-tox-pylint
- manila-tempest-dsvm-mysql-generic
- manila-tempest-dsvm-postgres-container
- manila-tempest-dsvm-postgres-zfsonlinux
- manila-tempest-dsvm-postgres-generic-singlebackend
- manila-tempest-dsvm-generic-no-share-servers
- manila-tempest-dsvm-scenario
Gate Queue:
- Voting:
- manila-tox-genconfig
- manila-tempest-minimal-dsvm-dummy
- manila-tempest-minimal-dsvm-lvm
[1] https://bugs.launchpad.net/openstack-requirements/+bug/1778971
Depends-On: https://review.openstack.org/#/c/604657/
Change-Id: I7c9fbbb22860a2d246a9e6cb834f7c87875344f0
This commit is contained in:
parent
81b62fac0d
commit
215c0f7db0
147
.zuul.yaml
147
.zuul.yaml
@ -13,13 +13,26 @@
|
|||||||
- openstack-tox-pylint:
|
- openstack-tox-pylint:
|
||||||
voting: false
|
voting: false
|
||||||
- manila-tox-genconfig
|
- manila-tox-genconfig
|
||||||
|
- manila-tempest-minimal-dsvm-dummy
|
||||||
|
- manila-tempest-minimal-dsvm-lvm
|
||||||
|
- manila-tempest-dsvm-mysql-generic:
|
||||||
|
voting: false
|
||||||
|
- manila-tempest-dsvm-postgres-container:
|
||||||
|
voting: false
|
||||||
|
- manila-tempest-dsvm-postgres-zfsonlinux:
|
||||||
|
voting: false
|
||||||
|
- manila-tempest-dsvm-postgres-generic-singlebackend:
|
||||||
|
voting: false
|
||||||
|
- manila-tempest-dsvm-generic-no-share-servers:
|
||||||
|
voting: false
|
||||||
|
- manila-tempest-dsvm-scenario:
|
||||||
|
voting: false
|
||||||
gate:
|
gate:
|
||||||
queue: manila
|
queue: manila
|
||||||
jobs:
|
jobs:
|
||||||
- manila-tox-genconfig
|
- manila-tox-genconfig
|
||||||
post:
|
- manila-tempest-minimal-dsvm-dummy
|
||||||
jobs:
|
- manila-tempest-minimal-dsvm-lvm
|
||||||
- openstack-tox-cover
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: manila-tox-genconfig
|
name: manila-tox-genconfig
|
||||||
@ -30,3 +43,131 @@
|
|||||||
Uses tox with the ``genconfig`` environment.
|
Uses tox with the ``genconfig`` environment.
|
||||||
vars:
|
vars:
|
||||||
tox_envlist: genconfig
|
tox_envlist: genconfig
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: legacy-manila-tempest-dsvm-base
|
||||||
|
parent: legacy-dsvm-base
|
||||||
|
irrelevant-files:
|
||||||
|
- ^(test-|)requirements.txt$
|
||||||
|
- ^.*\.rst$
|
||||||
|
- ^api-ref/.*$
|
||||||
|
- ^doc/.*$
|
||||||
|
- ^install-guide/.*$
|
||||||
|
- ^manila/hacking/.*$
|
||||||
|
- ^manila/tests/.*$
|
||||||
|
- ^releasenotes/.*$
|
||||||
|
- ^run_tests.sh$
|
||||||
|
- ^setup.cfg$
|
||||||
|
- ^tools/.*$
|
||||||
|
- ^tox.ini$
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-dsvm-generic-no-share-servers
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-dsvm-mysql-generic
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-dsvm-postgres-container
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-dsvm-postgres-generic-singlebackend
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-dsvm-postgres-zfsonlinux
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-dsvm-scenario
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/manila-image-elements
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-minimal-dsvm-dummy
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tempest-minimal-dsvm-lvm
|
||||||
|
parent: legacy-manila-tempest-dsvm-base
|
||||||
|
run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml
|
||||||
|
post-run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml
|
||||||
|
timeout: 5400
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/manila
|
||||||
|
- openstack/python-manilaclient
|
||||||
|
- openstack/tempest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: manila-tox-genconfig
|
||||||
|
parent: openstack-tox
|
||||||
|
description: |
|
||||||
|
Run tests for manila project.
|
||||||
|
Uses tox with the ``genconfig`` environment.
|
||||||
|
vars:
|
||||||
|
tox_envlist: genconfig
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,108 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-dsvm-generic-no-share-servers from
|
||||||
|
old job gate-manila-tempest-dsvm-generic-no-share-servers-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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 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 \
|
||||||
|
0 \
|
||||||
|
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 \
|
||||||
|
api \
|
||||||
|
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
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml
Normal file
15
playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
107
playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml
Normal file
107
playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-dsvm-mysql-generic from old job gate-manila-tempest-dsvm-mysql-generic-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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 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 \
|
||||||
|
api \
|
||||||
|
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
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
108
playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml
Normal file
108
playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-dsvm-postgres-container from old job
|
||||||
|
gate-manila-tempest-dsvm-postgres-container-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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 DEVSTACK_GATE_POSTGRES=1
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
|
||||||
|
|
||||||
|
# Install manila-image-elements project for building custom image
|
||||||
|
if [[ container == *"_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 [[ container == *"_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 container 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 \
|
||||||
|
container \
|
||||||
|
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 \
|
||||||
|
container \
|
||||||
|
api \
|
||||||
|
1
|
||||||
|
}
|
||||||
|
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 }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,108 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-dsvm-postgres-generic-singlebackend
|
||||||
|
from old job gate-manila-tempest-dsvm-postgres-generic-singlebackend-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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 DEVSTACK_GATE_POSTGRES=1
|
||||||
|
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 \
|
||||||
|
singlebackend
|
||||||
|
}
|
||||||
|
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 \
|
||||||
|
singlebackend \
|
||||||
|
generic \
|
||||||
|
api \
|
||||||
|
1
|
||||||
|
}
|
||||||
|
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 }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,108 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-dsvm-postgres-zfsonlinux from old
|
||||||
|
job gate-manila-tempest-dsvm-postgres-zfsonlinux-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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 DEVSTACK_GATE_POSTGRES=1
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
|
||||||
|
|
||||||
|
# Install manila-image-elements project for building custom image
|
||||||
|
if [[ zfsonlinux == *"_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 [[ zfsonlinux == *"_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 zfsonlinux 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 \
|
||||||
|
0 \
|
||||||
|
zfsonlinux \
|
||||||
|
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 \
|
||||||
|
zfsonlinux \
|
||||||
|
api \
|
||||||
|
1
|
||||||
|
}
|
||||||
|
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 }}'
|
15
playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml
Normal file
15
playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
107
playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml
Normal file
107
playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-dsvm-scenario from old job gate-manila-tempest-dsvm-scenario-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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 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
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml
Normal file
15
playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
94
playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
Normal file
94
playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-minimal-dsvm-dummy from old job gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial
|
||||||
|
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-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
|
||||||
|
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 git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
|
||||||
|
# Basic services needed for minimal job
|
||||||
|
OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
|
||||||
|
if [ "dummy" == "lvm" ]; then
|
||||||
|
# Enable glance for scenario tests
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg
|
||||||
|
# Enable nova for scenario tests
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj
|
||||||
|
# Enable neutron for scenario tests
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt
|
||||||
|
|
||||||
|
# Enable mandatory placement services for nova starting with ocata
|
||||||
|
if [[ "stable/newton" != $ZUUL_BRANCH ]]; then
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
export OVERRIDE_ENABLED_SERVICES
|
||||||
|
|
||||||
|
# Keep localrc to be able to set some vars in pre_test_hook
|
||||||
|
export KEEP_LOCALRC=1
|
||||||
|
|
||||||
|
function pre_test_hook {
|
||||||
|
# '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 False dummy 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 dummy api False
|
||||||
|
}
|
||||||
|
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 }}'
|
15
playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml
Normal file
15
playbooks/legacy/manila-tempest-minimal-dsvm-lvm/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
96
playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml
Normal file
96
playbooks/legacy/manila-tempest-minimal-dsvm-lvm/run.yaml
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-manila-tempest-minimal-dsvm-lvm from old
|
||||||
|
job gate-manila-tempest-minimal-dsvm-lvm
|
||||||
|
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-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
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
SKIP_EPEL_INSTALL=True
|
||||||
|
enable_plugin manila git://git.openstack.org/openstack/manila
|
||||||
|
|
||||||
|
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 DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
|
||||||
|
# Basic services needed for minimal job
|
||||||
|
OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
|
||||||
|
if [ "lvm" == "lvm" ]; then
|
||||||
|
# Enable glance for scenario tests
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg
|
||||||
|
# Enable nova for scenario tests
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj
|
||||||
|
# Enable neutron for scenario tests
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt
|
||||||
|
|
||||||
|
# Enable mandatory placement services for nova starting with ocata
|
||||||
|
if [[ "stable/newton" != $ZUUL_BRANCH ]]; then
|
||||||
|
OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
export OVERRIDE_ENABLED_SERVICES
|
||||||
|
|
||||||
|
# Keep localrc to be able to set some vars in pre_test_hook
|
||||||
|
export KEEP_LOCALRC=1
|
||||||
|
|
||||||
|
function pre_test_hook {
|
||||||
|
# '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 False lvm 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 lvm api False
|
||||||
|
}
|
||||||
|
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 }}'
|
@ -1,93 +0,0 @@
|
|||||||
---
|
|
||||||
Dummy.openstack:
|
|
||||||
-
|
|
||||||
description: "Check quotas context"
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 1
|
|
||||||
concurrency: 1
|
|
||||||
context:
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
shares: -1
|
|
||||||
gigabytes: -1
|
|
||||||
snapshots: -1
|
|
||||||
snapshot_gigabytes: -1
|
|
||||||
share_networks: -1
|
|
||||||
|
|
||||||
ManilaShares.list_shares:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
detailed: True
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
|
|
||||||
{% for s in ("create_and_delete_share", "create_and_list_share") %}
|
|
||||||
ManilaShares.{{s}}:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
share_proto: "nfs"
|
|
||||||
size: 1
|
|
||||||
share_type: "dhss_false"
|
|
||||||
min_sleep: 1
|
|
||||||
max_sleep: 2
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
shares: -1
|
|
||||||
gigabytes: -1
|
|
||||||
users:
|
|
||||||
tenants: 2
|
|
||||||
users_per_tenant: 1
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
ManilaShares.set_and_delete_metadata:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
sets: 1
|
|
||||||
set_size: 3
|
|
||||||
delete_size: 3
|
|
||||||
key_min_length: 1
|
|
||||||
key_max_length: 256
|
|
||||||
value_min_length: 1
|
|
||||||
value_max_length: 1024
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
shares: -1
|
|
||||||
gigabytes: -1
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
manila_shares:
|
|
||||||
shares_per_tenant: 1
|
|
||||||
share_proto: "NFS"
|
|
||||||
size: 1
|
|
||||||
share_type: "dhss_false"
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
@ -1,199 +0,0 @@
|
|||||||
---
|
|
||||||
Dummy.openstack:
|
|
||||||
-
|
|
||||||
description: "Check quotas context"
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 1
|
|
||||||
concurrency: 1
|
|
||||||
context:
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
shares: -1
|
|
||||||
gigabytes: -1
|
|
||||||
snapshots: -1
|
|
||||||
snapshot_gigabytes: -1
|
|
||||||
share_networks: -1
|
|
||||||
|
|
||||||
ManilaShares.list_shares:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
detailed: True
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
users:
|
|
||||||
tenants: 3
|
|
||||||
users_per_tenant: 4
|
|
||||||
user_choice_method: "round_robin"
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
|
|
||||||
{% for s in ("create_and_delete_share", "create_and_list_share") %}
|
|
||||||
ManilaShares.{{s}}:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
share_proto: "nfs"
|
|
||||||
size: 1
|
|
||||||
share_type: "dhss_true"
|
|
||||||
min_sleep: 1
|
|
||||||
max_sleep: 2
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
shares: -1
|
|
||||||
gigabytes: -1
|
|
||||||
share_networks: -1
|
|
||||||
users:
|
|
||||||
tenants: 2
|
|
||||||
users_per_tenant: 1
|
|
||||||
user_choice_method: "round_robin"
|
|
||||||
manila_share_networks:
|
|
||||||
use_share_networks: True
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
ManilaShares.create_share_network_and_delete:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
name: "rally"
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
share_networks: -1
|
|
||||||
users:
|
|
||||||
tenants: 2
|
|
||||||
users_per_tenant: 1
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
|
|
||||||
ManilaShares.create_share_network_and_list:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
name: "rally"
|
|
||||||
detailed: True
|
|
||||||
search_opts:
|
|
||||||
name: "rally"
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
share_networks: -1
|
|
||||||
users:
|
|
||||||
tenants: 2
|
|
||||||
users_per_tenant: 1
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
|
|
||||||
ManilaShares.list_share_servers:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
search_opts: {}
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
|
|
||||||
ManilaShares.create_security_service_and_delete:
|
|
||||||
{% for s in ("ldap", "kerberos", "active_directory") %}
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
security_service_type: {{s}}
|
|
||||||
dns_ip: "fake_dns_ip"
|
|
||||||
server: "fake-server"
|
|
||||||
domain: "fake_domain"
|
|
||||||
user: "fake_user"
|
|
||||||
password: "fake_password"
|
|
||||||
name: "fake_name"
|
|
||||||
description: "fake_description"
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
ManilaShares.attach_security_service_to_share_network:
|
|
||||||
{% for s in ("ldap", "kerberos", "active_directory") %}
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
security_service_type: {{s}}
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
share_networks: -1
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
ManilaShares.set_and_delete_metadata:
|
|
||||||
-
|
|
||||||
args:
|
|
||||||
sets: 1
|
|
||||||
set_size: 3
|
|
||||||
delete_size: 3
|
|
||||||
key_min_length: 1
|
|
||||||
key_max_length: 256
|
|
||||||
value_min_length: 1
|
|
||||||
value_max_length: 1024
|
|
||||||
runner:
|
|
||||||
type: "constant"
|
|
||||||
times: 10
|
|
||||||
concurrency: 10
|
|
||||||
context:
|
|
||||||
quotas:
|
|
||||||
manila:
|
|
||||||
shares: -1
|
|
||||||
gigabytes: -1
|
|
||||||
share_networks: -1
|
|
||||||
users:
|
|
||||||
tenants: 1
|
|
||||||
users_per_tenant: 1
|
|
||||||
manila_share_networks:
|
|
||||||
use_share_networks: True
|
|
||||||
manila_shares:
|
|
||||||
shares_per_tenant: 1
|
|
||||||
share_proto: "NFS"
|
|
||||||
size: 1
|
|
||||||
share_type: "dhss_true"
|
|
||||||
sla:
|
|
||||||
failure_rate:
|
|
||||||
max: 0
|
|
Loading…
Reference in New Issue
Block a user