Skip to contentSkip to conversation

libxl: xenstored check regression

PATCH In review Christoph Egger 2 participants 2 messages Jan 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: xenstored check regression

Hi!

Changset 22806:eefb8e971be5 broke 'xl'.

After starting the xenstored, xenconsoled, xenbackendd and do

'xl create'

I get this:

libxl: error: libxl.c:53:libxl_ctx_init Is xenstore daemon running? failed to stat /var/run/xenstore.pid: No such file or directory cannot init xl context

The reason for the failure is that the NetBSD startup script creates the file

/var/run/xenstored.pid

but libxl checks for

/var/run/xenstore.pid

Attached patch makes this consistent across Linux and NetBSD.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
tools/hotplug/Linux/init.d/xencommons +1 -1
diff -r ea77863d3be9 tools/hotplug/Linux/init.d/xencommons
@@ -52,7 +52,7 @@ do_start () {
 		test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log"
 
 		echo -n Starting xenstored...
-		xenstored --pid-file=/var/run/xenstore.pid $XENSTORED_ARGS
+		xenstored --pid-file=/var/run/xenstored.pid $XENSTORED_ARGS
 
 		# Wait for xenstored to actually come up, timing out after 30 seconds
                 while [ $time -lt $timeout ] && ! `xenstore-read -s / >/dev/null 2>&1` ; do
tools/libxl/libxl_internal.h +1 -1
diff -r ea77863d3be9 tools/libxl/libxl_internal.h
@@ -110,7 +110,7 @@ typedef struct {
 #define AUTO_PHP_SLOT          0x100
 #define SYSFS_PCI_DEV          "/sys/bus/pci/devices"
 #define SYSFS_PCIBACK_DRIVER   "/sys/bus/pci/drivers/pciback"
-#define XENSTORE_PID_FILE      "/var/run/xenstore.pid"
+#define XENSTORE_PID_FILE      "/var/run/xenstored.pid"
 
 #define PROC_PCI_NUM_RESOURCES 7
 #define PCI_BAR_IO             0x01

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Christoph Egger writes ("[Xen-devel] [PATCH] libxl: xenstored check regression"):

Quoted 1 line

Attached patch makes this consistent across Linux and NetBSD.

Thanks, I have applied this patch. Sorry for breaking your setup.

It would have been polite to mention in your patch comment that you were changing the Linux filename to bring it into line with BSD, rather than vice versa, and also to describe the steps you had taken to check that you had found all the instances.

Ian.