Run openstack command to apply quotas from the undercloud

Without this patch, the openstack commands are executed from the
tester_node, which is not necessarily the undercloud node.

Change-Id: I80ce48f416f474f24fe1a1b12c0883d58d3ac1d0
This commit is contained in:
Eduardo Olivares 2023-12-11 16:02:57 +01:00
parent 683a4299f7
commit e1bcecaef2
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
--- ---
# OpenStack client credentials # OpenStack client credentials
stackrc_file: '{{ ansible_user_dir }}/overcloudrc' stackrc_file: '~/overcloudrc'

View File

@ -5,6 +5,7 @@
source {{ stackrc_file }} source {{ stackrc_file }}
openstack quota set --{{ item.key }} {{ item.value }} $OS_PROJECT_NAME openstack quota set --{{ item.key }} {{ item.value }} $OS_PROJECT_NAME
with_dict: "{{ quota | default({}) }}" with_dict: "{{ quota | default({}) }}"
delegate_to: "{{ groups.undercloud|first }}"
- name: ensure auto ssh key exchange in test host - name: ensure auto ssh key exchange in test host
block: block: