diff --git a/deployment/undercloud/undercloud-upgrade.yaml b/deployment/undercloud/undercloud-upgrade.yaml index f8e34b3a18..d8e8879cec 100644 --- a/deployment/undercloud/undercloud-upgrade.yaml +++ b/deployment/undercloud/undercloud-upgrade.yaml @@ -81,6 +81,22 @@ outputs: name: '*' state: latest exclude: ansible + - name: Check that os-net-config has configuration + when: step|int == 3 + stat: + path: /etc/os-net-config/config.json + get_attributes: false + get_checksum: false + get_mime: false + register: stat_config_json + - name: take new os-net-config parameters into account now + when: + - step|int == 3 + - stat_config_json.stat.exists + command: os-net-config --no-activate -c /etc/os-net-config/config.json -v --detailed-exit-codes + register: os_net_config_upgrade + failed_when: os_net_config_upgrade.rc not in [0,2] + changed_when: os_net_config_upgrade.rc == 2 # Keepalived was deprecated and the VIPs are now deployed by # os-net-config. # When Keepalived is stopped, it brings down the VIPs which is