Merge "neutron-ha-tool: make start action retry"
This commit is contained in:
commit
51748eb269
|
@ -248,7 +248,14 @@ neutron_ha_tool_start() {
|
|||
INSECURE="--insecure"
|
||||
fi
|
||||
|
||||
${OCF_RESKEY_binary} --replicate-dhcp $INSECURE
|
||||
# Remain backwards-compatible with older neutron-ha-tool.py which
|
||||
# don't support --retry.
|
||||
retry=""
|
||||
if ${OCF_RESKEY_binary} --help | grep -q -- --retry; then
|
||||
retry="--retry"
|
||||
fi
|
||||
|
||||
${OCF_RESKEY_binary} --replicate-dhcp $retry $INSECURE
|
||||
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
|
@ -257,7 +264,7 @@ neutron_ha_tool_start() {
|
|||
return $OCF_ERR_GENERIC
|
||||
fi
|
||||
|
||||
${OCF_RESKEY_binary} --l3-agent-migrate --now $INSECURE
|
||||
${OCF_RESKEY_binary} --l3-agent-migrate $retry --now $INSECURE
|
||||
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue