[Debian-ha-maintainers] Bug#854276: Bug#854276: resource-agents: Broken XEN toolstack detection in agent 'Xen'

Valentin Vidic Valentin.Vidic at CARNet.hr
Fri Feb 17 11:17:25 UTC 2017


On Sun, Feb 05, 2017 at 07:31:03PM +0200, Jarno Elonen wrote:
> The 'Xen' agent /usr/lib/ocf/resource.d/heartbeat/Xen attempts to detect if the 'xm' toolset is being used
> instead of the newer 'xl', but it doesn't work. Simply because 'xl' command exists, doesn't mean it actually works.
> On my system, it exits with "ERROR:  A different toolstack (xm) have been selected!".
> 
> This completely breaks the resource agent when 'xm' is being used. Here's a workin, though not very pretty, way to detect it:

Right, I guess it works with the default toolstack (xl) on jessie,
but you are running with TOOLSTACK=xm?

We could just patch the resource to use this on Debian:

  xentool=$(/usr/lib/xen-common/bin/xen-toolstack)

but I need to check if xm is available in stretch/sid at all.

Another workaround you can use is to rename /usr/sbin/xl
using dpkg-divert so the Xen agent does not find it by default.

-- 
Valentin



More information about the Debian-ha-maintainers mailing list