Run the node evacuation when workload_launch is true.
We need to run the computes evacuation only when we have load to evacuate, if the workload_launch variable is set to false then it doesn't make sense to run this step. Change-Id: I7ac6d34da3a41ca711617c53bb45d5c47b3afaec
This commit is contained in:
parent
b1d6825cfa
commit
431a35fa05
|
@ -4,7 +4,9 @@
|
|||
when: pcs_present
|
||||
|
||||
- name: create compute pre upgrade script for {{ item }}
|
||||
when: compute_present|bool
|
||||
when:
|
||||
- compute_present|bool
|
||||
- workload_launch|bool
|
||||
vars:
|
||||
node_name: "{{ item | reject('none') | join(',') }}"
|
||||
template:
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
tags: ffu_overcloud_system_upgrade
|
||||
|
||||
- name: run the pre upgrade script for the host {{ host }}
|
||||
when: compute_present|bool
|
||||
when:
|
||||
- compute_present|bool
|
||||
- workload_launch|bool
|
||||
shell: |
|
||||
set -o pipefail
|
||||
./{{ host }}_upgrade_pre.sh 2>&1 {{ timestamper_cmd }} >> {{ host }}_upgrade_pre.log
|
||||
|
|
Loading…
Reference in New Issue