When cluster stop by immadm, amfnd (is shutting down) may see amfd
down event and order node reboot.
---
src/amf/amfnd/di.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/amf/amfnd/di.cc b/src/amf/amfnd/di.cc
index 2043c6064..1f310b949 100644
--- a/src/amf/amfnd/di.cc
+++ b/src/amf/amfnd/di.cc
@@ -664,6 +664,12 @@ uint32_t avnd_evt_mds_avd_dn_evh(AVND_CB *cb, AVND_EVT
*evt) {
LOG_WA("AMF director unexpectedly crashed");
+ if (m_AVND_IS_SHUTTING_DOWN(cb)) {
+ LOG_WA("Ignore because AMFND is in SHUTDOWN state");
+ TRACE_LEAVE();
+ return rc;
+ }
+
// if headless is disabled OR if the amfd down came from the local node, just
// reboot
if (cb->scs_absence_max_duration == 0 ||
--
2.17.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel