pyosaf does not handle well intialization of IMM OM module.
Regardless of error code returned from saImmOmInitialize, in _initialize() function, saImmOmAccessorInitialize is called().
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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().
In progress
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
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/
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