- **status**: accepted --> review


---

** [tickets:#2952] amfd: reset message ID in LostFound state**

**Status:** review
**Milestone:** 5.18.12
**Created:** Thu Nov 01, 2018 09:06 PM UTC by Gary Lee
**Last Updated:** Thu Nov 01, 2018 09:08 PM UTC
**Owner:** Gary Lee


[#2918] adds support for delaying node failover due to network disturbances.

If a PL rejoins the main network partition before the node failover timer 
expires, it is told to reboot by AMFD. AMFND thinks it has become headless and 
resets rcv_msg_id to 0, and shows this when it receives the reboot msg from 
AMFD:

`Rebooting OpenSAF NodeId = 0 EE Name = No EE Mapped, Reason: Message ID 
mismatch, rec xx, expected 1, OwnNodeId = xx, SupervisionTime = 60`

We can avoid this by resetting snd_msg_id for this PL in AMFD in state 
LostFound, before the reboot msg is sent.

~~~
diff --git a/src/amf/amfd/node_state.cc b/src/amf/amfd/node_state.cc
index a8659dc..9077c07 100644
--- a/src/amf/amfd/node_state.cc
+++ b/src/amf/amfd/node_state.cc
@@ -125,6 +125,8 @@ void LostFound::TimerExpired() {
   LOG_WA("Lost node '%s' has reappeared after network separation",
           node->node_name.c_str());
 
+  node->snd_msg_id = 0;
+
   if (fsm_->Active() == true) {
     LOG_WA("Sending node reboot order");
     avd_d2n_reboot_snd(node);
~~~

Then the proper message will be seen:

`Received reboot order, ordering reboot now!`




---

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

Reply via email to