Menu

#2523 pyosaf: IMM OM module initialized with ERR_BAD_HANDLE

5.17.11
wontfix
None
defect
pyosaf
-
major
False
2017-10-30
2017-07-06
No

pyosaf does not handle well intialization of IMM OM module.
Regardless of error code returned from saImmOmInitialize, in _initialize() function, saImmOmAccessorInitialize is called().

Discussion

  • Anders Widell

    Anders Widell - 2017-07-28
    • Milestone: 5.17.07 --> 5.17.10
     
  • Hieu Nguyen

    Hieu Nguyen - 2017-10-03
    • status: unassigned --> accepted
    • assigned_to: Hieu Nguyen
     
  • Hieu Nguyen

    Hieu Nguyen - 2017-10-03

    In progress

     
  • Hieu Nguyen

    Hieu Nguyen - 2017-10-03

    Hi Zoran !

    All functions in pyosaf utils decorate by decorate() function in pyosaf/utils/_init_.py. You can see in _init_.py of clm/immoi/immom/log/ntf same as below:
    saImmOmInitialize = decorate(saImmOm.saImmOmInitialize)
    saImmOmSelectionObjectGet = decorate(saImmOm.saImmOmSelectionObjectGet)
    saImmOmDispatch = decorate(saImmOm.saImmOmDispatch)
    saImmOmFinalize = decorate(saImmOm.saImmOmFinalize)
    ....

    All error codes returned handle by decorate() function (decorator of Python). We have been handle ERR_BAD_HANDLE in this function with stop app and raise exception.
    if error != eSaAisErrorT.SA_AIS_OK:
    raise_saf_exception(function, error)

    Do you have any ideas about this?

     

    Last edit: Hieu Nguyen 2017-10-03
    • Zoran Milinkovic

      Hi Hieu,

      Just talked with a girl who was involved in raising this ticket, and she said that it's ok.
      So, you have ack from me on this.

      Thanks,
      Zoran

      -----Original Message-----
      From: Hieu Nguyen [mailto:dhiengu@users.sf.net]
      Sent: den 3 oktober 2017 10:30
      To: [opensaf:tickets] 2523@tickets.opensaf.p.re.sf.net
      Subject: [opensaf:tickets] #2523 pyosaf: IMM OM module initialized with ERR_BAD_HANDLE

      Hi Zoran !

      All functions in pyosaf utils decorate by decorate() function in pyosaf/utils/init.py. You can see in init.py of clm/immoi/immom/log/ntf same as below:
      saImmOmInitialize = decorate(saImmOm.saImmOmInitialize)
      saImmOmSelectionObjectGet = decorate(saImmOm.saImmOmSelectionObjectGet)
      saImmOmDispatch = decorate(saImmOm.saImmOmDispatch)
      saImmOmFinalize = decorate(saImmOm.saImmOmFinalize)
      ....

      All error codes returned handle by decorate() function (decorator of Python). We have been handle ERR_BAD_HANDLE in this function with stop app and raise exception.
      if error != eSaAisErrorT.SA_AIS_OK:
      raise_saf_exception(function, error)

      Do you have any ideas about this?


      [tickets:#2523] pyosaf: IMM OM module initialized with ERR_BAD_HANDLE

      Status: accepted
      Milestone: 5.17.10
      Created: Thu Jul 06, 2017 01:40 PM UTC by Zoran Milinkovic Last Updated: Tue Oct 03, 2017 06:24 AM UTC
      Owner: Hieu Nguyen

      pyosaf does not handle well intialization of IMM OM module.
      Regardless of error code returned from saImmOmInitialize, in _initialize() function, saImmOmAccessorInitialize is called().


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/opensaf/tickets/2523/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Hieu Nguyen

    Hieu Nguyen - 2017-10-12
    • status: accepted --> wontfix
     
  • Hieu Nguyen

    Hieu Nguyen - 2017-10-12

    I have been discuss with Zoran and set 'wontfix' to this ticket:


    Hi Hieu,

    Just talked with a girl who was involved in raising this ticket, and she said that it's ok.
    So, you have ack from me on this.

    Thanks,
    Zoran


     

Log in to post a comment.