osaf/services/saf/amf/amfd/sg_npm_fsm.cc | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
As the NpM SU needs to be failed-over, the current code is seeking the standby SUs that can take over the Active assignments. But if no such standby SU is found, the SI depedency has not yet been updated. After SU fails-over, all SIs dependency should be updated, since the failed-over SU may be assigned Active for many SIs but not guarantee that all SIs can be failed over, and dependency rule may be dynamically changed by user during fail-over The patch updates all SIs dependency and takes action on it, this happens after SU fail-over diff --git a/osaf/services/saf/amf/amfd/sg_npm_fsm.cc b/osaf/services/saf/amf/amfd/sg_npm_fsm.cc --- a/osaf/services/saf/amf/amfd/sg_npm_fsm.cc +++ b/osaf/services/saf/amf/amfd/sg_npm_fsm.cc @@ -4205,6 +4205,12 @@ void avd_sg_npm_node_fail_func(AVD_CL_CB /* Free all the SI assignments to this SU. */ avd_sg_su_asgn_del_util(cb, su, true, false); + /* Update state of si_dep_state for all sponsored and dependent SIs */ + avd_sidep_update_si_dep_state_for_all_sis(su->sg_of_su); + /* Take actions based on the si_dep_state */ + avd_sidep_sg_take_action(su->sg_of_su); + + } else { /* if (su->list_of_susi->state == SA_AMF_HA_ACTIVE) */ /* means standby */ ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel