Menu

#78 amf: support for si-swap admin op for Nway model.

4.7.FC
fixed
Praveen
None
enhancement
amf
d
4.4
major
2015-09-28
2013-05-13
No

Migrated from http://devel.opensaf.org/ticket/2073

performing "si-swap" on an si of models NplusM, Nway,NwayActive? is returning "ERR_NOT SUPPORTED"

Also there is no mentioning about what the return code should be for "si-swap" on NwayActive? and NoRed? Models.

console output:
amf-adm si-swap safSi=NWayActiveXAppSiorder_SI1,safApp=NWayActiveXAppSiorder
error - saImmOmAdminOperationInvoke_2 admin-op RETURNED: SA_AIS_ERR_NOT_SUPPORTED (19)

Implementation details:
In this implemntaion for NWAY model, si-swap admin op will be supported with following restrictions:
1)Operation will be rejected if Equal distribution feature is enabled.
2)operation will be rejected if SIRankedSU is configured and AutoAdjust flag is
enabled. However it will be allowed if AutoAdjust is disabled.

Reason for rejecting the operation in above two cases:
In both of these cases AutoAdjust flag is eanbled and is used to partially
adjust the SG. At the same time, autoadjust feature is used without
using autoadjustprob timer. In the equal distribution cases both active
assignments and standby assignments are equally distributed among the
available SUs without waiting for any autoadjustprob timer expiry.
Thus if si-swap is supported in this case, SG will be adjusted to
same configuration.
Same explanation is valid for other case also.

Related

Tickets: #78
Wiki: NEWS-4.7.0

Discussion

  • Nagendra Kumar

    Nagendra Kumar - 2013-05-13

    Changed 20 months ago by hafe ¶
    ■version changed from 4.2.0 to 4.0.2
    ■milestone changed from 4.2.0.GA to future_releases
    Problem not introduced in 4.2

    Changed 16 months ago by nagendra ¶
    ■type changed from defect to enhancement
    We need to implement SI-SWAP for NpM, Nway. "si-swap" on NwayActive? and NoRed? Models will result in NOT_SUPPORTED.
    SA_AIS_ERR_NOT_SUPPORTED - This administrative operation is not supported for
    the type of entity denoted by the name to which objectName points.

     
  • Praveen

    Praveen - 2015-06-10

    Currently si-swap is allowed on a SI that is protected by a 2N SG.
    As per spec, operation is valid for NWAY and NPM model also.
    Existing NWAY FSM (sg_nway_fsm.cc) already has some handling for si_switch.
    I will float a patch after adding remaining changes.

     
  • Praveen

    Praveen - 2015-06-10
    • status: unassigned --> assigned
    • assigned_to: Praveen
    • Part: - --> d
    • Milestone: future --> 4.7-Tentative
     
  • Praveen

    Praveen - 2015-08-19

    Since it is documented that si-swap is not supported for npm and nway model, this ticket is for Nway model. For NpM separate ticket can be raised in future.

     
  • Praveen

    Praveen - 2015-08-19
    • summary: si-swap operation using amf-adm utility doesn't work for models NplusM and Nway --> amf: support for si-swap admin op for Nway model.
    • status: assigned --> accepted
     
  • Praveen

    Praveen - 2015-09-16
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -9,3 +9,20 @@
     console output:
     amf-adm si-swap safSi=NWayActiveXAppSiorder_SI1,safApp=NWayActiveXAppSiorder
     error - saImmOmAdminOperationInvoke_2 admin-op RETURNED: SA_AIS_ERR_NOT_SUPPORTED (19)
    +
    +**Implementation details:**
    +In this implemntaion for NWAY model, si-swap admin op will be supported with following restrictions:
    +1)Operation will be rejected if Equal distribution feature is enabled.
    +2)operation will be rejected if SIRankedSU is configured and AutoAdjust flag is
    +enabled. However it will be allowed if AutoAdjust is disabled.
    +
    +**Reason for rejecting the operation in above two cases:**
    +In both of these cases AutoAdjust flag is eanbled and is used to partially
    +adjust the SG. At the same time, autoadjust feature is used without
    +using autoadjustprob timer. In the equal distribution cases both active
    +assignments and standby assignments are equally distributed among the
    +available SUs without waiting for any autoadjustprob timer expiry.
    +Thus if si-swap is supported in this case, SG will be adjusted to
    +same configuration.
    +Same explanation is valid for other case also.
    +
    
    • status: accepted --> review
     
  • Praveen

    Praveen - 2015-09-17

    Attached is a sample configuration for Nway model.

     
  • Praveen

    Praveen - 2015-09-28

    changeset: 6897:a8fa29e9bb10
    tag: tip
    parent: 6894:616910975364
    user: praveen.malviya@oracle.com
    date: Mon Sep 28 12:37:58 2015 +0530
    summary: amfd: support si-swap admin op for Nway model [#78]

     

    Related

    Tickets: #78

  • Praveen

    Praveen - 2015-09-28
    • status: review --> fixed
     

Log in to post a comment.

MongoDB Logo MongoDB