Skip to content

Commit f49f9a2

Browse files
committed
Fix quota set to target admin project
PR #1412 added a quota increase for pre-adoption Ironic test instances, but targeted project 'default' instead of 'admin'. The OS_CLOUD=overcloud authenticates as project admin (clouds.yaml: project_name: admin), so quota set should target admin to match the project instances are created under. Since adoption migrates the TripleO DB, this quota carries over to the adopted cloud, providing headroom for post-adoption instance creation as well. Related-Bug: #1412 Signed-off-by: Abhishek Bongale <abhishekbongale@outlook.com>
1 parent 46194f4 commit f49f9a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/roles/development_environment/files/pre_launch_ironic.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fi
134134

135135
# Ensure quota has headroom for pre-adoption and post-adoption test instances
136136
CURRENT_QUOTA=$(${BASH_ALIASES[openstack]} quota show -c instances -f value)
137-
${BASH_ALIASES[openstack]} quota set --instances $((CURRENT_QUOTA + 2)) default
137+
${BASH_ALIASES[openstack]} quota set --instances $((CURRENT_QUOTA + 2)) admin
138138

139139
# Create test instance on baremetal
140140
if [[ "${PRE_LAUNCH_IRONIC_CREATE_INSTANCE,,}" != "false" ]]; then

0 commit comments

Comments
 (0)