Merge "Increase quotas and number of threads for tempest"
This commit is contained in:
commit
7a8ae4af11
@ -31,7 +31,7 @@ fi
|
|||||||
set +o errexit
|
set +o errexit
|
||||||
cd $BASE/new/tempest
|
cd $BASE/new/tempest
|
||||||
|
|
||||||
export TEMPEST_CONCURRENCY=6
|
export TEMPEST_CONCURRENCY=12
|
||||||
export MANILA_TESTS='tempest.cli.*manila*'
|
export MANILA_TESTS='tempest.cli.*manila*'
|
||||||
if [[ ! "$ZUUL_PROJECT" =~ python-manilaclient ]]; then
|
if [[ ! "$ZUUL_PROJECT" =~ python-manilaclient ]]; then
|
||||||
MANILA_TESTS+=' tempest.api.share*';
|
MANILA_TESTS+=' tempest.api.share*';
|
||||||
|
@ -7,6 +7,7 @@ if is_service_enabled manila; then
|
|||||||
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||||
echo_summary "Installing Manila"
|
echo_summary "Installing Manila"
|
||||||
install_manila
|
install_manila
|
||||||
|
set_cinder_quotas
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
echo_summary "Configuring Manila"
|
echo_summary "Configuring Manila"
|
||||||
configure_manila
|
configure_manila
|
||||||
|
@ -162,6 +162,19 @@ function set_config_opts {
|
|||||||
fi
|
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
|
# configure_manila - Set config files, create data dirs, etc
|
||||||
function configure_manila {
|
function configure_manila {
|
||||||
setup_develop $MANILA_DIR
|
setup_develop $MANILA_DIR
|
||||||
|
@ -32,10 +32,10 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
quota_opts = [
|
quota_opts = [
|
||||||
cfg.IntOpt('quota_shares',
|
cfg.IntOpt('quota_shares',
|
||||||
default=10,
|
default=50,
|
||||||
help='Number of shares allowed per project.'),
|
help='Number of shares allowed per project.'),
|
||||||
cfg.IntOpt('quota_snapshots',
|
cfg.IntOpt('quota_snapshots',
|
||||||
default=10,
|
default=50,
|
||||||
help='Number of share snapshots allowed per project.'),
|
help='Number of share snapshots allowed per project.'),
|
||||||
cfg.IntOpt('quota_gigabytes',
|
cfg.IntOpt('quota_gigabytes',
|
||||||
default=1000,
|
default=1000,
|
||||||
|
Loading…
Reference in New Issue
Block a user