Failed to send edit-config for configuration...

asked 2015-04-01 02:07:50 -0800

RMZ gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

hi there , i am also facing same issue for developing one feature for l2switch. Somebody told me its due to config xml which we deploy in karaf etc/opendaylight/karaf/l2switch folder. But i also not able to solve this issue. If anybody knows please answer.

hjdeore ( 2015-06-03 04:16:13 -0800 )edit