From: Ben Pfaff Date: Mon, 14 Mar 2011 21:14:34 +0000 (-0700) Subject: xenserver: dbcache should always exist so don't bother checking. X-Git-Tag: v1.1.0~144 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=0aae40a52817ff2644dea8003b3a542228369f6a xenserver: dbcache should always exist so don't bother checking. Open vSwitch introduced the on-disk database cache a long time ago. Since then, Citrix has integrated it upstream into XenServer's interface-reconfigure and even into their installer. OVS no longer supports XenServer before 5.6.100, so it is no longer necessary to check for and create the database cache if it isn't there. Signed-off-by: Ben Pfaff Bug #3388. --- diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 450cd34bb..ab06a06b5 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -130,29 +130,6 @@ install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch rm -rf $RPM_BUILD_ROOT %post -# Do not run the first block if we are in the XenServer installer -if runlevel >/dev/null 2>&1; then - if test ! -e /var/xapi/network.dbcache; then - if test "$1" = 1; then - printf "Creating xapi database cache... " - else - printf "warning: Open vSwitch is being re-installed or upgraded,\n" - printf " but the xapi database cache is missing.\n" - printf "Re-creating xapi database cache... " - fi - - if /usr/share/openvswitch/scripts/interface-reconfigure rewrite; then - printf "done.\n" - else - printf "FAILED\n" - printf "Open vSwitch can only be installed on a XenServer that\n" - printf "has connectivity to xapi on the pool master. Please\n" - printf "fix connectivity to the pool master, then try again.\n" - exit 1 - fi - fi -fi - if grep -F net.ipv4.conf.all.arp_filter /etc/sysctl.conf >/dev/null 2>&1; then :; else cat >>/etc/sysctl.conf <