/usr/sbin/stonith does not accept parameters as advertised ( carefully opened a bug 924010)
"Uemit Arslan" <[email protected]> Tue, 24 Mar 2015 15:09:25 +0100
| Newsgroups | gmane.linux.highavailability.user |
|---|---|
| Message-ID | <[email protected]> |
This is a MIME message. If you are reading this text, you may want to
consider changing to a mail reader or gateway that understands how to
properly handle MIME multipart messages.
--=__Part596D1005.0__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Hello colleagues,=20
if some wants to test stonith and is unsure how to use parameters with =
stonith devices he checks which parameters are available by doing:=20
sles11ha2:~ # stonith -t external/libvirt =20
usage:=20
stonith [-svh] -L=20
stonith [-svh] -t stonith-device-type -n=20
stonith [-svh] -t stonith-device-type -m=20
stonith [-svh] -t stonith-device-type {-p stonith-device-parameter=
s | -F stonith-device-parameters-file | -E | name=3Dvalue...} [-c count] =
-lS=20
stonith [-svh] -t stonith-device-type {-p stonith-device-parameter=
s | -F stonith-device-parameters-file | -E | name=3Dvalue...} [-c count] =
-T {reset|on|off} nodename=20
stonith -t external/libvirt -n=20
hostlist hypervisor_uri reboot_method =20
You would assume that you have to provide stonith params with "-p".=20
I wanted to test stonith mechanisms for qemu+libvirt and the stonith =
parameters with "-p". =20
sles11ha2:~ # stonith -t external/libvirt -p "hostlist=3Dsles11ha1:sles_han=
ode1 hypervisor_uri=3Dqemu+tcp://147.2.90.22/system reset_method=3Dpower_cy=
cle" -T reset sles_hanode1=20
external/libvirt[5462]: ERROR: Should never happen: Called for host =
sles_hanode1 but sles_hanode1 is not in hostlist=3Dsles11ha1:sles_hanode1.=
=20
CRIT: external_reset_req: 'libvirt reset' for host sles_hanode1 failed =
with rc 1=20
-->FAIL=20
If you do not provide the parameter "-p" then it works as expected:=20
sles11ha2:~ # stonith -t external/libvirt hostlist=3Dsles11ha1:sles_hanode=
1 hypervisor_uri=3Dqemu+tcp://147.2.90.22/system reset_method=3Dpower_cycle=
-T reset sles11ha1=20
external/libvirt[5567]: notice: Domain sles_hanode1 was stopped=20
external/libvirt[5567]: notice: Domain sles_hanode1 was started=20
--> WORKS=20
I know, there are more serious bugs, but it would be fine to fix this as =
it is very confusing or misleading.=20
regards=20
Uemit
--=__Part596D1005.0__=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
--=__Part596D1005.0__=--