osaf/services/saf/amf/amfd/sgproc.cc | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
Problem: Run time objects and attributes are not updated/deleted/created
when node-failover gots escalated for active controller and standby
controller took the active role.
Reason: Activities related to update of runtime objects and certain
attribute to IMM are given low priotiy and are pushed in Job queue by AMF.
These jobs are completed when AMF is not busy in any other high priority
activity. When node-failover is escalated, AMFD sends reboot message to
AMFND to reboot the node. In case node-failover is escalated for active
controller, it will send reboot message to AMFND which will reboot the
controller. In such a case, some IMM related activites in JOB queue will
remian uncompleted. All such activites should be compleleted before
rebooting the active controller when node-failover is escalated for it.
Fix: Patch will try to finish as many IMM related jobs as possbile just
after sending reboot message to AMFND when node-failover is escalated
for active controller.
diff --git a/osaf/services/saf/amf/amfd/sgproc.cc
b/osaf/services/saf/amf/amfd/sgproc.cc
--- a/osaf/services/saf/amf/amfd/sgproc.cc
+++ b/osaf/services/saf/amf/amfd/sgproc.cc
@@ -529,6 +529,19 @@ void avd_su_oper_state_evh(AVD_CL_CB *cb
" repair
action",
node->name.value);
avd_d2n_reboot_snd(node);
+
+ AvdJobDequeueResultT job_res =
JOB_EXECUTED;
+
+ /* Finish as many IMM jobs as
possible because active
+ controller is rebooting.
+
+ TODO: All the pending IMM
related jobs should
+ be handled by the standby
when it will become
+ active after controller
fail-over.
+ */
+ while (job_res == JOB_EXECUTED)
+ job_res =
Fifo::execute(cb->immOiHandle);
+
goto done;
} else {
avd_pg_node_csi_del_all(avd_cb,
node);
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel