- **status**: review --> fixed
- **Comment**:

changeset:   7689:7ecdf244342c
branch:      opensaf-4.7.x
user:        Nagendra Kumar<[email protected]>
date:        Fri Jun 03 14:00:30 2016 +0530
summary:     amfnd: ignore hc expiry in unhealthy state [#1858]

changeset:   7690:146134c9d4b9
branch:      opensaf-5.0.x
parent:      7687:556a6d37cc04
user:        Nagendra Kumar<[email protected]>
date:        Fri Jun 03 14:01:04 2016 +0530
summary:     amfnd: ignore hc expiry in unhealthy state [#1858]

changeset:   7691:4e3594549348
tag:         tip
parent:      7686:2791b4c274dc
user:        Nagendra Kumar<[email protected]>
date:        Fri Jun 03 14:01:16 2016 +0530
summary:     amfnd: ignore hc expiry in unhealthy state [#1858]

[staging:7ecdf2]
[staging:146134]
[staging:4e3594]




---

** [tickets:#1858] Amfnd: hc command being executed after NPI comp termination**

**Status:** fixed
**Milestone:** 4.7.2
**Created:** Wed Jun 01, 2016 12:48 PM UTC by Nagendra Kumar
**Last Updated:** Wed Jun 01, 2016 12:57 PM UTC
**Owner:** Nagendra Kumar


Steps to reproduce:
------------------------------
1. Start controller. Upload NPI comp configuration along with HC, unlock SU.
        <object class="SaAmfHealthcheck">
                
<dn>safHealthcheckKey=osafHealthCheck,safComp=AmfDemo,safSu=SU1,safSg=AmfDemo_2N,safApp=AmfDemo1</dn>
                <attr>
                        <name>saAmfHealthcheckPeriod</name>
                        <value>10000000000</value>
                </attr>
                <attr>
                        <name>saAmfHealthcheckMaxDuration</name>
                        <value>5000000000</value>
                </attr>
        </object>


2. Change the code as below:
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
@@ -821,10 +821,10 @@ uint32_t avnd_comp_clc_fsm_run(AVND_CB *
                /* stop all passive monitoring from this comp */
                avnd_comp_pm_finalize(cb, comp, comp->reg_hdl);

+               sleep(8);
                /* stop command based health check */
                if (comp->is_hc_cmd_configured)
                        avnd_comp_hc_cmd_stop(cb, comp);
-
                /* stop the active monitoring */
                if (comp->is_am_en) {
                        rc = avnd_comp_clc_cmd_execute(cb, comp, 
AVND_COMP_CLC_CMD_TYPE_AMSTOP);

    3.Lock SU.

Observed behaviour
------------------------------
HC command is being issued after component termination command is executed.

Expected behaviour
------------------
No HC should be issued after component is in terminating state.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to