[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] xen-api on debian not updating xenstore?


  • To: xen-api@xxxxxxxxxxxxx
  • From: George Shuklin <george.shuklin@xxxxxxxxx>
  • Date: Tue, 03 Jul 2012 13:45:06 +0400
  • Delivery-date: Tue, 03 Jul 2012 09:45:24 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Great news: new version of xcp-xapi (1.3.2-7) seems be booting perfectly without any hangs.

But bug with 'lack of /local/domain/0/vm' is still kinda annoying. I've added it to /etc/rc.local

Here simple patch wich write correct value to /local/domain/0/vm:

--- /etc/init.d/xcp-xapi.old    2012-06-29 14:51:40.000000000 +0400
+++ /etc/init.d/xcp-xapi    2012-07-03 13:38:14.000000000 +0400
@@ -90,7 +90,9 @@
     mkdir -p /var/run/xend/boot
     mkdir -p /usr/share/xcp/packages/iso
     export OCAMLRUNPARAM=b
-
+    #fix dom0 uuid in xenstore, required for vm startup in xcp-xapi
+ dom0_uuid=`/usr/lib/xcp/bin/list_domains |egrep "^ 0 \|"|awk '{print $3}'`
+    xenstore-write /local/domain/0/vm $dom0_uuid
     rm -f $XAPI_STARTUP_COOKIE $XAPI_INIT_COMPLETE_COOKIE

start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \


But I still fighting with http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678923


On 29.06.2012 01:24, Pawel Tomulik wrote:
/etc/rc.local doesn't work (as stated in my previous post).
After reboot, when I do:

service xcp-squeezed status

I always obtain failed (I must do service xcp-squeezed start, and the daemon starts without problem).

The same is when I put this instruction into my own separate script, which I start-depend on all xcp daemons (xcp-xapi, xcp-squeezed, xcp-v6d xcp-fe). Whenever xenstore-write appear in boot scripts, the xcp-squeezed fails to start (or maybe this is issue with status printing?).

W dniu 28.06.2012 22:33, George Shuklin pisze:
Well, 1st problem I do have around this is xcp is not starting properly
any way at system boot. I've still in research about reason and
solution, but for this exact case I think simplest solution is put this
line or in the /etc/init.d/xcp-xapi, or in /etc/rc.local.

But xcp-xapi start problems (which one is kinda hard to debug due
dependency based boot sequence) is more serious, I think.

On 28.06.2012 23:13, Pawel Tomulik wrote:

W dniu 11.05.2012 18:25, John Weber pisze:

Try this workaround: log into your debian dom0 and type:

$ sudo xenstore-write /local/domain/0/vm hello

When xapi adds a device it performs a sanity-check [...]

Hi,

how I can "automatize" this workaround, so it works after reboot?
I've tried to put these instructions into init.d/* script and also
into rc.local but it prevents somehow xcp-squeezed from starting
properly.







_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.