From e1bcecaef2d88d23bb8916dac6406703a9081c75 Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Mon, 11 Dec 2023 16:02:57 +0100 Subject: [PATCH] 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 --- infrared_plugin/roles/tobiko-ir-before-run/defaults/main.yaml | 2 +- infrared_plugin/roles/tobiko-ir-before-run/tasks/main.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/infrared_plugin/roles/tobiko-ir-before-run/defaults/main.yaml b/infrared_plugin/roles/tobiko-ir-before-run/defaults/main.yaml index acef4f916..e0cf3accd 100644 --- a/infrared_plugin/roles/tobiko-ir-before-run/defaults/main.yaml +++ b/infrared_plugin/roles/tobiko-ir-before-run/defaults/main.yaml @@ -1,4 +1,4 @@ --- # OpenStack client credentials -stackrc_file: '{{ ansible_user_dir }}/overcloudrc' +stackrc_file: '~/overcloudrc' diff --git a/infrared_plugin/roles/tobiko-ir-before-run/tasks/main.yaml b/infrared_plugin/roles/tobiko-ir-before-run/tasks/main.yaml index a7bd3a811..62173f372 100644 --- a/infrared_plugin/roles/tobiko-ir-before-run/tasks/main.yaml +++ b/infrared_plugin/roles/tobiko-ir-before-run/tasks/main.yaml @@ -5,6 +5,7 @@ source {{ stackrc_file }} openstack quota set --{{ item.key }} {{ item.value }} $OS_PROJECT_NAME with_dict: "{{ quota | default({}) }}" + delegate_to: "{{ groups.undercloud|first }}" - name: ensure auto ssh key exchange in test host block: