Fix of using concurrency for tempest in manila job

tox's venv takes only one argument, 'concurrency' was second
and wasn't consider, so tests were running in 8 parallel threads,
because 8 processors were available.
It caused fail of whole test suites due to absense of resources
for creation of volumes.
Changed concurrency to 2 (two), as guaranteed variant without jumping out
from resource pool and changed size of volume groups to make it possible
create more volumes.

Change-Id: Ia870373687988aec702c97f95047d4ac8903bb66
This commit is contained in:
vponomaryov 2014-03-12 09:14:34 +02:00
parent ec9d70408b
commit 7d76a923ae

View File

@ -19,15 +19,15 @@
export PROJECTS="stackforge/python-manilaclient $PROJECTS"
export DEVSTACK_GATE_TEMPEST_ALLOW_TENANT_ISOLATION=1
export DEVSTACK_GATE_NEUTRON=1
export TEMPEST_CONCURRENCY=1
export TEMPEST_CONCURRENCY=2
export KEEP_LOCALRC=1
export MANILA_TESTS='tempest.cli.*manila*'
if [[ ! "$ZUUL_PROJECT" =~ python-manilaclient ]]; then
MANILA_TESTS+=' tempest.api.share*';
fi
echo "API_RATE_LIMIT=False" >> localrc
echo "SHARE_BACKING_FILE_SIZE=12G" >> localrc
echo "VOLUME_BACKING_FILE_SIZE=12G" >> localrc
echo "SHARE_BACKING_FILE_SIZE=30G" >> localrc
echo "VOLUME_BACKING_FILE_SIZE=30G" >> localrc
function pre_test_hook {
# Install manila devstack integration
@ -43,7 +43,7 @@
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 \"$MANILA_TESTS\" -- --concurrency=$TEMPEST_CONCURRENCY
sudo -H -u tempest tox -evenv bash tools/pretty_tox.sh \"$MANILA_TESTS -- --concurrency=$TEMPEST_CONCURRENCY\"
}
export -f post_test_hook