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://clie...@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://clie...@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\'''
>  ']'
> + libvirt_status
> ++ /usr/bin/virsh -c 
> ''\''xen+ssh://clie...@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\'''
>  version
> + out='error: internal error Unable to parse URI 
> '\''xen+ssh://clie...@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://clie...@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://clie...@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'\'''
> ERROR: Failed to get status for 
> 'xen+ssh://clie...@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://clie...@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://clie...@server1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa'
> error: failed to connect to the hypervisor
> + return 1
> + exit 1
> 

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to