Merge "scale: fixes for compute scale down" into stable/train

This commit is contained in:
Zuul 2019-12-19 09:59:04 +00:00 committed by Gerrit Code Review
commit 359c4963da
2 changed files with 8 additions and 4 deletions

View File

@ -1510,7 +1510,11 @@ outputs:
- facts
- hosts: DEPLOY_TARGET_HOST
name: Scaling
gather_facts: {{ '"{{' }} gather_facts | default(false) {{ '}}"' }}
# NOTE(cloudnull): This is set to true explicitly so that we have up-to-date facts
# on all DEPLOY_TARGET_HOST when performing a scaling operation.
# Without up-to-date facts, we're creating a potential failure
# scenario.
gather_facts: true
any_errors_fatal: yes
become: false
vars:
@ -1529,7 +1533,7 @@ outputs:
# If a task is allowed to fail, it needs to be configured at
# the task definition level but not here.
- include_tasks: scale_steps_tasks.yaml
with_sequence: start=0 end={{scale_steps_max}}
with_sequence: start=1 end={{scale_steps_max}}
loop_control:
loop_var: step
tags: always

View File

@ -1024,7 +1024,7 @@ outputs:
delegate_to: localhost
check_mode: no
when:
- (nova_compute_service | length) < 1
- (nova_compute_service | length) <= 1
- name: Stop nova-compute healthcheck container
service:
name: tripleo_nova_compute_healthcheck
@ -1042,7 +1042,7 @@ outputs:
delegate_to: localhost
check_mode: no
when:
- (nova_compute_service | length) < 1
- (nova_compute_service | length) <= 1
fast_forward_upgrade_tasks:
- when:
- step|int == 0