- **status**: review --> fixed
- **Comment**:
commit f8fd609eb95fa347b0f1f94cb73bbd94fac61229 (HEAD -> develop,
origin/develop, ticket-3344)
Author: thien.m.huynh <[email protected]>
Date: Fri Dec 29 10:41:06 2023 +0700
amf: retry if imm unavailable during recovery [#3344]
If a component has changed, AMF will obtain configuration
from IMM when recovering it. If IMM is unavailable and
SC absence is enabled, AMF will immediately fail.
Retrying the cleanup event is the solution.
This is to prevent watchdog kill AMFND.
---
**[tickets:#3344] amf: component can not recovery while imm unavailable**
**Status:** fixed
**Milestone:** 5.24.02
**Created:** Fri Dec 22, 2023 03:36 AM UTC by Thien Minh Huynh
**Last Updated:** Tue Jan 02, 2024 02:59 AM UTC
**Owner:** Thien Minh Huynh
Comp state will be hang on saAmfCompPresenceState=RESTARTING(5) forever if imm
not available during component restart.
**Step reproduce by using amf_demo:**
1. Enable SC absence
2. Change configuration of the component
`immcfg -a saAmfCompCmdEnv+="AMF_DEMO_VAR4=COMP2_VALUE4"
safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1`
3. Make the imm unavailable during component restart
- add `sleep 1` into at the end stop function amf_demo_script
- add `sleep 2` into at the end stop function osaf-immnd
- make amf_demo comp recovery `pkill -9 amf_demo`
- make imm unavailable `pkill -9 osafimmnd`
4. `amf-state comp | grep -A 3 AmfDemo`
safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1
saAmfCompOperState=ENABLED(1)
saAmfCompPresenceState=RESTARTING(5)
saAmfCompReadinessState=OUT-OF-SERVICE(1)
syslog:
~~~
2023-12-22 09:48:51.729 SC-2 osafamfnd[289]: NO
'safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' component restart probation timer
started (timeout: 4000000000 ns)
2023-12-22 09:48:51.729 SC-2 osafamfnd[289]: NO Restarting a component of
'safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' (comp restart count: 1)
2023-12-22 09:48:51.729 SC-2 osafamfnd[289]: NO
'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' faulted due to
'avaDown' : Recovery is 'componentRestart'
2023-12-22 09:48:51.729 SC-2 osafamfnd[289]: NO
'safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1' Presence State INSTANTIATED =>
RESTARTING
...
2023-12-22 09:49:22.812 SC-2 osafamfnd[289]: CR saImmOmInitialize FAILED for
'safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1', error 6
2023-12-22 09:49:22.813 SC-2 osafamfnd[289]: NO Component CLC fsm exited with
error for comp:safComp=AmfDemo,safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1
~~~
---
Sent from sourceforge.net because [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets