Menu

#1434 pyosaf: Add wrapped functions with automatic retries and exceptions for raw SAF functions

4.7.FC
fixed
None
enhancement
pyosaf
-
4.7.x
minor
2015-08-25
2015-08-05
No

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.

Related

Tickets: #1434
Wiki: NEWS-4.7.0

Discussion

  • Johan Mårtensson

    • status: assigned --> review
     
  • Srikanth R

    Srikanth R - 2015-08-10

    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: #1434

  • Srikanth R

    Srikanth R - 2015-08-10
    • status: review --> fixed
     
  • Anders Widell

    Anders Widell - 2015-08-10

    changeset: 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: #1434
    Commit: [fecd25]


Log in to post a comment.

MongoDB Logo MongoDB