[BGPCEP-561] boron: unable to rollback example-bgp-rib configuration while multipath testing Created: 26/Sep/16  Updated: 03/Mar/19  Resolved: 03/Oct/16

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Peter Gubka Assignee: Milos Fabian
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6811

 Description   

https://logs.opendaylight.org/releng/jenkins092/bgpcep-csit-1node-userfeatures-only-boron/981/archives/log.html.gz#s1-s14

It is the last test suite: 020 Bgp Functional Multipath
In the test suite teardovn we want to replace the example-bgp-rib configuration with the one which was taken in suite setup. This fails with

016-09-26 03:31:22,987 | ERROR | entLoopGroup-4-2 | NetconfOperationRouterImpl | 275 - org.opendaylight.netconf.impl - 1.1.1.SNAPSHOT | Unexpected exception during netconf operation execution
java.lang.IllegalStateException: Unable to resolve value AttributeConfigElement [defaultValue=null, value=MappedDependency

{namespace='urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:v1:codec', serviceName='binding-codec-tree-factory', refName='runtime-mapping-singleton'}

] to attribute codec-tree-factory
at org.opendaylight.controller.config.facade.xml.mapping.config.InstanceConfig.resolveConfiguration(InstanceConfig.java:131)[102:org.opendaylight.controller.config-manager-facade-xml:0.5.1.SNAPSHOT]
at org.opendaylight.controller.config.facade.xml.mapping.config.InstanceConfig.fromXml(InstanceConfig.java:192)[102:org.opendaylight.controller.config-manager-facade-xml:0.5.1.SNAPSHOT]
at org.opendaylight.controller.config.facade.xml.mapping.config.ModuleConfig.fromXml(ModuleConfig.java:61)[102:org.opendaylight.controller.config-manager-facade-xml:0.5.1.SNAPSHOT]
at org.opendaylight.controller.config.facade.xml.mapping.config.Config$1.resolveElement(Config.java:152)[102:org.opendaylight.controller.config-manager-facade-xml:0.5.1.SNAPSHOT]
at org.opendaylight.controller.config.facade.xml.mapping.config.Config$1.resolveElement(Config.java:149)[102:org.opendaylight.controller.config-manager-facade-xml:0.5.1.SNAPSHOT]



 Comments   
Comment by Milos Fabian [ 27/Sep/16 ]

Observed by user too:
https://lists.opendaylight.org/pipermail/bgpcep-dev/2016-September/000757.html

Comment by Milos Fabian [ 29/Sep/16 ]

start restconf, bgp, netconf-connector:

http://127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/odl-bgp-rib-impl-cfg:rib-impl/example-bgp-rib

output:

<codec-tree-factory xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
<type xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:v1:codec">x:binding-codec-tree-factory</type>
<name>runtime-mapping-singleton</name>
</codec-tree-factory>

The "codec-tree-factory" type does not seems to correct, should be:

<type xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">x:binding-codec-tree-factory</type>

or

<type xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:v1:codec">x:binding-v1-codec-tree-factory</type>

in CSS, there are two services registered for the same provider (module instance):

<service>
<type xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">x:binding-codec-tree-factory</type>
<instance>
<name>runtime-mapping-singleton</name>
<provider>/modules/module[type='runtime-generated-mapping'][name='runtime-mapping-singleton']</provider>
</instance>
</service>

and

<service>
<type xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:v1:codec">x:binding-v1-codec-tree-factory</type>
<instance>
<name>runtime-mapping-singleton</name>
<provider>/modules/module[type='runtime-generated-mapping'][name='runtime-mapping-singleton']</provider>
</instance>
</service>

Comment by Milos Fabian [ 29/Sep/16 ]

workaround for BGP master:
https://git.opendaylight.org/gerrit/#/c/46291/

Comment by Milos Fabian [ 03/Oct/16 ]

stable/boron: https://git.opendaylight.org/gerrit/#/c/46400/

Generated at Wed Feb 07 19:13:26 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.