Menu

#917 LOG: App stream with special file name creates runtime object that is not removed correctly

4.5.0
fixed
None
defect
log
tools
major
2014-09-29
2014-05-20
elunlen
No

1. Problem:

The new application log stream with name "safLgStrCfg=Test" (SaLogStreamConfig) created by saflogger can not be listed or deleted.
Example:
SC-1:~ # saflogger -a safLgStrCfg=Test "Hello world"
SC-1:~ # immfind safLgStrCfg=Test
safLgStrCfg=Test
SC-1:~ # immlist safLgStrCfg=Test
error - saImmOmAccessorGet_2 FAILED: SA_AIS_ERR_NO_RESOURCES (18)
SC-1:~ # immcfg -d safLgStrCfg=Test
error - saImmOmCcbObjectDelete for 'safLgStrCfg=Test' FAILED: SA_AIS_ERR_BAD_OPERATION (20)

2. Analysis:

The saflogger doesn’t support creating a configuration log stream. It can only open the existing configuration log stream.

When using saflogger to create a new app log stream with name "safLgStrCfg=Test", osaflogd will create a runtime object "safLgStrCfg=Test". Then saflogger closes the stream and tries to delete this object. Because the prefix name is not "safLgStr=", it cannot be removed from IMM.

So after that, runtime object "safLgStrCfg=Test" cannot be deleted by using OM immcfg, and cannot be listed by using immlist cause the stream of this object has already closed.

Related

Tickets: #917
Wiki: ChangeLog-4.3.3
Wiki: ChangeLog-4.4.1

Discussion

  • Mathi Naickan

    Mathi Naickan - 2014-06-13
    • status: unassigned --> assigned
    • assigned_to: Mathi Naickan
     
  • Mathi Naickan

    Mathi Naickan - 2014-07-08

    One part of the solution is in the attached patch. Basically delete what is created by LOG service.

     
  • Mathi Naickan

    Mathi Naickan - 2014-07-21

    Pushed this fix in the following changesets. The fix ensures that all rtobjects created by log is deleted.

    We also need to discuss(once lennart is back from holiday) whether log should have strict check for the rdn in the creation flow also.

    [staging:39ffb9]
    [staging:0b35a9]
    [staging:03d9d8]

    changeset: 5472:39ffb9cd77e5
    branch: opensaf-4.3.x
    parent: 5467:416bbfa19298
    user: Mathivanan N.P.mathi.naickan@oracle.com
    date: Mon Jul 21 14:08:01 2014 -0400
    summary: log: delete associated runtime object whenever app stream is deleted [#917]

    changeset: 5473:0b35a99df663
    branch: opensaf-4.4.x
    parent: 5468:2a56621b7c53
    user: Mathivanan N.P.mathi.naickan@oracle.com
    date: Mon Jul 21 14:08:01 2014 -0400
    summary: log: delete associated runtime object whenever app stream is deleted [#917]

    changeset: 5474:03d9d861d188
    tag: tip
    parent: 5471:6e81b33f10d6
    user: Mathivanan N.P.mathi.naickan@oracle.com
    date: Mon Jul 21 14:08:01 2014 -0400
    summary: log: delete associated runtime object whenever app stream is deleted [#917]

     

    Related

    Tickets: #917
    Commit: [03d9d8]
    Commit: [0b35a9]
    Commit: [39ffb9]

  • Anders Widell

    Anders Widell - 2014-08-15
    • Milestone: 4.5.FC --> 4.5.0
     
  • Mathi Naickan

    Mathi Naickan - 2014-09-29
    • status: assigned --> fixed
     

Log in to post a comment.