STONITH agent external/ibmrsa-telnet is broken (fails with parameters passed by stonithd)

Bug #262548 reported by Florian Hackenberger
4
Affects Status Importance Assigned to Milestone
heartbeat (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: heartbeat

There is a bug in /usr/lib/stonith/plugins/external/ibmrsa-telnet on line 317. It checks if there is exactly one parameter specified. Unfortunately the stonith command passes the nodename it wants to reset as a second parameter. Therefore this STONITH agent always fails to STONITH :-). It would probably be correct to check if the given nodename equals the nodename the resource has been configured for, but simply removing the check is fine as well.

Please apply the attached patch or implement the proposed functionality (check if given node equals configured node).

Could this fix be backported to hardy?

Revision history for this message
Florian Hackenberger (f-hackenberger) wrote :
Revision history for this message
Florian Hackenberger (f-hackenberger) wrote :

Here is a sample session with stonith to show the parameter which is passed:

stonith -v -t external/ibmrsa-telnet nodename=node01 ip_address=10.4.4.65 username=SOMEUSER password=PASSWORD -T reset node01
** INFO: external_run_cmd: Calling '/usr/lib/stonith/plugins/external/ibmrsa-telnet reset node01' returned 256

** (process:744): CRITICAL **: external_reset_req: 'ibmrsa-telnet reset' for host node01 failed with rc 256

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hardy has already reached EOL (End of Life), for this reason I'm closing this bug report.

Changed in heartbeat (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.