From 93f35eec148b2eabc12869b9cf523d98e1ea49e2 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Tue, 31 Mar 2020 01:07:41 +0000 Subject: [PATCH] Reduce overhead of stack show loop A stack show of the overcloud is an expensive operation because resolving outputs results in a nested stack traversal. This change adds --no-resolve-outputs to the stack show loop which is waiting for the stack to no longer be IN_PROGRESS. On my undercloud this reduces stack show time from 14 seconds to 3 seconds. Since polling load is lower now, the polling period is changed to a shorter 10 seconds. Change-Id: I34dcf67b36d802f9ccfb65741012e0ed32a15077 --- tripleo_ansible/playbooks/cli-deploy-deployment-plan.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tripleo_ansible/playbooks/cli-deploy-deployment-plan.yaml b/tripleo_ansible/playbooks/cli-deploy-deployment-plan.yaml index fc40c04e9..d1dea70b8 100644 --- a/tripleo_ansible/playbooks/cli-deploy-deployment-plan.yaml +++ b/tripleo_ansible/playbooks/cli-deploy-deployment-plan.yaml @@ -88,8 +88,8 @@ - name: Wait for stack status command: | - openstack --os-cloud undercloud stack show "{{ container }}" -c stack_status + openstack --os-cloud undercloud stack show --no-resolve-outputs "{{ container }}" -c stack_status register: check_status until: "'IN_PROGRESS' not in check_status.stdout" - retries: "{{ (timeout_mins|int * 60 / 15)|int }}" - delay: 15 + retries: "{{ (timeout_mins|int * 60 / 10)|int }}" + delay: 10