aboutsummaryrefslogtreecommitdiffstats
path: root/extraconfig
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-24 12:57:23 +0000
committerGerrit Code Review <review@openstack.org>2016-11-24 12:57:23 +0000
commitcbe4684432bcc7306296d80f368c6b2c2bacdcef (patch)
tree4d4f52cfb6dfb7bba092dae0c878755c79ecc2dc /extraconfig
parent43b7712bd86764bf5d634d1ff0f2b5f05d55a413 (diff)
parent476b05442817263d90e8c54a9b79cd0a8625862c (diff)
Merge "Run os-net-config before restarting cluster on update"
Diffstat (limited to 'extraconfig')
-rwxr-xr-xextraconfig/tasks/yum_update.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/extraconfig/tasks/yum_update.sh b/extraconfig/tasks/yum_update.sh
index c61f67a1..8a88ee64 100755
--- a/extraconfig/tasks/yum_update.sh
+++ b/extraconfig/tasks/yum_update.sh
@@ -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