[CONTROLLER-1375] Netconf connector does not work when controller is loaded with many features Created: 19/Jun/15  Updated: 19/Oct/17  Resolved: 22/Jun/15

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: Lithium
Fix Version/s: None

Type: Bug
Reporter: Luis Gomez Assignee: Maros Marsalek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Zip Archive logs.zip    
External issue ID: 3814

 Description   

Steps to reproduce:

  • start karaf
  • feature:install odl-netconf-connector-all odl-restconf-all

Verify controller can mount devices normally

Now install other ODL features:

  • feature:repo-add mvn:org.opendaylight.integration/features-integration-test/0.3.0-SNAPSHOT/xml/features
  • feature:install odl-integration-compatible-with-all

After that try to mount again and you see 404 Bad Request



 Comments   
Comment by Luis Gomez [ 19/Jun/15 ]

typo: I mean 400 Bad Request

Comment by Maros Marsalek [ 19/Jun/15 ]

Added log. Doesnt seem like a netconf issue.

In the logs you can see snmp4sdn issues during startup (does not affect netconf) but later the reconfiguration fails on forwarding manager due to class loading issues in binding codecs.

Comment by Maros Marsalek [ 19/Jun/15 ]

Attachment logs.zip has been added with description: log from reproducing

Comment by Maros Marsalek [ 19/Jun/15 ]

With this fix in yangtools: https://git.opendaylight.org/gerrit/#/c/22986/2 netconf works fine. Tested on latest RC, the fix in yangtools got rid of the class loading issues.

It just took some time for netconf connector to come up after feature odl-integration-compatible-with-all is installed. The behavior of the loopback netconf connector is to reconnect when yang schemas are changed in ODL so make sure you give it enough time after you perform the install.

Please verify after the yangtools fix is merged and close this bug.

Comment by Luis Gomez [ 20/Jun/15 ]

Hi Maros,

Tony's patch worked for other bugs but unfortunately not for this one. I still see same issue.

BR/Luis

Comment by Maros Marsalek [ 22/Jun/15 ]

Tony's patch works for this as well. I have tested this manually and it worked. As I mentioned, it just took some time for ODL to spawn/configure all the modules and then for the loopback connector to reconnect and download all the new schemas. I had to wait 2-3 minutes to see that controller-config was reconnected successfully. Could you give it one more try, but give it even more time ?

Comment by Tony Tkacik [ 22/Jun/15 ]

Fixed by bugfix for yangtools
YANGTOOLS-470 - Augmentation codecs may be loaded after codec creation.

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