From 1fa5a1050f4e148575d418bf16343a39357ada39 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 26 Jan 2010 10:35:11 -0800 Subject: [PATCH] xenserver: Update to use upstream XenServer location for dbcache. 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 | 2 +- xenserver/usr_sbin_xen-bugtool | 2 +- xenserver/vswitch-xen.spec | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 4455731f..a350952c 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -51,7 +51,7 @@ import random management_pif = None -dbcache_file = "/var/lib/openvswitch/dbcache" +dbcache_file = "/var/xapi/network.dbcache" # # Logging. diff --git a/xenserver/usr_sbin_xen-bugtool b/xenserver/usr_sbin_xen-bugtool index 786ff2f0..ae96c2a2 100755 --- a/xenserver/usr_sbin_xen-bugtool +++ b/xenserver/usr_sbin_xen-bugtool @@ -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$') diff --git a/xenserver/vswitch-xen.spec b/xenserver/vswitch-xen.spec index f6c94570..2d8acd5d 100644 --- a/xenserver/vswitch-xen.spec +++ b/xenserver/vswitch-xen.spec @@ -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 -- 2.30.2