Hi, On Tue, Dec 13, 2011 at 10:43 AM, lakshmipadmaja maddali <lakshmipadmaj...@gmail.com> wrote: > Hi. > > Heartbeat version is heartbeat-3.0.4-1.fc15.1.i686. > > While testing ocf script IPaddr2, it returned an error message > "./IPaddr2: line 68: /lib/heartbeat/ocf-shellfuncs: No such file or directory" > > [root@node1 heartbeat]# ./IPaddr2 status > ./IPaddr2: line 68: /lib/heartbeat/ocf-shellfuncs: No such file or directory > > When I referred the IPaddr2 code, I found that ${OCF_ROOT} is not > getting initialized, resulting an error. > > # Initialization: > > : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} > . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs > > So, I replaced the above 2 lines with the below one in IPaddr2 and > tested it, it was working fine. > . /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs > > And also tested the script by replacing with the below one also and > was working fine. > . /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs > > So, is this a bug in ocf scripts or I have missed some step? Please suggest > me.
For testing OCF scripts have a look at the http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html Specifically the part about http://www.linux-ha.org/doc/dev-guides/_testing_resource_agents.html HTH, Dan > > Regards, > Padmaja. > _______________________________________________ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems -- Dan Frincu CCNA, RHCE _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems