- **status**: review --> fixed
- **Comment**:
commit bac9c3f53f32e12dce0bfc1aa792a844fa8b4f19
Author: thuan.tran <thuan.t...@dektech.com.au>
Date: Wed Mar 6 14:59:56 2019 +1100
amf: fix Comp stuck in RESTARTING presence state [#3011]
During SU (many COMPs) restart recovery, if any COMP finish instantiated
then crash while other COMPs are still instantiating, AMF recovery it by
restarting but AMF only cleanup without re-instantiation because AMF see
the COMP is not eligible for instantiation. The error COMP is stuck in
RESTARTING without further action from AMF.
AMF should allow COMP re-instantiation if SU state is INSTANTIATING and
error COMP state is RESTARTING.
---
** [tickets:#3011] amf: comp stuck in RESTARTING presence state**
**Status:** fixed
**Milestone:** 5.19.03
**Created:** Mon Feb 25, 2019 02:41 AM UTC by Thuan
**Last Updated:** Mon Feb 25, 2019 03:13 AM UTC
**Owner:** Thuan
When a SU (has many comp) is instantatiating for SU restart recovery, some comp
are instantiated then crash, AMF recovery them by restarting but AMF only
cleanup without re-instantiation them because AMF see them are not eligible for
instantiation.
~~~
if (isRestartSet(comp->su)) { // SU is restarting (RESTART admin op or
// recovery policy).
if (isFailed(comp->su)) { // SU is failed (case surestart recovery).
/*During surestart recovery, after cleanup of all components, amfnd
starts
instantiation of components. A component may fault at this stage. Such
a
component is eligible for instantiation.*/
if ((comp->pres == SA_AMF_PRESENCE_INSTANTIATING) &&
(comp->su->pres ==
SA_AMF_PRESENCE_INSTANTIATING))
return true;
~~~
These comp are stuck in RESTATING presence state without further action from
AMF.
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets