Uploaded image for project: 'SEBA'
  1. SEBA
  2. SEBA-721

Update get_synchronizer_function() in orm.py for new synchronizer library location

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: SEBA 2.0
    • Component/s: NEM
    • Labels:
      None

      Description

      The syncrhonizer library is no longer installed in /opt/xos/synchronizer/new_base, but that path is hardcoded into get_synchronizer_function():

      https://github.com/opencord/xos/blob/2fd7b879bb845be938f7536baf1f2ea4c499a7f1/lib/xos-api/xosapi/orm.py#L53

      This function is used to log the top-level synchronizer function from which save() on a model is called.   This information is used to analyze the synchronizers for race conditions in modifying the models.  

      Fix the function so that it works correctly.

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            acb Andy Bavier
            Reporter:
            acb Andy Bavier
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes