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

Re: [Xen-API] Shutdown race condition with heartbeat/pacemaker



On 30/06/12 15:03, Andrew Eross wrote:
Hey guys,

I run into a problem with my pacemaker managed VM power-off competing
with the built-in domU shutdown script (/opt/xensource/libexec/shutdown).

It's not a problem for power-on, as that's controlled by an other_config
flag: auto_poweron

I'd like to suggest adding a similar auto_poweroff flag to allow
controlling shutdown when desired.

e.g. to set this on a VM:
xe vm-param-set other-config:auto_poweroff=false uuid=$UUID

I did this myself and modified the shutdown script to look for this flag
and ignore those VMs.

See attached patch, also available here:
http://download.locatrix.com/pacemaker/shutdown.patch

cd /opt/xensource/libexec
cp shutdown shutdown.orig
patch -p1 < shutdown.patch

I was wondering if the xenserver/xcp maintainers would consider
including this (or what they think about the idea)?

Hi Andrew,

Could you please submit a pull request to http://github.com/xen-org/xen-api ? This is the usual way that the xapi team reviews patches. Thanks for submitting this,

Mike

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