xenserver: Update to use upstream XenServer location for dbcache.
authorBen Pfaff <blp@nicira.com>
Tue, 26 Jan 2010 18:35:11 +0000 (10:35 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Jan 2010 18:35:11 +0000 (10:35 -0800)
I thought that this was going to be more difficult (see this email thread:
http://openvswitch.org/pipermail/dev_openvswitch.org/2010-January/001023.html
) but it turned out to be trivial.

xenserver/opt_xensource_libexec_interface-reconfigure
xenserver/usr_sbin_xen-bugtool
xenserver/vswitch-xen.spec

index 4455731..a350952 100755 (executable)
@@ -51,7 +51,7 @@ import random
 
 management_pif = None
 
-dbcache_file = "/var/lib/openvswitch/dbcache"
+dbcache_file = "/var/xapi/network.dbcache"
 
 #
 # Logging.
index 786ff2f..ae96c2a 100755 (executable)
@@ -121,7 +121,7 @@ VAR_LOG_DIR = '/var/log/'
 VNCTERM_CORE_DIR = '/var/xen/vncterm'
 VSWITCH_CORE_DIR = '/var/xen/vswitch'
 OVS_VSWITCH_CONF = '/etc/ovs-vswitchd.conf'
-OVS_VSWITCH_DBCACHE = '/var/lib/openvswitch/dbcache'
+OVS_VSWITCH_DBCACHE = '/var/xapi/network.dbcache'
 XENSOURCE_INVENTORY = '/etc/xensource-inventory'
 OEM_CONFIG_DIR = '/var/xsconfig'
 OEM_CONFIG_FILES_RE = re.compile(r'^.*xensource-inventory$')
index f6c9457..2d8acd5 100644 (file)
@@ -154,7 +154,7 @@ EOF
     fi
 fi
 
-if test ! -e /var/lib/openvswitch/dbcache; then
+if test ! -e /var/xapi/network.dbcache; then
     if test "$1" = 1; then
         printf "Creating xapi database cache...  "
     else
@@ -299,7 +299,7 @@ if [ "$1" = "0" ]; then     # $1 = 1 for upgrade
     rm -f /etc/ovs-vswitchd.conf
     rm -f /etc/sysconfig/vswitch
     rm -f /etc/ovs-vswitchd.cacert
-    rm -f /var/lib/openvswitch/dbcache
+    rm -f /var/xapi/network.dbcache
 
     # Configure system to use bridge
     echo bridge > /etc/xensource/network.conf