<div dir="ltr">I've found two bugs in the fence_ec2 script found in this RPM:<div>fence_ec2-0.1-0.10.1.x86_64.rpm<br></div><div><br></div><div>I believe this is the latest and greatest, but I may be wrong.  I'm not sure where to post these fixes, so I'm starting here.  If there is a better place to post, please let me know.</div><div><br></div><div>The errors are:</div><div>1. The tag attribute does not default to "Name", as specified in the documentation</div><div>2. The script does not accept attribute settings from stdin</div><div><br></div><div>#1 is not critical, since tag=Name can be specified explicitly when setting up a stonith resource.  However, #2 is very important, since stonith_admin (and I think most of pacemaker) passes arguments to fencing scripts via stdin.  Without this fix, fence_ec2 will not work properly via pacemaker, that is:</div><div><br></div><div>This command works....</div>fence_ec2 --action=metadata<br><br>...but this alternate version of same command does not:<br>echo "action=metadata" | fence_ec2<div><br></div><div>The fixes are relatively trivial.  The version of fence_ec2 from the RPM is attached as fence_ec2.old.  My modified version is attached as fence_ec2.new.  I've also attached the RPM that was the source for fence_ec2.old.</div></div>