Skip to content

Commit 4b4dd56

Browse files
abhibongaleclaude
andcommitted
Fix quota increase to target cloud
Quota increase from PR #1412 was applied to the pre-adoption TripleO cloud via SSH, but post-adoption instance creation happens on the new adopted OpenShift-based cloud via oc exec. Since these are separate deployments with independent quotas, the adopted cloud still has default quota of 10, causing HTTP 403 errors when creating test-baremetal-post-adoption instance. Add quota increase in nova_verify.yaml targeting the adopted cloud (oc exec openstackclient) immediately before instance creation, ensuring quota headroom exists in the correct environment. Related-Bug: #1412 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Abhishek Bongale <abhishekbongale@outlook.com>
1 parent 5d24308 commit 4b4dd56

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tests/roles/dataplane_adoption/tasks/nova_verify.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@
5454
retries: 60
5555
delay: "{{ dataplane_retry_delay }}"
5656

57+
- name: Increase instance quota for post-adoption Ironic test
58+
when:
59+
- prelaunch_test_instance|bool
60+
- "'pre_launch_ironic.bash' in prelaunch_test_instance_scripts"
61+
- ironic_post_adoption_create_instance|bool
62+
ansible.builtin.shell: |
63+
{{ shell_header }}
64+
{{ oc_header }}
65+
alias openstack="oc exec -t openstackclient -- openstack"
66+
67+
# Get current quota on adopted cloud
68+
CURRENT_QUOTA=$(${BASH_ALIASES[openstack]} quota show admin -f json | jq -r '.[] | select(.Resource == "instances") | .Limit')
69+
70+
# Increase quota to accommodate post-adoption test instance
71+
${BASH_ALIASES[openstack]} quota set --instances $((CURRENT_QUOTA + 2)) admin
72+
73+
# Verify quota was increased
74+
NEW_QUOTA=$(${BASH_ALIASES[openstack]} quota show admin -f json | jq -r '.[] | select(.Resource == "instances") | .Limit')
75+
echo "Quota increased from ${CURRENT_QUOTA} to ${NEW_QUOTA}"
76+
5777
- name: Provision new instance on ironic
5878
when:
5979
- prelaunch_test_instance|bool

0 commit comments

Comments
 (0)