
radhamadhavi at huawei
Dec 1, 2009, 8:23 PM
Post #6 of 9
(1190 views)
Permalink
|
|
Re: Help required to develop OCF Resource Agent Script for Master-Slave script
[In reply to]
|
|
Andrew Beekhof-3 wrote: > > On Mon, Nov 30, 2009 at 5:26 AM, Jessy <radhamadhavi [at] huawei> wrote: >> >> >> >> Andrew Beekhof-3 wrote: >>> >>> On Mon, Nov 23, 2009 at 6:15 AM, Jessy <radhamadhavi [at] huawei> wrote: >>>> >>>> I have developed a OCF resource agent script for the master/slave >>>> application. While testing the RA, i have faced following problems. >>>> >>>> First, it is not able to promote once instance to the master, after i >>>> have >>>> called >>>> "crm_master -v 100 -l reboot" utility command in the notify function of >>>> post-start branch, so in ha-log, there are following log information >>>> >>>> tengine[4803]: 2009/11/19_15:21:43 info: extract_event: Aborting on >>>> transient_attributes changes for "node of uuid" >>>> tengine[4803]: 2009/11/19_15:21:43 info: update_abort_priority: Abort >>>> priority upgraded to 1000000 >>>> tengine[4803]: 2009/11/19_15:21:43 info: update_abort_priority: Abort >>>> action >>>> 0 superceeded by 2 >>> >>> Looks right to me.  What version are you running? >>> >>> [Jessy] : Ther version i'm using is Heartbeat v2.0.8 on SUSE 10 SP1, the >>> cluster constists of two nodes. > > Yikes! > You really need to update. No wonder its not working. > > > The latest for from SUSE for SLES10 is 2.1.4 which will be a lot better. > >>> >>> >>>> Second issue, crm doesnot check the status of the instance on each >>>> node, >>> >>> Did you add monitor operation to the resource? >>> >>> [Jessy] : Monitor function has been implemented in the script. The >>> script >>> also consists of          start/stop/promote/demote/notify >>> functions too. > > Yes, but did you add a monitor action to the resource's definition in > the configuration? > > [Jessy] : I have added monitor operation defination in cib.xml with > certain interval time in cib.xml file as below. > <op id="Op_ms_app_prog10" name="monitor" interval="10s" timeout="30s" > role="Master"/> > <op id="Op_ms_app_prog11" name="monitor" interval="20s" timeout="50s" > role="Slave"/> > > More over, i've also added the defination of monitor action in the > meta-data of RA 'MaSlApp' as follows: > <actions> > <action name="start" timeout="240"/> > <action name="promote" timeout="90"/> > <action name="demote" timeout="90"/> > <action name="notify" timeout="90"/> > <action name="stop" timeout="100"/> > <action name="monitor" depth="0" timeout="20" interval="30" > start-delay="50" role="Slave"/> > <action name="monitor" depth="0" timeout="20" interval="10" > start-delay="30" role="Master"/> > <action name="meta-data" timeout="10" /> > <action name="validate-all" timeout="30" /> > </actions> > > Thanks in advance!!! > > > > _______________________________________________ > Linux-HA mailing list > Linux-HA [at] lists > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > > -- View this message in context: http://old.nabble.com/Help-required-to-develop-OCF-Resource-Agent-Script-for-Master-Slave-script-tp26472940p26601657.html Sent from the Linux-HA mailing list archive at Nabble.com. _______________________________________________ Linux-HA mailing list Linux-HA [at] lists http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
|