Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-801

restconf doesn't work with the odl-mdsal-all feature

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Helium
    • None
    • mdsal
    • None
    • Operating System: All
      Platform: All

    • 1789
    • High

    Description

      I installed the odl-mdsal-all feature but when I try to access something via restconf it fails with error:

      "Transaction factory was closed. No further operations allowed."

      The problem is due to the odl-mdsal-clustering feature listed after odl-restconf. The restconf module is started first and it gets the DOMDataBroker created via 01-mdsal.xml injected. Then the clustering module is started which creates a new DOMDataBroker instance and closes the initial one. Thus the restconf module is left holding a stale DOMDataBroker instance.

      The workaround is to move the odl-mdsal-clustering feature before odl-restconf. This works properly.

      The restconf module should be more resilient to dependency changes. It caches the DOMDataBroker instance obtained from ProviderSession. It also caches the ProviderSession so it seems it should obtain the DOMDataBroker dynamically when needed.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpantelis Tom Pantelis
            tpantelis Tom Pantelis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: