Merge "Don't disable compute cell in scale down tasks for additional cells" into stable/train

This commit is contained in:
Zuul 2020-01-20 11:10:03 +00:00 committed by Gerrit Code Review
commit 077627f125
1 changed files with 4 additions and 0 deletions

View File

@ -1089,6 +1089,9 @@ outputs:
delegate_to: localhost
check_mode: no
changed_when: false
- name: is additional Cell?
set_fact:
is_additional_cell: {get_param: NovaAdditionalCell}
- name: Set fact for nova_compute services
set_fact:
nova_compute_service: "{{ nova_compute_service_result.stdout | from_yaml | selectattr('Host', 'match', ansible_fqdn ~ '.*') | list }}"
@ -1111,6 +1114,7 @@ outputs:
check_mode: no
when:
- (nova_compute_service | length) <= 1
- not is_additional_cell|bool
- name: Stop nova-compute healthcheck container
service:
name: tripleo_nova_compute_healthcheck