osaf/services/saf/amf/amfd/si_dep.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Problem: When SI dependency is configured across the application, then during
node lock AMF is not performing
failover dependent even after successful failover of sponsor. Instead if this
AMF deletes both active and
standby assignmetns of the dependent SI.
Reason: During node lock AMF sends quisced assignments to all the SUs hosted on
the node. In the present
case successful quiesced response first for dependent. Since AMF does not see
any active sponsor for this dependent, it deletes all the assignment of this
dependent SI ignoring the case that its sponsor it in the failover phase.
Fix: Since sponsor is undergoing failover, AMF should mark the dep state of
dependent SI as FAILOVER_UNDER_PROGRESS. Once failover of sponsor completes,
dependent should be failovered to its respetive standby.
diff --git a/osaf/services/saf/amf/amfd/si_dep.cc
b/osaf/services/saf/amf/amfd/si_dep.cc
--- a/osaf/services/saf/amf/amfd/si_dep.cc
+++ b/osaf/services/saf/amf/amfd/si_dep.cc
@@ -1765,7 +1765,8 @@ bool avd_sidep_is_si_failover_possible(A
TRACE_ENTER2("SI: '%s'",si->name.value);
/* Role failover triggered because of node going down */
- if(su->su_on_node->saAmfNodeOperState == SA_AMF_OPERATIONAL_DISABLED) {
+ if ((su->su_on_node->saAmfNodeOperState == SA_AMF_OPERATIONAL_DISABLED)
||
+ (su->su_on_node->saAmfNodeAdminState ==
SA_AMF_ADMIN_LOCKED)) {
assignmemt_status = si_assignment_check_during_failover(si, su,
&active_sisu, &valid_stdby_sisu);
if (si->spons_si_list == NULL) {
/* Check if the susi is in unassigned state
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel