templatize Manila GlusterFS jobs

These jobs are almost identical, so we can cut back
on redundancy by merging them into a template.

Also adding new instances of this template to
have experimental jobs on Xenial. (Once they
prove to be stable, we cut back on variety
and move completely to Xenial.)

Change-Id: I366493c75e07c2414c97781a01769dc052c4bb7e
This commit is contained in:
Csaba Henk 2016-08-02 21:14:01 +05:30
parent d427dd2fba
commit 23e2c795ec
3 changed files with 42 additions and 77 deletions

View File

@ -263,9 +263,9 @@
publishers: publishers:
- console-log - console-log
- job: - job-template:
name: gate-manila-tempest-dsvm-glusterfs name: gate-manila-tempest-dsvm-glusterfs-{variant}-{node}{suffix}
node: ubuntu-trusty node: '{node}'
wrappers: wrappers:
- build-timeout: - build-timeout:
@ -273,6 +273,8 @@
- timestamps - timestamps
builders: builders:
- print-template-name:
template-name: "{template-name}"
- link-logs - link-logs
- net-info - net-info
- devstack-checkout - devstack-checkout
@ -281,7 +283,8 @@
export PYTHONUNBUFFERED=true export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_NEUTRON=1 export DEVSTACK_GATE_NEUTRON=1
export ENABLED_SERVICES=tempest export ENABLED_SERVICES=tempest
export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-glusterfs $PROJECTS" export PROJECTS="openstack/python-manilaclient $PROJECTS"
export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS"
# Enable manila devstack plugin. Provided repo should be # Enable manila devstack plugin. Provided repo should be
# cloned by zuul before devstack run and below provided link # cloned by zuul before devstack run and below provided link
@ -294,79 +297,22 @@
# Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila.
export DEVSTACK_LOCAL_CONFIG+=$'\n'"CONFIGURE_GLUSTERFS_MANILA=True" export DEVSTACK_LOCAL_CONFIG+=$'\n'"CONFIGURE_GLUSTERFS_MANILA=True"
# Configure devstack-plugin-glusterfs to use glusterfs driver. # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant.
export DEVSTACK_LOCAL_CONFIG+=$'\n'"GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs" export DEVSTACK_LOCAL_CONFIG+=$'\n'"GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-{variant}"
# Keep localrc to be able to set some vars in pre_test_hook # Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1 export KEEP_LOCALRC=1
function pre_test_hook { function pre_test_hook {{
# Configure devstack to run manila installation without handling of share servers # Configure devstack to run manila installation without handling of share servers
source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh
} }}
export -f pre_test_hook export -f pre_test_hook
function post_test_hook { function post_test_hook {{
# Configure and run tempest on singlebackend manila installation # Configure and run tempest on singlebackend manila installation
source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend
} }}
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
publishers:
- devstack-logs
- console-log
- job:
name: gate-manila-tempest-dsvm-glusterfs-native
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 80
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_NEUTRON=1
export ENABLED_SERVICES=tempest
export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-glusterfs $PROJECTS"
# Enable manila devstack plugin. Provided repo should be
# cloned by zuul before devstack run and below provided link
# should not be used.
export DEVSTACK_LOCAL_CONFIG="enable_plugin manila git://git.openstack.org/openstack/manila"
# Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS.
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-glusterfs git://git.openstack.org/stackforge/devstack-plugin-glusterfs"
# Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila.
export DEVSTACK_LOCAL_CONFIG+=$'\n'"CONFIGURE_GLUSTERFS_MANILA=True"
# Configure devstack-plugin-glusterfs to use glusterfs-native driver.
export DEVSTACK_LOCAL_CONFIG+=$'\n'"GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-native"
# Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1
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
}
export -f post_test_hook export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh

View File

@ -4038,6 +4038,22 @@
back_end_type: 'multibackend' back_end_type: 'multibackend'
driver: 'generic' driver: 'generic'
test_type: 'scenario' test_type: 'scenario'
- 'gate-manila-tempest-dsvm-glusterfs-{variant}-{node}{suffix}':
node: 'ubuntu-trusty'
suffix: '-nv'
variant: 'nfs'
- 'gate-manila-tempest-dsvm-glusterfs-{variant}-{node}{suffix}':
node: 'ubuntu-trusty'
suffix: '-nv'
variant: 'native'
- 'gate-manila-tempest-dsvm-glusterfs-{variant}-{node}{suffix}':
node: 'ubuntu-xenial'
suffix: '-nv'
variant: 'nfs'
- 'gate-manila-tempest-dsvm-glusterfs-{variant}-{node}{suffix}':
node: 'ubuntu-xenial'
suffix: '-nv'
variant: 'native'
- project: - project:
name: manila-image-elements name: manila-image-elements

View File

@ -2491,12 +2491,6 @@ jobs:
- name: gate-manila-tempest-dsvm-scenario - name: gate-manila-tempest-dsvm-scenario
voting: false voting: false
- name: gate-manila-tempest-dsvm-glusterfs
voting: false
- name: gate-manila-tempest-dsvm-glusterfs-native
voting: false
- name: gate-manila-tempest-dsvm-cephfs-native - name: gate-manila-tempest-dsvm-cephfs-native
branch: ^(?!stable/liberty).*$ branch: ^(?!stable/liberty).*$
voting: false voting: false
@ -6178,10 +6172,15 @@ projects:
check: check:
- gate-devstack-plugin-glusterfs-bashate - gate-devstack-plugin-glusterfs-bashate
- gate-cinder-tempest-dsvm-glusterfs-nv - gate-cinder-tempest-dsvm-glusterfs-nv
- gate-manila-tempest-dsvm-glusterfs - gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-trusty-nv
- gate-manila-tempest-dsvm-glusterfs-native - gate-manila-tempest-dsvm-glusterfs-native-ubuntu-trusty-nv
- gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv
- gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv
gate: gate:
- gate-devstack-plugin-glusterfs-bashate - gate-devstack-plugin-glusterfs-bashate
experimental:
- gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv
- gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv
- name: openstack/devstack-plugin-hdfs - name: openstack/devstack-plugin-hdfs
template: template:
@ -8338,8 +8337,10 @@ projects:
- gate-manila-tempest-dsvm-generic-no-share-servers - gate-manila-tempest-dsvm-generic-no-share-servers
- gate-manila-tempest-dsvm-scenario - gate-manila-tempest-dsvm-scenario
- gate-manila-tempest-dsvm-cephfs-native - gate-manila-tempest-dsvm-cephfs-native
- gate-manila-tempest-dsvm-glusterfs - gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-trusty-nv
- gate-manila-tempest-dsvm-glusterfs-native - gate-manila-tempest-dsvm-glusterfs-native-ubuntu-trusty-nv
- gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv
- gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv
- gate-manila-tempest-dsvm-hdfs - gate-manila-tempest-dsvm-hdfs
- gate-manila-tempest-minimal-dsvm-dummy - gate-manila-tempest-minimal-dsvm-dummy
- gate-manila-tempest-minimal-dsvm-lvm - gate-manila-tempest-minimal-dsvm-lvm
@ -8356,6 +8357,8 @@ projects:
- gate-rally-dsvm-manila-multibackend - gate-rally-dsvm-manila-multibackend
- gate-rally-dsvm-manila-multibackend-no-ss - gate-rally-dsvm-manila-multibackend-no-ss
- gate-manila-tempest-dsvm-postgres-container - gate-manila-tempest-dsvm-postgres-container
- gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv
- gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv
- name: openstack/manila-image-elements - name: openstack/manila-image-elements
template: template: