[YANGTOOLS-447] Change in yangtools results in exception when loading SFC Created: 15/Apr/15  Updated: 10/Apr/22  Resolved: 17/Apr/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Thomas Bachman Assignee: Tony Tkacik
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: 2997
Priority: Highest

 Description   

While attempting to run the SFC project (integrating with GBP), I got the following exception:

http://pastebin.com/0wQ95Rs8

I cloned yangtools locally and built it using a git hash from yesterday:

commit 98dbda7e7184036e0bc9144c0b2b1b9203a9f500
Author: Tony Tkacik <ttkacik@cisco.com>
Date: Mon Apr 13 18:48:43 2015 +0200

YANGTOOLS-444 - Added Missing space separator for list keys in yin format

Change-Id: Ibb943777604f61dde20bb84fce2a7f13c38333c7
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>

and it works. If I go to the one after it:

commit c7c67c1ad9fbd77e2705345400f1db5b3d46e200
Merge: 98dbda7 6041965
Author: Robert Varga <nite@hq.sk>
Date: Tue Apr 14 10:38:31 2015 +0000

Merge "YANGTOOLS-363: Make sure JSON and XML codecs are not losing constraints."

It fails.



 Comments   
Comment by Tony Tkacik [ 15/Apr/15 ]

Please provide additional details about which data was posted using RESTCONF or written using datastore in order to replicate this bug.

Comment by Tony Tkacik [ 15/Apr/15 ]

https://git.opendaylight.org/gerrit/#/c/18311/

Seems instanceof checks were bit off in JSON codec.

Comment by Thomas Bachman [ 15/Apr/15 ]

It sounds like you've been able to reproduce the issue and found it's cause, but just in case you hadn't – I get this simply by loading the following features from SFC:

feature:install odl-sfc-core odl-sfcofl2 odl-sfc-ui odl-sfc-provider odl-sfc-test-consumer odl-sfc-model odl-sfc-netconf odl-sfc-sb-rest odl-sfc-ovs

Comment by Tony Tkacik [ 15/Apr/15 ]

That would effectivelly mean some SFC component is posting / commiting data back to controller via Restconf - since only data exiting / entering system via RESTCONF+JSON were affected.

Comment by Andrej Kincel [ 16/Apr/15 ]

That's true.

odl-sfc-provider contains SfcProviderBootstrapRestAPI class, which is populating controller with bootstrap data contained in sfc-jsonconfig bundle.

Generated at Wed Feb 07 20:53:16 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.