[CONTROLLER-1821] Unable to push configuration due to missing yang models Created: 05/Apr/18  Updated: 05/Apr/18  Resolved: 05/Apr/18

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

Type: Bug Priority: Medium
Reporter: Paul Greenberg Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Nitrogen.

opendaylight-user@root>info
Karaf
  Karaf version               4.0.10
  Karaf home                  /opt/odl
  Karaf base                  /opt/odl
  OSGi Framework              org.eclipse.osgi-3.10.101.v20150820-1432

JVM
  Java Virtual Machine        OpenJDK 64-Bit Server VM version 25.144-b01
  Version                     1.8.0_144
  Vendor                      Oracle Corporation
  Pid                         32470
  Uptime                      11 minutes
  Total compile time          2 minutes
Threads
  Live threads                228
  Daemon threads              100
  Peak                        233
  Total started               462
Memory
  Current heap size           643,168 kbytes
  Maximum heap size           1,864,192 kbytes
  Committed heap size         1,125,376 kbytes
  Pending objects             0
  Garbage collector           Name = 'PS Scavenge', Collections = 338, Time = 8.191 seconds
  Garbage collector           Name = 'PS MarkSweep', Collections = 6, Time = 2.280 seconds
Classes
  Current classes loaded      24,475
  Total classes loaded        24,486
  Total classes unloaded      11
Operating system
  Name                        Linux version 3.10.0-514.21.1.el7.x86_64
  Architecture                amd64
  Processors                  4
opendaylight-user@root>


 Description   

Multiple errors on startup

2018-04-04 21:29:52,255 | ERROR | config-pusher    | ConfigPusherImpl                 | 191 - org.opendaylight.controller.config-persister-impl - 0.7.1 | Unable to push configuration due to missing yang models. Yang models that are missing, but required by the configuration: [urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector-cfg&revision=2015-08-03]. For each mentioned model check:  1. that the mentioned yang model namespace/name/revision is identical to those in the yang model itself 2. the yang file is present in the system 3. the bundle with that yang file is present in the system and active 4. the yang parser did not fail while attempting to parse that model
2018-04-04 21:29:52,256 | ERROR | config-pusher    | ConfigPusherImpl                 | 191 - org.opendaylight.controller.config-persister-impl - 0.7.1 | Failed to apply configuration snapshot: 32-ofconfig-nodes-config.xml(features-of-config,features-of-config)
java.lang.IllegalStateException: Unable to push configuration due to missing yang models. Required yang models that are missing: [urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector-cfg&revision=2015-08-03]
	at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.waitForCapabilities(ConfigPusherImpl.java:202)[191:org.opendaylight.controller.config-persister-impl:0.7.1]
	at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:152)[191:org.opendaylight.controller.config-persister-impl:0.7.1]
	at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:122)[191:org.opendaylight.controller.config-persister-impl:0.7.1]
	at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.processSingle(ConfigPusherImpl.java:76)[191:org.opendaylight.controller.config-persister-impl:0.7.1]
	at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:68)[191:org.opendaylight.controller.config-persister-impl:0.7.1]
	at org.opendaylight.controller.config.persist.impl.osgi.ConfigPersisterActivator.lambda$startPusherThread$0(ConfigPersisterActivator.java:129)
	at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
Caused by: org.opendaylight.controller.config.persist.impl.ConfigPusherImpl$NotEnoughCapabilitiesException: Not enough capabilities for 32-ofconfig-nodes-config.xml(features-of-config,features-of-config). Expected but not found: [urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector-cfg&revision=2015-08-03]
	at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.waitForCapabilities(ConfigPusherImpl.java:182)[191:org.opendaylight.controller.config-persister-impl:0.7.1]
	... 6 more


 Comments   
Comment by Tom Pantelis [ 05/Apr/18 ]

The config system is deprecated in lieu of blueprint and there's no upstream projects still using it. The error indicates odl-sal-netconf-connector-cfg which I believe was removed in Nitrogen - not sure how/why that ended up in your install.

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