Merge "Check to make sure compute service is deployed before scale down" into stable/train
This commit is contained in:
commit
a8eb06cecc
|
@ -1109,12 +1109,15 @@ outputs:
|
||||||
-> {{ nova_compute_service }}.
|
-> {{ nova_compute_service }}.
|
||||||
when:
|
when:
|
||||||
- (nova_compute_service | length) > 1
|
- (nova_compute_service | length) > 1
|
||||||
|
- name: Disable nova services
|
||||||
|
when:
|
||||||
|
- (nova_compute_service | length) == 1
|
||||||
|
block:
|
||||||
- name: Disable nova-compute service
|
- name: Disable nova-compute service
|
||||||
command: openstack compute service set {{ nova_compute_service[0].Host }} nova-compute --disable
|
command: openstack compute service set {{ nova_compute_service[0].Host }} nova-compute --disable
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when:
|
when:
|
||||||
- (nova_compute_service | length) <= 1
|
|
||||||
- not is_additional_cell|bool
|
- not is_additional_cell|bool
|
||||||
- name: Stop nova-compute healthcheck container
|
- name: Stop nova-compute healthcheck container
|
||||||
service:
|
service:
|
||||||
|
@ -1132,8 +1135,6 @@ outputs:
|
||||||
command: openstack compute service delete {{ nova_compute_service[0].ID }}
|
command: openstack compute service delete {{ nova_compute_service[0].ID }}
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when:
|
|
||||||
- (nova_compute_service | length) <= 1
|
|
||||||
fast_forward_upgrade_tasks:
|
fast_forward_upgrade_tasks:
|
||||||
- when:
|
- when:
|
||||||
- step|int == 0
|
- step|int == 0
|
||||||
|
|
Loading…
Reference in New Issue