[Pacemaker] [PATCH]The abolition of distinguishing a node name by a small and capital letter.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Thu Dec 3 06:08:32 UTC 2009


Hi,

We committed the following mistakes.

* The host name is a small letter. 
* The host name of RULE is a capital letter. 
* The host name of STONITH(hostlist) is a capital letter.

By this setting, the resource is arranged definitely, but fails in STONITH(fence opration).

The cause is STONITH distinguishes a node name by a small and capital letter, and to process it.
I think that it is good not to distinguish it in the same way as rule setting.

I created a patch for stonithd.
But, the part revision of stonith-RA becomes necessary for the solution of the problem, too.

I show a revision example of RA of ssh/external next.

---- external/ssh ----------------
 reset)
        h_target=`echo $2 | tr A-Z a-z`
        for h in $hostlist
        do
          h_list=`echo $h | tr A-Z a-z`
          if
                [ "$h_list" != "$h_target" ]
          then
            continue
          fi
----------------------------------

Please teach it if there is the revision method that, besides, is good.

Best Regards,
Hideo Yamauchi.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stonithd.strncasecmp.patch
Type: application/octet-stream
Size: 633 bytes
Desc: 2648082283-stonithd.strncasecmp.patch
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091203/324ac09b/attachment-0001.obj>


More information about the Pacemaker mailing list