In roaming SC, shutdown standby SC to make another
takes STANDBY role. AMFD on standby was hung before
shutdown. So during the new node change to STANDBY,
it receives the AMFD up/down event from the old STANDBY
and it default set role to ACTIVE instead of the ACTIVE
already exist.
The fix is to ignore AMFD event on new standby.
---
src/fm/fmd/fm_mds.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/fm/fmd/fm_mds.cc b/src/fm/fmd/fm_mds.cc
index c5b3581..2fe46ab 100644
--- a/src/fm/fmd/fm_mds.cc
+++ b/src/fm/fmd/fm_mds.cc
@@ -571,6 +571,11 @@ static uint32_t fm_mds_svc_evt(FM_CB *cb,
case NCSMDS_SVC_ID_AVD:
if (svc_evt->i_node_id != cb->node_id) {
+ if (cb->amfd_down == false) {
+ LOG_NO("Ignore AMFD RED_UP of node: %x",
+ (unsigned)svc_evt->i_node_id);
+ break;
+ }
TRACE(
"Peer amfd status change: %d -> %d, peer node id is: %x, "
"cluster size is %llu",
--
2.7.4
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel