Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Failed to send edit-config for configuration...

I'm attempting to make a plugin for Helium SR2 config subsystem aware. There seems to be an error in my intitial configuration file, but I cannot figure out what is wrong. I have closely followed the toaster example and I cannot spot any differences between the toaster plugin and mine that would cause an error.

I get this error when installing the karaf features:

opendaylight-user@root>feature:install odl-hello-world-SR2-all
opendaylight-user@root>Exception in thread "config-pusher" java.lang.IllegalStateException: Failed to send edit-config for configuration 80-hello-world-SR2.xml(odl-hello-world-SR2-all,odl-hello-world-SR2-impl)
    at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.sendRequestGetResponseCheckIsOK(ConfigPusherImpl.java:293)
    at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.pushConfig(ConfigPusherImpl.java:244)
    at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:136)
    at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:109)
    at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:76)
    at org.opendaylight.controller.netconf.persist.impl.osgi.ConfigPersisterActivator$InnerCustomizer$1.run(ConfigPersisterActivator.java:178)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Cannot find namespace urn:opendaylight:params:xml:ns:yang:controller:config:hello-world-SR2:impl
    at org.opendaylight.controller.config.manager.impl.ServiceReferenceRegistryImpl.getServiceInterfaceName(ServiceReferenceRegistryImpl.java:271)
    at org.opendaylight.controller.config.manager.impl.ConfigTransactionControllerImpl.getServiceInterfaceName(ConfigTransactionControllerImpl.java:561)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:193)
    at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:175)
    at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:117)
    at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:54)
    at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
    at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
    at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    at com.sun.jmx.mbeanserver.MXBeanProxy$InvokeHandler.invoke(MXBeanProxy.java:150)
    at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:167)
    at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:252)
    at com.sun.proxy.$Proxy72.getServiceInterfaceName(Unknown Source)
    at org.opendaylight.controller.config.util.ConfigTransactionJMXClient.getServiceInterfaceName(ConfigTransactionJMXClient.java:226)
    at org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig.getQname(EditConfig.java:175)
    at org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig.setServicesOnTransaction(EditConfig.java:154)
    at org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig.test(EditConfig.java:120)
    at org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig.executeTests(EditConfig.java:97)
    at org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig.getResponseInternal(EditConfig.java:76)
    at org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig.handleWithNoSubsequentOperations(EditConfig.java:307)
    at org.opendaylight.controller.netconf.util.mapping.AbstractLastNetconfOperation.handle(AbstractLastNetconfOperation.java:33)
    at org.opendaylight.controller.netconf.util.mapping.AbstractNetconfOperation.handle(AbstractNetconfOperation.java:105)
    at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.sendRequestGetResponseCheckIsOK(ConfigPusherImpl.java:288)
    ... 6 more

As you can see the config pusher fails to find a namespace. I don't know what the cause could be. The namespace corresponds to what I have defined in the config YANG model and initial configuration file.

Could it be an issue with karaf 3.0.1? I read that there was a JMX bug in that version.

Additional information: