On Friday 13 September 2013 04:43 PM, Hans Feldt wrote:
> amfd does not know shutdown is in progress.
[Surya] i guess (if it is possible), we can add small similar code of
how we are handling at AMFND for the shutdown.
>
> After a suggestion by Mathi I propose "duplicate ACTIVE detected,
> exiting" instead of the "Controller split brain detected, exiting"
[Surya] Ok.
>
> /Hans
>
> On 09/13/2013 12:52 PM, Suryanarayana Garlapati wrote:
>> In the case where opensaf is shutting down and took more time to
>> shutdown
>> Something like:
>>
>> + LOG_CR("While OpenSAF Shutting down, exiting");
>>
>> and other case where there is tipc link flap:
>>
>> + LOG_CR("Controller split brain detected, exiting");
>>
>>
>> On Thursday 05 September 2013 03:09 PM, Hans Feldt wrote:
>>> Any suggestion?
>>> /Hans
>>>
>>>> -----Original Message-----
>>>> From: Suryanarayana Garlapati
>>>> [mailto:[email protected]]
>>>> Sent: den 5 september 2013 11:06
>>>> To: praveen malviya
>>>> Cc: Hans Feldt; [email protected]
>>>> Subject: Re: [devel] [PATCH 1 of 1] amfd: exit at MDS quiesced
>>>> event in wrong state [#516]
>>>>
>>>> Change the following log accordingly:
>>>>
>>>> + LOG_CR("Controller split brain detected, exiting");
>>>>
>>>> This is always not true. The above is true in Tipc link flap.
>>>>
>>>>
>>>> On Thursday 05 September 2013 02:34 PM, praveen malviya wrote:
>>>>> Ack,
>>>>>
>>>>> Thanks,
>>>>> Praveen
>>>>> On 16-Aug-13 7:03 PM, Hans Feldt wrote:
>>>>>> osaf/services/saf/avsv/avd/avd_role.cc | 9 +++++++++
>>>>>> 1 files changed, 9 insertions(+), 0 deletions(-)
>>>>>>
>>>>>>
>>>>>> MDS can force an active vdest into quiesced state (see docs).
>>>>>> Reasons for this
>>>>>> happening is unclear. The logic avd_mds_qsd_role_evh() can only
>>>>>> handle this
>>>>>> event in context of a controller switch-over. Otherwise it could
>>>>>> e.g. hang in
>>>>>> using IMM which eventually times out and calls abort() generating
>>>>>> a core dump.
>>>>>>
>>>>>> Instead exit the amfd process when this event happens in non
>>>>>> controller
>>>>>> switch-over state. amfnd will failfast reboot the node when it
>>>>>> detects this.
>>>>>>
>>>>>> diff --git a/osaf/services/saf/avsv/avd/avd_role.cc
>>>>>> b/osaf/services/saf/avsv/avd/avd_role.cc
>>>>>> --- a/osaf/services/saf/avsv/avd/avd_role.cc
>>>>>> +++ b/osaf/services/saf/avsv/avd/avd_role.cc
>>>>>> @@ -569,6 +569,15 @@ void avd_mds_qsd_role_evh(AVD_CL_CB *cb,
>>>>>>
>>>>>> TRACE_ENTER();
>>>>>>
>>>>>> + /* Only accept this event in controller switch-over state,
>>>>>> in other
>>>>>> + * states it is invalid and indicates severe cluster problems.
>>>>>> + */
>>>>>> + if (cb->swap_switch == SA_FALSE) {
>>>>>> + LOG_NO("%s: MDS unexpectedly changed role to QUIESCED",
>>>>>> __FUNCTION__);
>>>>>> + LOG_CR("Controller split brain detected, exiting");
>>>>>> + _exit(EXIT_FAILURE); // should never get here...
>>>>>> + }
>>>>>> +
>>>>>> /* Give up IMM OI implementer role */
>>>>>> if ((rc =
>>>>>> immutil_saImmOiImplementerClear(cb->immOiHandle)) != SA_AIS_OK) {
>>>>>> LOG_ER("FAILOVER Active --> Quiesced FAILED,
>>>>>> ImplementerClear failed %u", rc);
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>>>> more!
>>>>> Discover the easy way to master current and previous Microsoft
>>>>> technologies
>>>>> and advance your career. Get an incredible 1,500+ hours of
>>>>> step-by-step
>>>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Opensaf-devel mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/opensaf-devel
>>
>>
>>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel