Merge "Don't disable compute cell in scale down tasks for additional cells"

This commit is contained in:
Zuul 2020-01-16 23:14:48 +00:00 committed by Gerrit Code Review
commit d639b51c0b
1 changed files with 4 additions and 0 deletions

View File

@ -1083,6 +1083,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 }}"
@ -1105,6 +1108,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