[Pacemaker] A bug in stonith external/libvirt?

Dejan Muhamedagic dejanmm at fastmail.fm
Thu Aug 30 10:46:27 EDT 2012


On Thu, Aug 30, 2012 at 03:27:11PM +0100, Dr A V Le Blanc wrote:
> On Thu, Aug 30, 2012 at 03:23:20PM +0200, Dejan Muhamedagic wrote:
> > On Thu, Aug 30, 2012 at 02:02:07PM +0100, Owen Le Blanc wrote:
> > > I seem to have a problem with the stonith external/libvirt script,
> > > which behaves as I show in the attachment.  This might be a problem
> > > with quoting in the scripts, and a similar difficulty was reported
> > > earlier, with the suggestion to change fence_legacy; I've done this,
> > > and it made no difference.  Pacemaker is version 1.1.6 and
> > > cluster-glue is version 1.0.8.
> > 
> > Looking at the typescript, looks like you forgot ':' in the URI.
> 
> Oops, but that still doesn't fix the problem:
> 
> client2 15:23:49 > export hostlist="client1" hypervisor_uri="'xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'"
> client2 15:25:37 > sh -x /usr/lib/stonith/plugins/external/libvirt status
> + unset SSH_AUTH_SOCK
> ++ echo client1
> ++ sed -e 's/,/ /g'
> + hostlist=client1
> + case $1 in
> + libvirt_check_config
> ++ which virsh
> + VIRSH=/usr/bin/virsh
> + '[' '!' -x /usr/bin/virsh ']'
> + '[' -z client1 -o -z ''\''xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\''' ']'
> + libvirt_status
> ++ /usr/bin/virsh -c ''\''xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\''' version
> + out='error: internal error Unable to parse URI '\''xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\''

Perhaps too many quotes. Did you try:

export hostlist="client1" hypervisor_uri="xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa"

Thanks,

Dejan

P.S. Please keep the traffic on the list.

> error: failed to connect to the hypervisor'
> + '[' 1 -eq 0 ']'
> + ha_log.sh err 'Failed to get status for '\''xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\'''
> ERROR: Failed to get status for 'xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'
> + ha_log.sh err 'error: internal error Unable to parse URI '\''xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\''
> error: failed to connect to the hypervisor'
> ERROR: error: internal error Unable to parse URI 'xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'
> error: failed to connect to the hypervisor
> + return 1
> + exit 1
> 




More information about the Pacemaker mailing list