2015-12-07 20:42:11 +01:00
|
|
|
- job-template:
|
|
|
|
name: 'gate-manila-tempest-dsvm-{description}'
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-02-03 18:41:53 +02:00
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:08:54 +01:00
|
|
|
timeout: 80
|
2015-02-03 18:41:53 +02:00
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
2015-12-07 20:42:11 +01:00
|
|
|
- print-template-name:
|
|
|
|
template-name: "{template-name}"
|
2015-02-03 18:41:53 +02:00
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
2015-12-07 20:42:11 +01:00
|
|
|
export DEVSTACK_GATE_POSTGRES={postgres_enabled}
|
2015-12-16 14:12:58 +02:00
|
|
|
export PROJECTS="openstack/python-manilaclient $PROJECTS"
|
2015-02-24 13:47:03 +02:00
|
|
|
export ENABLED_SERVICES=tempest
|
2015-06-18 17:15:16 +03:00
|
|
|
|
2015-12-08 11:19:49 +01:00
|
|
|
# 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"
|
2015-02-03 18:41:53 +02:00
|
|
|
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
|
|
export KEEP_LOCALRC=1
|
|
|
|
|
2015-12-07 20:42:11 +01:00
|
|
|
function pre_test_hook {{
|
2015-12-30 13:32:41 +02:00
|
|
|
# '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'.
|
2015-12-08 19:06:41 +02:00
|
|
|
source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
|
|
|
|
{dhss} \
|
|
|
|
{driver} \
|
|
|
|
{back_end_type}
|
2015-12-07 20:42:11 +01:00
|
|
|
}}
|
2015-02-03 18:41:53 +02:00
|
|
|
export -f pre_test_hook
|
|
|
|
|
2015-12-07 20:42:11 +01:00
|
|
|
function post_test_hook {{
|
2015-12-30 13:32:41 +02:00
|
|
|
# '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.
|
2015-12-08 19:06:41 +02:00
|
|
|
source $BASE/new/manila/contrib/ci/post_test_hook.sh \
|
|
|
|
{back_end_type} \
|
|
|
|
{driver} \
|
|
|
|
{test_type} \
|
|
|
|
{postgres_enabled}
|
2015-12-07 20:42:11 +01:00
|
|
|
}}
|
2015-02-03 18:41:53 +02:00
|
|
|
export -f post_test_hook
|
|
|
|
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
2016-02-28 13:39:43 -05:00
|
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- devstack-logs
|
|
|
|
- console-log
|
|
|
|
|
|
|
|
- job:
|
|
|
|
name: 'gate-manila-tempest-minimal-dsvm-lvm'
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2016-02-28 13:39:43 -05:00
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 80
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=0
|
|
|
|
export DEVSTACK_GATE_POSTGRES=0
|
|
|
|
export PROJECTS="openstack/python-manilaclient $PROJECTS"
|
|
|
|
export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
# 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
|
2015-02-03 18:41:53 +02:00
|
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- devstack-logs
|
|
|
|
- console-log
|
2016-04-05 19:38:18 +03:00
|
|
|
|
|
|
|
- job-template:
|
|
|
|
name: '{pipeline}-grenade-dsvm-manila'
|
|
|
|
node: ubuntu-trusty
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 180
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- print-template-name:
|
|
|
|
template-name: "{template-name}"
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PROJECTS="openstack-dev/grenade $PROJECTS"
|
|
|
|
export PROJECTS="openstack/python-manilaclient $PROJECTS"
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export DEVSTACK_GATE_GRENADE=pullup
|
2016-04-14 12:50:30 +03:00
|
|
|
export ENABLED_SERVICES=tempest
|
2016-04-05 19:38:18 +03:00
|
|
|
|
2016-04-14 12:50:30 +03:00
|
|
|
# Enable manila grenade plugin. Provided repo should be
|
2016-04-05 19:38:18 +03:00
|
|
|
# cloned by zuul before devstack run and below provided
|
2016-04-14 12:50:30 +03:00
|
|
|
# link should not be used.
|
2016-04-05 19:38:18 +03:00
|
|
|
export GRENADE_PLUGINRC="enable_grenade_plugin manila git://git.openstack.org/openstack/manila"
|
|
|
|
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
|
|
export KEEP_LOCALRC=1
|
|
|
|
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
2015-02-03 18:41:53 +02:00
|
|
|
|
2014-11-13 10:58:24 +02:00
|
|
|
- job:
|
2015-07-13 20:46:07 +02:00
|
|
|
name: gate-manilaclient-dsvm-neutron-functional
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2014-11-13 10:58:24 +02:00
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:08:54 +01:00
|
|
|
timeout: 80
|
2014-11-13 10:58:24 +02:00
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
2015-10-13 18:27:23 -07:00
|
|
|
export PROJECTS="openstack/python-manilaclient $PROJECTS"
|
2015-06-18 17:15:16 +03:00
|
|
|
|
2015-12-08 11:19:49 +01:00
|
|
|
# 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"
|
2014-11-13 10:58:24 +02:00
|
|
|
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
|
|
export KEEP_LOCALRC=1
|
|
|
|
|
|
|
|
function pre_test_hook {
|
|
|
|
source $BASE/new/python-manilaclient/contrib/ci/pre_test_hook.sh
|
|
|
|
}
|
|
|
|
export -f pre_test_hook
|
|
|
|
|
|
|
|
function post_test_hook {
|
|
|
|
# Configure and run functional tests
|
|
|
|
source $BASE/new/python-manilaclient/contrib/ci/post_test_hook.sh
|
|
|
|
}
|
|
|
|
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:
|
2014-11-17 15:40:47 +02:00
|
|
|
- test-results
|
2014-11-13 10:58:24 +02:00
|
|
|
- devstack-logs
|
|
|
|
- console-log
|
2015-03-13 11:08:26 +01:00
|
|
|
|
2015-06-17 15:01:01 +03:00
|
|
|
|
|
|
|
- job-template:
|
2015-12-10 12:55:59 +02:00
|
|
|
name: 'gate-manila-publishimage-{image-name}'
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-06-17 15:01:01 +03:00
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- gerrit-git-prep
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
2015-12-10 12:55:59 +02:00
|
|
|
./tools/gate/build-images {image-name}
|
2016-03-03 16:52:57 -05:00
|
|
|
BRANCH=$ZUUL_REFNAME
|
|
|
|
BRANCH_PATH=`echo $BRANCH | tr / -`
|
|
|
|
mkdir -p images
|
|
|
|
mv manila-service-image.qcow2 images/manila-service-image-$BRANCH_PATH.qcow2
|
2015-06-17 15:01:01 +03:00
|
|
|
|
|
|
|
publishers:
|
|
|
|
- scp:
|
|
|
|
site: 'tarballs.openstack.org'
|
|
|
|
files:
|
2015-12-10 12:55:59 +02:00
|
|
|
- source: 'images/*'
|
|
|
|
target: 'tarballs/manila-image-elements/images/'
|
2015-06-17 15:01:01 +03:00
|
|
|
keep-hierarchy: false
|
|
|
|
copy-after-failure: false
|
|
|
|
- console-log
|
2015-07-22 08:31:02 +02:00
|
|
|
|
2015-12-10 12:55:59 +02:00
|
|
|
- job-template:
|
|
|
|
name: 'gate-manila-buildimage-{image-name}'
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-12-10 12:55:59 +02:00
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- gerrit-git-prep
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
./tools/gate/build-images {image-name}
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- console-log
|
2015-07-22 08:31:02 +02:00
|
|
|
|
2015-08-11 16:05:31 +05:30
|
|
|
- job:
|
2015-08-18 13:37:53 +05:30
|
|
|
name: gate-manila-tempest-dsvm-glusterfs
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-08-11 16:05:31 +05:30
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:08:54 +01:00
|
|
|
timeout: 80
|
2015-08-11 16:05:31 +05:30
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export ENABLED_SERVICES=tempest
|
2015-12-16 14:12:58 +02:00
|
|
|
export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-glusterfs $PROJECTS"
|
2015-08-11 16:05:31 +05:30
|
|
|
|
2015-12-08 11:19:49 +01:00
|
|
|
# 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"
|
2015-08-11 16:05:31 +05:30
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2015-08-18 13:37:53 +05:30
|
|
|
# Configure devstack-plugin-glusterfs to use glusterfs driver.
|
2015-08-11 16:05:31 +05:30
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs"
|
|
|
|
|
|
|
|
# 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
|
2015-08-18 13:37:53 +05:30
|
|
|
source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh
|
2015-08-11 16:05:31 +05:30
|
|
|
}
|
|
|
|
export -f pre_test_hook
|
|
|
|
|
|
|
|
function post_test_hook {
|
|
|
|
# Configure and run tempest on singlebackend manila installation
|
2015-08-18 13:37:53 +05:30
|
|
|
source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend
|
2015-08-11 16:05:31 +05:30
|
|
|
}
|
|
|
|
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:
|
2015-08-18 13:37:53 +05:30
|
|
|
name: gate-manila-tempest-dsvm-glusterfs-native
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-08-11 16:05:31 +05:30
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:08:54 +01:00
|
|
|
timeout: 80
|
2015-08-11 16:05:31 +05:30
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export ENABLED_SERVICES=tempest
|
2015-12-16 14:12:58 +02:00
|
|
|
export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-glusterfs $PROJECTS"
|
2015-08-11 16:05:31 +05:30
|
|
|
|
2015-12-08 11:19:49 +01:00
|
|
|
# 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"
|
2015-08-11 16:05:31 +05:30
|
|
|
|
|
|
|
# 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
|
2015-08-18 13:37:53 +05:30
|
|
|
source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh
|
2015-08-11 16:05:31 +05:30
|
|
|
}
|
|
|
|
export -f pre_test_hook
|
|
|
|
|
|
|
|
function post_test_hook {
|
|
|
|
# Configure and run tempest on singlebackend manila installation
|
2015-08-18 13:37:53 +05:30
|
|
|
source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend
|
2015-08-11 16:05:31 +05:30
|
|
|
}
|
|
|
|
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
|
2015-08-14 15:13:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
- job:
|
2015-08-26 16:23:52 +08:00
|
|
|
name: gate-manila-tempest-dsvm-hdfs
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-08-14 15:13:50 +08:00
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:08:54 +01:00
|
|
|
timeout: 80
|
2015-08-14 15:13:50 +08:00
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export ENABLED_SERVICES=tempest
|
2015-12-16 14:12:58 +02:00
|
|
|
export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-hdfs $PROJECTS"
|
2015-08-14 15:13:50 +08:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2015-12-23 15:37:28 +05:30
|
|
|
# Enable devstack-plugin-hdfs plugin, to install and configure HDFS.
|
2015-08-14 15:13:50 +08:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-hdfs git://git.openstack.org/openstack/devstack-plugin-hdfs"
|
|
|
|
|
|
|
|
# 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
|
2015-08-26 16:23:52 +08:00
|
|
|
source $BASE/new/devstack-plugin-hdfs/manila/pre_test_hook.sh
|
2015-08-14 15:13:50 +08:00
|
|
|
}
|
|
|
|
export -f pre_test_hook
|
|
|
|
|
|
|
|
function post_test_hook {
|
2015-12-23 15:37:28 +05:30
|
|
|
# Configure and run tempest on multi-backend manila installation
|
2015-08-26 16:23:52 +08:00
|
|
|
source $BASE/new/devstack-plugin-hdfs/manila/post_test_hook.sh
|
2015-08-14 15:13:50 +08:00
|
|
|
}
|
|
|
|
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
|
2015-12-18 13:48:49 +05:30
|
|
|
|
|
|
|
- job:
|
|
|
|
name: gate-manila-tempest-dsvm-cephfs-native
|
2016-03-14 12:58:43 -07:00
|
|
|
node: ubuntu-trusty
|
2015-12-18 13:48:49 +05:30
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:08:54 +01:00
|
|
|
timeout: 80
|
2015-12-18 13:48:49 +05:30
|
|
|
- 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-ceph $PROJECTS"
|
|
|
|
|
|
|
|
# Enable Manila's 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-ceph plugin, to install and configure
|
|
|
|
# CephFS.
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph"
|
|
|
|
|
|
|
|
|
|
|
|
# Enable CephFS as the backend for Manila.
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_CEPH_MANILA=True"
|
|
|
|
|
|
|
|
# Disable Ceph as the storage backend for Nova.
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_CEPH_NOVA=False"
|
|
|
|
|
|
|
|
# Disable Ceph as the storage backend for Glance.
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_CEPH_GLANCE=False"
|
|
|
|
|
|
|
|
# Disable Ceph as the storage backend for Cinder.
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_CEPH_CINDER=False"
|
|
|
|
|
|
|
|
# Disable Ceph as the storage backend for Cinder backup.
|
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_CEPH_C_BAK=False"
|
|
|
|
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
|
|
export KEEP_LOCALRC=1
|
|
|
|
|
|
|
|
function pre_test_hook {
|
|
|
|
# Configure Manila with a CephFSNative driver backend.
|
|
|
|
# Refer job-template's pre_test_hook for more details on the
|
|
|
|
# arguments.
|
|
|
|
source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
|
|
|
|
false cephfsnative singlebackend
|
|
|
|
}
|
|
|
|
export -f pre_test_hook
|
|
|
|
|
|
|
|
function post_test_hook {
|
|
|
|
# Configure and run Tempest API tests on Manila with a
|
|
|
|
# CephFSNative driver backend.
|
|
|
|
# Refer job-template's post_test_hook for more details on the
|
|
|
|
# arguments.
|
|
|
|
source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
|
|
|
|
singlebackend cephfsnative 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
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- devstack-logs
|
|
|
|
- console-log
|