Run os-net-config before restarting cluster on update
Running os-net-config before restarting the cluster prevents changes to the interface files caused by changes to implementation from bouncing network interfaces after the cluster has restarted. Closes-Bug: #1644138 Change-Id: I65fb104465ff3d37ddc791634302994334136014
This commit is contained in:
parent
8659269164
commit
476b054428
@ -103,6 +103,17 @@ return_code=$?
|
|||||||
echo "$result"
|
echo "$result"
|
||||||
echo "yum return code: $return_code"
|
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
|
if [[ "$pacemaker_status" == "active" ]] ; then
|
||||||
echo "Starting cluster node"
|
echo "Starting cluster node"
|
||||||
pcs cluster start
|
pcs cluster start
|
||||||
|
Loading…
Reference in New Issue
Block a user