Merge "Run NetworkConfig if never run previously"

This commit is contained in:
Zuul 2019-07-02 16:47:42 +00:00 committed by Gerrit Code Review
commit fad64a2514

View File

@ -599,11 +599,13 @@ outputs:
# - If the stack_action is CREATE # - If the stack_action is CREATE
# - Or UPDATE is in the network_deployment_actions # - Or UPDATE is in the network_deployment_actions
# - Or the previous run of NetworkConfig failed. # - Or the previous run of NetworkConfig failed.
# - Or it has never run
# This will match the prior behavior of when a Heat # This will match the prior behavior of when a Heat
# SoftwareDeployment was used. # SoftwareDeployment was used.
when: (stack_action == "CREATE") or ("UPDATE" in network_deployment_actions) or when: (stack_action == "CREATE") or ("UPDATE" in network_deployment_actions) or
(os_net_config_returncode_stat.stat.exists and (os_net_config_returncode_stat.stat.exists and
((os_net_config_returncode_slurp.content | b64decode) != 0)) ((os_net_config_returncode_slurp.content | b64decode) != 0)) or
(not os_net_config_returncode_stat.stat.exists)
- name: AllNodesValidationConfig - name: AllNodesValidationConfig
script: all_nodes_validation_script.sh script: all_nodes_validation_script.sh