aboutsummaryrefslogtreecommitdiff
path: root/xenserver
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2012-04-26 10:57:47 -0700
committerGurucharan Shetty <gshetty@nicira.com>2012-04-27 15:26:56 -0700
commit43d366785410bc7803e4b00ba59f99b7ca8185cc (patch)
tree306861c1cc6116f9036e8f4dc4d63ceebbcc8119 /xenserver
parentb5a36e3878937a489458f7a0ff42769e826ae88b (diff)
xenserver: Update Open vSwitch post upgrade instructions.
Currently, when we upgrade the userspace rpm for XenServer, we print a message asking users to reboot the hypervisor. This is not needed. The reboot of hypervisor is needed when we upgrade the rpm containing the kernel module. This reboot can sometimes be avoided by running a "service openvswitch force-reload-kmod". Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'xenserver')
-rw-r--r--xenserver/openvswitch-xen.spec.in21
1 files changed, 13 insertions, 8 deletions
diff --git a/xenserver/openvswitch-xen.spec.in b/xenserver/openvswitch-xen.spec.in
index 572d547f..1e8d764f 100644
--- a/xenserver/openvswitch-xen.spec.in
+++ b/xenserver/openvswitch-xen.spec.in
@@ -291,10 +291,10 @@ done
# Ensure all required services are set to run
for s in openvswitch openvswitch-xapi-update; do
if chkconfig --list $s >/dev/null 2>&1; then
- chkconfig --del $s || printf "Could not remove $s init script."
+ chkconfig --del $s || printf "Could not remove $s init script.\n"
fi
- chkconfig --add $s || printf "Could not add $s init script."
- chkconfig $s on || printf "Could not enable $s init script."
+ chkconfig --add $s || printf "Could not add $s init script.\n"
+ chkconfig $s on || printf "Could not enable $s init script.\n"
done
if [ "$1" = "1" ]; then # $1 = 1 for install
@@ -307,12 +307,8 @@ else # $1 = 2 for upgrade
printf "\nThe server is not configured to run Open vSwitch. To run in\n"
printf "vswitch mode, you must run the following command:\n\n"
printf "\txe-switch-network-backend vswitch"
- else
- printf "\nTo use the new Open vSwitch install, you should reboot the\n"
- printf "server now. Failure to do so may result in incorrect operation."
+ printf "\n\n"
fi
-
- printf "\n\n"
fi
%posttrans %{module_package}
@@ -325,6 +321,15 @@ fi
# be removed.
depmod %{xen_version}
+mode=$(cat /etc/xensource/network.conf)
+if [ "$mode" = "vswitch" ] || [ "$mode" = "openvswitch" ]; then
+ printf "\nTo use the newly installed Open vSwitch kernel module, you\n"
+ printf "will either have to reboot the hypervisor or follow any\n"
+ printf "workarounds provided by your administration guide. Failure to do\n"
+ printf "so may result in incorrect operation."
+ printf "\n\n"
+fi
+
%preun
if [ "$1" = "0" ]; then # $1 = 0 for uninstall
# Configure system to use bridge