[Pacemaker] A bug in stonith external/libvirt

Owen Le Blanc LeBlanc at man.ac.uk
Fri Aug 31 14:10:16 UTC 2012


On Fri, Aug 31, 2012 at 03:18:03PM +0200, Lars Marowsky-Bree wrote:
> But you're not setting the same values.

Actually, I am, but I'm having trouble selecting the right texts from my logs.
For the interactive given before:

client2 14:02:40 > export hostlist="client1" hypervisor_uri="xen+ssh://client1@s
erver1.mc.man.ac.uk/usr/bin/virsh?keyfile=/root/.ssh/id_dsa"
client2 15:02:57 > 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?key
file=/root/.ssh/id_dsa' ']'
+ libvirt_status
++ /usr/bin/virsh -c 'xen+ssh://client1@server1.mc.man.ac.uk/usr/bin/virsh?keyfi
le=/root/.ssh/id_dsa' version
+ out='error: internal error unexpected Xen URI path '\''/usr/bi+ '['
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/v
irsh?keyfile=/root/.ssh/id_dsa
+ ha_log.sh err 'error: internal error unexpected Xen URI path '\''/usr/bin/virs
h'\'', try xen:///
error: failed to connect to the hypervisor'
ERROR: error: internal error unexpected Xen URI path '/usr/bin/virsh', try xen:/
//
error: failed to connect to the hypervisor
+ return 1
+ exit 1

Unless I've made a mistake copying and pasting, this is the correct
output for the virsh command that worked above.

     -- Owen




More information about the Pacemaker mailing list