Hi Thang,
Amf is returning TRY_AGAIN immedietely to the admin client i.e. here the admin 
client is amf-admin. You can check the logs in the syslog file to validate. The 
patch code is:

    case SA_AMF_ADMIN_REPAIRED:
      if (node->saAmfNodeOperState == SA_AMF_OPERATIONAL_ENABLED) {
        report_admin_op_error(
            immOiHandle, invocation, SA_AIS_ERR_NO_OP, nullptr,
            "Admin repair request for '%s', op state already enabled",
            node->name.c_str());
        goto done;
      }

      if (node->node_info.member == false) { 
        LOG_NO("'%s' ADMIN_REPAIRED: CLM node is not member",
            node->name.c_str());  
        avd_saImmOiAdminOperationResult(immOiHandle, invocation, 
SA_AIS_ERR_TRY_AGAIN);   <============= Here
        goto done;
      }

The problem/implemenetation is in amf-admin/immadmin that when it gets 
TRY_AGAIN from Amf, then it keeps on trying again the same admin operation till 
it doesn't succeed or until amf-admin cli command doesn't timeout.

If you can write a C programs and use Imm OM api for performing admin command, 
then you get TRY_AGAIN immedietely.
Please confirm, Thang?


---

** [tickets:#3204] amf: support of node repair feature**

**Status:** review
**Milestone:** 5.20.08
**Created:** Mon Jul 20, 2020 11:57 PM UTC by Anand Sundararaj
**Last Updated:** Mon Jul 27, 2020 09:35 AM UTC
**Owner:** Anand Sundararaj


Support of Administrative operation "SA_AMF_ADMIN_REPAIRED" on Amf Node
Amf Specs B.4.1 section: 9.4.10 SA_AMF_ADMIN_REPAIRED


---

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.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to