From 1bffbf0a7abe12563eee6583eae3132c9e81ceef Mon Sep 17 00:00:00 2001 From: vponomaryov Date: Sat, 20 Dec 2014 13:22:33 +0200 Subject: [PATCH] Increase quotas and number of threads for tempest Increase quotas for Cinder (Generic driver case) and Manila. Increase number of threads for tempest run to simulate concurrency and have test run in shorter time slot. Change-Id: Ic7473c94eeb2b45533c028352b56e4027cd7eead --- contrib/ci/post_test_hook.sh | 2 +- contrib/devstack/extras.d/70-manila.sh | 1 + contrib/devstack/lib/manila | 13 +++++++++++++ manila/quota.py | 4 ++-- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/contrib/ci/post_test_hook.sh b/contrib/ci/post_test_hook.sh index f9b5cb350f..7d5526f9ac 100755 --- a/contrib/ci/post_test_hook.sh +++ b/contrib/ci/post_test_hook.sh @@ -31,7 +31,7 @@ fi set +o errexit cd $BASE/new/tempest -export TEMPEST_CONCURRENCY=6 +export TEMPEST_CONCURRENCY=12 export MANILA_TESTS='tempest.cli.*manila*' if [[ ! "$ZUUL_PROJECT" =~ python-manilaclient ]]; then MANILA_TESTS+=' tempest.api.share*'; diff --git a/contrib/devstack/extras.d/70-manila.sh b/contrib/devstack/extras.d/70-manila.sh index c4c54b3b33..698397f3f6 100644 --- a/contrib/devstack/extras.d/70-manila.sh +++ b/contrib/devstack/extras.d/70-manila.sh @@ -7,6 +7,7 @@ if is_service_enabled manila; then elif [[ "$1" == "stack" && "$2" == "install" ]]; then echo_summary "Installing Manila" install_manila + set_cinder_quotas elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then echo_summary "Configuring Manila" configure_manila diff --git a/contrib/devstack/lib/manila b/contrib/devstack/lib/manila index 778ae8597a..4381e08faf 100644 --- a/contrib/devstack/lib/manila +++ b/contrib/devstack/lib/manila @@ -162,6 +162,19 @@ function set_config_opts { fi } +function set_cinder_quotas { + # Update Cinder configuration to make sure default quotas are enough + # for Manila using Generic driver with parallel testing. + if is_service_enabled cinder; then + if [[ ! "$CINDER_CONF" ]]; then + CINDER_CONF=/etc/cinder/cinder.conf + fi + iniset $CINDER_CONF DEFAULT quota_volumes 50 + iniset $CINDER_CONF DEFAULT quota_snapshots 50 + iniset $CINDER_CONF DEFAULT quota_gigabytes 1000 + fi +} + # configure_manila - Set config files, create data dirs, etc function configure_manila { setup_develop $MANILA_DIR diff --git a/manila/quota.py b/manila/quota.py index ba4278251f..565f0f4127 100644 --- a/manila/quota.py +++ b/manila/quota.py @@ -32,10 +32,10 @@ LOG = logging.getLogger(__name__) quota_opts = [ cfg.IntOpt('quota_shares', - default=10, + default=50, help='Number of shares allowed per project.'), cfg.IntOpt('quota_snapshots', - default=10, + default=50, help='Number of share snapshots allowed per project.'), cfg.IntOpt('quota_gigabytes', default=1000,