Merge "Run os-net-config before restarting cluster on update"

This commit is contained in:
Jenkins 2016-11-24 12:57:23 +00:00 committed by Gerrit Code Review
commit cbe4684432
1 changed files with 11 additions and 0 deletions

View File

@ -103,6 +103,17 @@ return_code=$?
echo "$result"
echo "yum return code: $return_code"
# Writes any changes caused by alterations to os-net-config and bounces the
# interfaces *before* restarting the cluster.
os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes
RETVAL=$?
if [[ $RETVAL == 2 ]]; then
echo "os-net-config: interface configuration files updated successfully"
elif [[ $RETVAL != 0 ]]; then
echo "ERROR: os-net-config configuration failed"
exit $RETVAL
fi
if [[ "$pacemaker_status" == "active" ]] ; then
echo "Starting cluster node"
pcs cluster start