Disable nova quota for dsvm functional test
Parallel execution of tacker functional test ends up
creating lots of VMs and eventually fails hitting the
default max instance of 10. This fix disables quota for
tacker functional test suite. However gate VMs still has
upper constraint on resources like 8GB max limit. To avoid
tripping the actual gate VM resource limit reduce concurrency
to a lower number (2).
Change-Id: I3fe8c012b85554fa21b5b4b64378d68e3d979cc2
Closes-Bug: #1572420
(cherry picked from commit d9a9892c87
)
This commit is contained in:
parent
f53a8c4c5a
commit
0d1354f85f
|
@ -17,6 +17,7 @@
|
|||
set -xe
|
||||
|
||||
TACKER_DIR="$BASE/new/tacker"
|
||||
DEVSTACK_DIR="$BASE/new/devstack"
|
||||
SCRIPTS_DIR="/usr/os-testr-env/bin/"
|
||||
|
||||
venv=${1:-"dsvm-functional"}
|
||||
|
@ -52,12 +53,19 @@ function generate_testr_results {
|
|||
fi
|
||||
}
|
||||
|
||||
function fixup_nova_quota {
|
||||
echo "Disable nova compute instance & core quota"
|
||||
source $DEVSTACK_DIR/openrc admin admin
|
||||
nova quota-class-update --instances -1 --cores -1 default
|
||||
}
|
||||
|
||||
if [[ "$venv" == dsvm-functional* ]]
|
||||
then
|
||||
owner=stack
|
||||
sudo_env=
|
||||
log_dir="/tmp/${venv}-logs"
|
||||
|
||||
fixup_nova_quota
|
||||
fi
|
||||
|
||||
# Set owner permissions according to job's requirements.
|
||||
|
|
Loading…
Reference in New Issue