Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-1409

OptimisticLockFailedException from IPv6 service bind and unbind

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Fluorine-SR1
    • Component/s: ipv6service
    • Labels:

      Description

      The following exception was thrown by IPv6 service module during IPv6 service bind and unbind operations. This needs to be avoided during multiple IPv6 service interface binding and unbinding operations.

       

      2018-08-13T08:09:10,338 | ERROR | org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port_AsyncClusteredDataTreeChangeListenerBase-DataTreeChangeHandler-0 | AsyncClusteredDataTreeChangeListenerBase | 272 - org.opendaylight.genius.mdsalutil-api - 0.4.3.SNAPSHOT | Thread terminated due to uncaught exception: org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port_AsyncClusteredDataTreeChangeListenerBase-DataTreeChangeHandler-0
      java.lang.RuntimeException: OptimisticLockFailedException{message=Optimistic lock failed for path /(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-bindings/services-info/services-info[

      {(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)interface-name=61dcb67d-a8d5-4d43-9d5b-63f202b2a090, (urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-mode=(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-mode-ingress}

      ]/bound-services/bound-services[\{(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-priority=7}], errorList=[RpcError [message=Optimistic lock failed for path /(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-bindings/services-info/services-info[\{(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)interface-name=61dcb67d-a8d5-4d43-9d5b-63f202b2a090, (urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-mode=(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-mode-ingress}]/bound-services/bound-services[\{(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-priority=7}], severity=ERROR, errorType=APPLICATION, tag=resource-denied, applicationTag=null, info=null, cause=org.opendaylight.yangtools.yang.data.api.schema.tree.ConflictingModificationAppliedException: Node was replaced by other transaction.]]}
      at org.opendaylight.genius.mdsalutil.MDSALUtil.syncWrite(MDSALUtil.java:584) [272:org.opendaylight.genius.mdsalutil-api:0.4.3.SNAPSHOT]
      at org.opendaylight.netvirt.ipv6service.utils.Ipv6ServiceUtils.bindIpv6Service(Ipv6ServiceUtils.java:470) [367:org.opendaylight.netvirt.ipv6service-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.netvirt.ipv6service.IfMgr.addHostIntf(IfMgr.java:368) [367:org.opendaylight.netvirt.ipv6service-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.netvirt.ipv6service.NeutronPortChangeListener.addInterfaceInfo(NeutronPortChangeListener.java:130) [367:org.opendaylight.netvirt.ipv6service-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.netvirt.ipv6service.NeutronPortChangeListener.add(NeutronPortChangeListener.java:68) [367:org.opendaylight.netvirt.ipv6service-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.netvirt.ipv6service.NeutronPortChangeListener.add(NeutronPortChangeListener.java:30) [367:org.opendaylight.netvirt.ipv6service-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase$DataTreeChangeHandler.run(AsyncClusteredDataTreeChangeListenerBase.java:161) [272:org.opendaylight.genius.mdsalutil-api:0.4.3.SNAPSHOT]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
      at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: org.opendaylight.controller.md.sal.common.api.data.OptimisticLockFailedException: Optimistic lock failed for path /(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-bindings/services-info/services-info[\{(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)interface-name=61dcb67d-a8d5-4d43-9d5b-63f202b2a090, (urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-mode=(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-mode-ingress}]/bound-services/bound-services[\{(urn:opendaylight:genius:interfacemanager:servicebinding?revision=2016-04-06)service-priority=7}]

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              Karthikeyan Karthikeyan Krishnan
              Reporter:
              Karthikeyan Karthikeyan Krishnan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week
                1w