Proposed fix:

amfnd: do not refresh opensaf components

If an OpenSAF component requires reload after an upgrade,
then AMF should also be upgraded, requiring a node
reboot. 

The patch fixes a problem where OpenSAF has been upgraded
and is about to be rebooted. Before the reboot occurs,
IMMND aborts due to message loss, and AMFND is trying to
reload IMMND's configuration. Since IMMND is down, AMFND
is stuck in saImmOmInitialize(), before eventually being killed
by the AMF watchdog.

diff --git a/src/amf/amfnd/compdb.cc b/src/amf/amfnd/compdb.cc
index 1aa3863ec..c27eb9693 100644
--- a/src/amf/amfnd/compdb.cc
+++ b/src/amf/amfnd/compdb.cc
@@ -1687,7 +1687,10 @@ int avnd_comp_config_reinit(AVND_COMP *comp) {
   ** At first time instantiation of OpenSAF components we cannot go
   ** to IMM since we would deadloack.
   */
-  if (comp->config_is_valid) {
+  if (comp->config_is_valid || comp->su->is_ncs == true) {
     res = 0;
     goto done1;
   }



---

** [tickets:#2627] amfd: handle immnd failure during upgrade**

**Status:** unassigned
**Milestone:** 5.17.10
**Created:** Mon Oct 16, 2017 05:13 AM UTC by Gary Lee
**Last Updated:** Mon Oct 16, 2017 05:15 AM UTC
**Owner:** nobody
**Attachments:**

- 
[osafamfnd.6981.PL-2-12.core.txt](https://sourceforge.net/p/opensaf/tickets/2627/attachment/osafamfnd.6981.PL-2-12.core.txt)
 (32.3 kB; text/plain)


Normally, amfnd is able to handle immnd restarting.

However, if immnd fails after OpenSAF is upgraded but before the node is 
rebooted, then amfnd will 'deadlock' trying to reload immnd's configuration but 
immnd is not available!




---

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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to