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

Re: [Xen-API] [Pkg-xen-devel] Bug#678923: Acknowledgement (xcp-xapi: host-disable and host-reboot make host disable forever)



On 05.07.2012 20:55, Mike McClurg wrote:
On Thu, Jul 5, 2012 at 3:21 AM, George Shuklin <george.shuklin@xxxxxxxxx> wrote:
I've done some additional research on that bug.

Brief bug description:
xe host-disable; xe host-reboot make host disabled endlessly after reboot
without chances to be enabled:
Okay, I think that the problem is that we forgot to call xapi with the
-onsystemboot flag in the xcp-xapi.init script. Here is an untested
patch that you should be able to manually apply (as in edit the init
file by hand) to test if this fixes the issue.

I'll push a proper patch to my github soon.

Mike

diff --git a/debian/xcp-xapi.init b/debian/xcp-xapi.init
index 055e17b..b3c5959 100755
--- a/debian/xcp-xapi.init
+++ b/debian/xcp-xapi.init
@@ -23,7 +23,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
  DESC="The XenAPI server"
  NAME=xapi
  DAEMON=/usr/sbin/$NAME
-DAEMON_ARGS="-daemon -writereadyfile $XAPI_STARTUP_COOKIE
-writeinitcomplete $XAPI_INIT_COMPLETE_COOKIE"
+DAEMON_ARGS="-daemon -writereadyfile $XAPI_STARTUP_COOKIE
-writeinitcomplete $XAPI_INIT_COMPLETE_COOKIE -onsystemboot"
  PIDFILE=/var/run/$NAME.pid
  SCRIPTNAME=/etc/init.d/$NAME
  TEMPLATES_MD5_STAMP=/var/lib/xcp/templates.md5


Yes, this patch fixes the problem.

Thank you.


_______________________________________________
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®.