The SAF functions need to be called in a retry loop to handle timeouts properly. This is done inconsistently in the higher level Python bindings (pyosaf/utils). They also return errors as ints while the code in pyosaf/utils changes this to throw exceptions.
This should be handled consistently by decorating the raw functions with retry logic and raising of exceptions on failure.
changeset: 6710:687437427237
tag: tip
user: Johan Mårtensson johan.o.martensson@ericsson.com
date: Mon Aug 10 15:58:29 2015 +0530
summary: pyosaf: Change to use 60 retries to align with previous behavior [#1434]
changeset: 6709:7a6b4f3f3451
user: Johan Mårtensson johan.o.martensson@ericsson.com
date: Mon Aug 10 15:58:12 2015 +0530
summary: pyosaf: SafException is moved to pyosaf.utils, remove un-used pyosaf.utils.immom.common [#1434]
changeset: 6708:0d5dc1365261
user: Johan Mårtensson johan.o.martensson@ericsson.com
date: Mon Aug 10 15:56:24 2015 +0530
summary: pyosaf: Make Ccb, InstanceIterator and SearchIterator use decorated SAF functions [#1434]
changeset: 6707:400aa0cfb95b
user: Johan Mårtensson johan.o.martensson@ericsson.com
date: Mon Aug 10 15:56:10 2015 +0530
summary: pyosaf: Use decorated saImmOm functions in immom/init.py [#1434]
changeset: 6706:9ae8ba4f0dbc
user: Johan Mårtensson johan.o.martensson@ericsson.com
date: Mon Aug 10 15:55:43 2015 +0530
summary: pyosaf: Add decorated versions of each saImmOm* function in immom [#1434]
Related
Tickets:
#1434changeset: 6713:fecd25da3804
tag: tip
user: Anders Widell anders.widell@ericsson.com
date: Mon Aug 10 16:06:51 2015 +0200
summary: pyosaf: Fix build problem introduced in 6709:7a6b4f3f3451 [#1434]
[staging:fecd25]
Related
Tickets:
#1434Commit: [fecd25]