Ack, code review only/Regards HansN
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: den 1 september 2014 13:41
To: Hans Feldt; [email protected]
Cc: [email protected]
Subject: [devel] [PATCH 1 of 1] amfnd : do not send susi success response
during su-failover [#1015]
osaf/services/saf/amf/amfnd/clc.cc | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
SIs are not assigned to SUs when component's rejection of active assignment
leads to su-failover during si-swap (SI dependency is enabled).
When si-swap is in progress it gives active assignment to the standby SU for
dependents after active becomes quiesced.One of the components rejects active
assignment and AMFND executes su-failover recovery.
During su-failover recovery, AMFND is reporting success for active assignments
on the faulty component when it gets cleaned up successfully.
In su-failover all assignments will be failovered without quiesced and removed
state by AMFD when it gets su-failover request from AMFND. Since AMFND reports
susi sucess, AMFD gives standby assignments to SU1. Instead AMFND should
directly send su-failover request to AMFD and AMFD will give active assignment
back to quiesced SU1.
Patch ensures that AMFND will not send SUSI success to AMFD when components
fault with su-failover recovery during assignments.
diff --git a/osaf/services/saf/amf/amfnd/clc.cc
b/osaf/services/saf/amf/amfnd/clc.cc
--- a/osaf/services/saf/amf/amfnd/clc.cc
+++ b/osaf/services/saf/amf/amfnd/clc.cc
@@ -2095,11 +2095,12 @@ uint32_t avnd_comp_clc_terming_cleansucc
}
/*
- * su-sis may be in assigning/removing state. signal csi
- * assign/remove done so that su-si assignment/removal algo can proceed.
+ * su-sis may be in assigning/removing state. Except su-failover case,
+ * signal csi assign/remove done so that su-si assignment/removal algo
+ * can proceed.
*/
- avnd_comp_cmplete_all_assignment(cb, comp);
-
+ if (sufailover_in_progress(su) == false)
+ avnd_comp_cmplete_all_assignment(cb, comp);
avnd_comp_curr_info_del(cb, comp);
/* reset the comp-reg & instantiate params */
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel