Menu

#1761 Amf: Standby Amfd crash during SU delete

4.6.2
fixed
None
defect
amf
d
5.0.FC
major
2016-04-22
2016-04-14
No

Similar as https://sourceforge.net/p/opensaf/tickets/1683/

Steps to reproduce:

  1. Start one controllers.
  2. Upload the Amf demo configuration hosting two SUs on SC-1.
  3. In Standby Amfd keep a sleep of 7 sec after confg read and before applier set as below:

+++ b/osaf/services/saf/amf/amfd/role.cc
@@ -219,6 +219,9 @@ uint32_t avd_standby_role_initialization
}
cb->init_state = AVD_CFG_DONE;
LOG_ER("1. Waiting ..........................");
sleep(7);
LOG_ER("2. Waiting ..........................");

if (avd_imm_applier_set() != SA_AIS_OK) {
        LOG_ER("avd_imm_applier_set FAILED");
  1. Start Standby controller. When Amfd comes up and waiting for 7 sec, delete Comp as below:
    immcfg -d safComp=AmfDemo,safSu=SU1,safSg=AmfDemo_2N,safApp=AmfDemo1
  2. When Amfd wakes up and become applier, delete SU:
    immcfg -d safSu=SU1,safSg=AmfDemo_2N,safApp=AmfDemo1

Observed behaviour:

Standby Amfd crashes at su.cc:89: remove_from_model: Assertion 'list_of_comp.empty() == true' failed.
Describe how the system behaved

Expected behaviour

Standby Amfd shouldn't crash.

Error messages

SC-2 osafamfd[9043]: su.cc:89: remove_from_model: Assertion 'list_of_comp.empty() == true' failed.

Related

Tickets: #1761
Wiki: ChangeLog-4.6.2

Discussion

  • Nagendra Kumar

    Nagendra Kumar - 2016-04-14
    • status: accepted --> review
     
  • Nagendra Kumar

    Nagendra Kumar - 2016-04-22
    • status: review --> fixed
     
  • Nagendra Kumar

    Nagendra Kumar - 2016-04-22
     
  • Nagendra Kumar

    Nagendra Kumar - 2016-04-22

    changeset: 7531:52ee7f783197
    branch: opensaf-4.6.x
    tag: tip
    parent: 7527:b4aa5541def6
    user: Nagendra Kumarnagendra.k@oracle.com
    date: Fri Apr 22 17:02:37 2016 +0530
    summary: amfd: fix compilation issue [#1761]

     

    Related

    Tickets: #1761


Log in to post a comment.