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
This commit is contained in:
parent
40a1c7669a
commit
93f35eec14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user