Hi, On Mon, Dec 12, 2011 at 12:03:47PM +0200, Dan Frincu wrote: > Hi, > > On Mon, Dec 12, 2011 at 9:42 AM, sony thapa <[email protected]> wrote: > >> > >> Hi, > > > > When I am trying to add lsb resource agent, through crm interface > > > >>>crm configure primitive iptables lsb::iptables op monitor interval=10s > > o/p is > > > > ERROR: lsb:cups: could not parse meta-data: > > ERROR: lsb:iptables: could not parse meta-data: > > ERROR: lsb:iptables: could not parse meta-data: > > ERROR: lsb:iptables: no such resource agent > > Do you still want to commit? yes > > > > This error is pretty straight forward, there is not > /etc/init.d/{cups,iptables} script. > > > It's not allowing me to add a new resource, its giving timeout error. > > But I am able to add resource using crm_gui. > > That shouldn't work.
crm_gui has no access to the filesystem and hence cannot check if a resource agent exists. > > And I tried adding resouce using lrmadmin > > for eg, > > lrmadmin -A sshd lsb sshd NULL op monitor interval=30s > > > > o/p Succeeded in adding this resource. > > # lrmadmin -A sshd lsb sshd NULL op monitor interval=30s > Succeeded in adding this resource. > > Yes, the first time you run it, it works, this is a bug. However > subsequent attempts result in: Again, not a bug. It is not up to lrmadmin/lrmd to check if a RA exists. Thanks, Dejan > # lrmadmin -A sshd lsb sshd NULL op monitor interval=30s > lrmadmin[18992]: 2011/12/12_05:01:22 ERROR: lrm_add_rsc(876): got a > return code HA_FAIL from a reply message of addrsc with function > get_ret_from_msg. > Failed to add this resource. > > > > > But when I did crm_resource -l > > It didnt display "sshd" > > Also the resource name might be ssh, not sshd, check /etc/init.d/ directory. > > HTH, > Dan > > > > > Please help me. > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > > > -- > Dan Frincu > CCNA, RHCE > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
