From 9e7a2d38092da6bd3dc2be25f131644ec583a4df Mon Sep 17 00:00:00 2001 From: root Date: Sat, 8 Feb 2014 12:03:04 +0200 Subject: [PATCH] Upgrade manila's devstack-job to tempest-job Now, manila project has job gate-manila-devstack-dsvm that just deploys devstack with manila. This patch enables tempest and its tests to cover manila functionality. Leave it still non-voting. Partially implements bp: tempest-job Change-Id: Ifefa9da00dd55eaae34df11bb25f8c5127dcb7a3 --- .../jenkins_job_builder/config/manila.yaml | 34 +++++++++++++++---- .../openstack_project/files/zuul/layout.yaml | 8 +++-- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml b/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml index 84745ec393..697ddfe137 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml @@ -1,5 +1,5 @@ - job: - name: gate-manila-devstack-dsvm + name: gate-manila-tempest-dsvm-neutron node: devstack-precise wrappers: @@ -14,19 +14,39 @@ #!/bin/bash -xe export PYTHONUNBUFFERED=true export DEVSTACK_GATE_TIMEOUT=60 - export ENABLED_SERVICES=manila,m-api,m-shr,m-sch + export ENABLED_SERVICES=manila,m-api,m-shr,m-sch,tempest export PROJECTS="stackforge/manila $PROJECTS" export PROJECTS="stackforge/python-manilaclient $PROJECTS" + export DEVSTACK_GATE_TEMPEST_ALLOW_TENANT_ISOLATION=1 + export DEVSTACK_GATE_NEUTRON=1 + export TEMPEST_CONCURRENCY=1 + export KEEP_LOCALRC=1 + echo "API_RATE_LIMIT=False" >> localrc + echo "SHARE_BACKING_FILE_SIZE=12G" >> localrc + echo "VOLUME_BACKING_FILE_SIZE=12G" >> localrc function pre_test_hook { - # Install Manila devstack integration - MANILA_BASE=/opt/stack/new/manila/contrib/devstack - DEVSTACK_BASE=/opt/stack/new/devstack - cp ${MANILA_BASE}/lib/* ${DEVSTACK_BASE}/lib - cp ${MANILA_BASE}/extras.d/* ${DEVSTACK_BASE}/extras.d + # Install manila devstack integration + cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack + # Install manila tempest integration + cp -r $BASE/new/manila/contrib/tempest/tempest/* $BASE/new/tempest/tempest + tests_pathes='tempest.cli.*manila*' + if [[ ! "$ZUUL_PROJECT" =~ "*python-manilaclient*" ]]; then + tests_pathes+=' tempest.api.share*'; + fi } export -f pre_test_hook + function post_test_hook { + # let us control if we die or not + set +o errexit + cd $BASE/new/tempest + sudo chown -R tempest:stack $BASE/new/tempest + echo "Running tempest manila test suites" + sudo -H -u tempest tox -evenv bash tools/pretty_tox.sh \"$tests_pathes\" -- --concurrency=$TEMPEST_CONCURRENCY + } + 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 - link-logs diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index e87c7c20a1..ad1b79ff89 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -484,7 +484,7 @@ jobs: voting: false - name: gate-rubick-python33 voting: false - - name: gate-manila-devstack-dsvm + - name: gate-manila-tempest-dsvm-neutron voting: false - name: gate-climate-devstack-dsvm voting: false @@ -3344,12 +3344,12 @@ projects: - gate-manila-pep8 - gate-manila-python26 - gate-manila-python27 - - gate-manila-devstack-dsvm + - gate-manila-tempest-dsvm-neutron gate: - gate-manila-pep8 - gate-manila-python26 - gate-manila-python27 - - gate-manila-devstack-dsvm + - gate-manila-tempest-dsvm-neutron post: - manila-branch-tarball - manila-coverage @@ -4059,10 +4059,12 @@ projects: - gate-python-manilaclient-pep8 - gate-python-manilaclient-python26 - gate-python-manilaclient-python27 + - gate-manila-tempest-dsvm-neutron gate: - gate-python-manilaclient-pep8 - gate-python-manilaclient-python26 - gate-python-manilaclient-python27 + - gate-manila-tempest-dsvm-neutron post: - python-manilaclient-branch-tarball - python-manilaclient-coverage