Menu

#459 Imm: Dynamic deletion of application stream returns SA_AIS_ERR_NOT_EXIST during failover

4.5.FC
fixed
None
enhancement
imm
-
4.3MO
minor
2014-04-23
2013-06-17
No

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

The immsv should add an error string to the reply for this case.
Error string should be added for same cases in object create and object delete.

Related

Tickets: #459

Discussion

  • Madhurika Koppula

    Dynamic deletion of application stream returns SA_AIS_ERR_NOT_EXIST during failover scenario.

    Created application stream dynamically using immcfg.
    triggered failover and immediately tried to delete the application stream which created dynamically.

    snippet of console output:

    immcfg -d safLgStrCfg=applications,safApp=safLogService
    error - saImmOmCcbObjectDelete for 'safLgStrCfg=applications,safApp=safLogService' FAILED: SA_AIS_ERR_NOT_EXIST (12)
    Missing: implementer, or object, or attribute (see: immcfg -h under '—unsafe')
    SLOT3:~ # immlist safLgStrCfg=applications,safApp=safLogService
    Name Type Value(s)
    ========================================================================
    safLgStrCfg SA_STRING_T safLgStrCfg=applications
    saLogStreamSeverityFilter SA_UINT32_T 127 (0x7f)
    saLogStreamPathName SA_STRING_T /tmp/new
    saLogStreamNumOpeners SA_UINT32_T 1 (0x1)
    saLogStreamMaxLogFileSize SA_UINT64_T 300 (0x12c)
    saLogStreamMaxFilesRotated SA_UINT32_T 4 (0x4)
    saLogStreamLogFullHaltThreshold SA_UINT32_T 75 (0x4b)
    saLogStreamLogFullAction SA_UINT32_T 3 (0x3)
    saLogStreamLogFileFormat SA_STRING_T <empty>
    saLogStreamFixedLogRecordSize SA_UINT32_T 150 (0x96)
    saLogStreamFileName SA_STRING_T newapfile
    saLogStreamCreationTimestamp SA_TIME_T <empty>
    SaImmAttrImplementerName? SA_STRING_T safLogService
    SaImmAttrClassName? SA_STRING_T SaLogStreamConfig?
    SaImmAttrAdminOwnerName? SA_STRING_T <empty>
    =============================================================</empty></empty></empty>

     
  • elunlen

    elunlen - 2013-06-18

    Did you do this when running in UML? Is it possible that the file system used for log was a local file system (not accessible from both SC nodes)?

     
  • Anders Bjornerstedt

    • summary: Dynamic deletion of application stream returns SA_AIS_ERR_NOT_EXIST during failover --> Log: Dynamic deletion of application stream returns SA_AIS_ERR_NOT_EXIST during failover
     
  • Hans Feldt

    Hans Feldt - 2013-06-18

    During failover there is temporarily no implementer for log streams. Is the problem here that the delete is not responded with TRYAGAIN or what is the real issue?

    Or in other words the controller failover is not transparent enough for the operator.

     
  • Anders Bjornerstedt

    That is a good point.
    Its really quite unfortunate that SAF overloaded the ERR_NOT_EXIST error code
    for the operation such as saImmOmCcbObjectDelete() to represent both "object
    does not exist" and "implementer currently not attached".

    In this case the LOG-OI can not send any arror string, but the IMM service
    could. I will write an enhancement ticket for that particular case.
    The missing OI case will then at least be clearer when the operation is
    performed wia immcfg. This since immcfg supports fetching and printing of
    error strings.

     
  • Anders Bjornerstedt

    Actually, instead of writing a new ticket I should probably (?) convert this
    ticket.

     
  • Anders Bjornerstedt

    • summary: Log: Dynamic deletion of application stream returns SA_AIS_ERR_NOT_EXIST during failover --> Imm: Dynamic deletion of application stream returns SA_AIS_ERR_NOT_EXIST during failover
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,4 @@
     Migrated from http://devel.opensaf.org/ticket/2943
    +
    +
    +The immsv should add an error string to the reply for this case.
    
    • assigned_to: elunlen --> nobody
    • Type: defect --> enhancement
    • Component: log --> imm
    • Milestone: future --> 4.4.FC
     
  • Anders Widell

    Anders Widell - 2013-11-11
    • Milestone: 4.4.FC --> 4.5.FC
     
  • Zoran Milinkovic

    • status: unassigned --> accepted
    • assigned_to: Zoran Milinkovic
     
  • Zoran Milinkovic

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,3 +2,4 @@
    
    
     The immsv should add an error string to the reply for this case.
    +Error string should be added for same cases in object create and object delete.
    
    • status: accepted --> review
     
  • Zoran Milinkovic

     
  • Zoran Milinkovic

    • status: review --> fixed
     
  • Zoran Milinkovic

    default(4.5):

    changeset: 5170:ed192ef2fa68
    user: Zoran Milinkovic zoran.milinkovic@ericsson.com
    date: Mon Apr 14 13:56:55 2014 +0200
    summary: IMM: add error strings for CCB operations for ERR_NOT_EXIST error [#459]

    changeset: 5171:cfb838fa1c61
    tag: tip
    user: Zoran Milinkovic zoran.milinkovic@ericsson.com
    date: Mon Apr 14 13:59:21 2014 +0200
    summary: IMMTOOLS: write error strings for ERR_NOT_EXIST error code in immcfg [#459]

     

    Related

    Tickets: #459


Log in to post a comment.