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

KushalKumar's profile - activity

2017-07-23 23:19:05 -0700 received badge  Famous Question (source)
2017-07-23 21:44:01 -0700 received badge  Popular Question (source)
2017-07-23 21:44:01 -0700 received badge  Notable Question (source)
2017-06-21 11:00:52 -0700 received badge  Famous Question (source)
2017-06-19 08:56:21 -0700 received badge  Famous Question (source)
2017-06-12 22:31:19 -0700 received badge  Notable Question (source)
2017-06-07 13:30:08 -0700 received badge  Popular Question (source)
2017-05-31 05:11:14 -0700 received badge  Popular Question (source)
2017-05-31 05:11:14 -0700 received badge  Notable Question (source)
2017-05-31 05:11:14 -0700 received badge  Famous Question (source)
2017-03-02 00:40:00 -0700 received badge  Famous Question (source)
2017-02-27 21:24:47 -0700 received badge  Popular Question (source)
2017-02-19 09:12:30 -0700 received badge  Popular Question (source)
2017-02-19 09:12:30 -0700 received badge  Notable Question (source)
2017-02-19 05:01:09 -0700 answered a question Feature install fails

Thanks everybody for your inputs.

Karthik,

Your approach works but it is not recommended. Can anybody suggest a recommended approach. However, I wanted to know if I want to deploy my own created application in Opendaylight Lithium (tar ball download from official page - distribution-karaf-0.3.0-Lithium ), is it necessary to use project archetypes of the exact same version of Lithium. Now if archetype of this version is not available, I try using some other version of lithium. Now this is where I get the above error while adding it's feature.xml on karaf console.

Sunil and Aditalhouet,

Thanks for your suggestions. I tried your approaches but did not work.

To all, Please suggest.

2016-11-29 08:48:37 -0700 received badge  Popular Question (source)
2016-11-29 08:48:37 -0700 received badge  Notable Question (source)
2016-10-28 14:14:14 -0700 received badge  Famous Question (source)
2016-09-20 00:18:48 -0700 received badge  Notable Question (source)
2016-09-16 01:16:39 -0700 received badge  Student (source)
2016-09-13 04:02:15 -0700 received badge  Popular Question (source)
2016-09-07 15:35:56 -0700 asked a question Feature install fails

Hi,

I am trying to build openaylight coretutorials(lithium build) and the install ncmount application by adding it's feature repository to ODL (distribution-karaf-0.3.0-Lithium) from karaf console. But when I fire the command feature:install odl-ncmount, I get the below error. Can somebody please help me on how to fix this.

Error executing command: Error resolving artifact org.opendaylight.yangtools:features-yangtools:xml:features:0.7.5-SNAPSHOT: Could not find artifact org.opendaylight.yangtools:features-yangtools:xml:features:0.7.5-SNAPSHOT in defaultlocal (file:/home/sdn/distribution-karaf-0.3.0-Lithium/system/)

Regards, Kushal Kumar, TCS

2016-08-10 20:44:27 -0700 asked a question Split packages in Import

Hi,

I have been working on a MD-SAL plugin which imports certain dependencies. I am facing this split package warning , which eventually causes error, and I am looking forward for a solution to this.

[WARNING] Bundle org.opendaylight.ncrpcadaptor:ncrpcadaptor-impl:bundle:1.0.0-SNAPSHOT : Split package, multiple jars provide the same package:org/springframework/aop/support Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning Package found in [Jar:spring-aop, Jar:org.springframework.aop]

Class path [Jar:., Jar:ncrpcadaptor-api, Jar:junit, Jar:hamcrest-core, Jar:mockito-all, Jar:json-simple, Jar:kie-api, Jar:slf4j-api, Jar:kie-internal, Jar:mvel2, Jar:drools-core, Jar:commons-codec, Jar:drools-compiler, Jar:antlr-runtime, Jar:ecj, Jar:xstream, Jar:xmlpull, Jar:xpp3_min, Jar:protobuf-java, Jar:drools-decisiontables, Jar:drools-templates, Jar:poi-ooxml, Jar:poi-ooxml-schemas, Jar:xmlbeans, Jar:stax-api, Jar:dom4j, Jar:xml-apis, Jar:poi, Jar:org.osgi.core, Jar:drools-osgi-integration, Jar:kie-spring, Jar:jbpm-flow, Jar:joda-time, Jar:spring-tx, Jar:spring-core, Jar:spring-beans, Jar:spring-context, Jar:spring-aop, Jar:aopalliance, Jar:spring-expression, Jar:spring-osgi-core, Jar:spring-osgi-io, Jar:org.springframework.aop, Jar:com.springsource.org.aopalliance, Jar:sal-netconf-connector, Jar:netconf-config-dispatcher, Jar:sal-common-util, Jar:sal-common-api, Jar:sal-connector-api, Jar:sal-core-api, Jar:yang-data-api, Jar:yang-model-api, Jar:ietf-netconf-monitoring, Jar:ietf-netconf-notifications, Jar:ietf-netconf, Jar:netconf-client, Jar:netconf-api, Jar:ietf-netconf-monitoring-extension, Jar:netconf-netty-util, Jar:netconf-mapping-api, Jar:netty-handler, Jar:sshd-core, Jar:nagasena, Jar:nagasena-rta, Jar:netconf-util, Jar:protocol-framework, Jar:netty-buffer, Jar:netty-codec, Jar:netty-common, Jar:netconf-notifications-api, Jar:netty-config-api, Jar:netty-transport, Jar:netty-threadgroup-config, Jar:sal-binding-api, Jar:binding-generator-impl, Jar:javassist, Jar:binding-generator-util, Jar:binding-model-api, Jar:binding-generator-api, Jar:binding-generator-spi, Jar:binding-type-provider, Jar:commons-lang3, Jar:org.eclipse.xtend.lib, Jar:org.eclipse.xtext.xbase.lib, Jar:org.eclipse.xtend.lib.macro, Jar:threadpool-config-api, Jar:sal-broker-impl, Jar:disruptor, Jar:sal-common-impl, Jar:sal-core-spi, Jar:sal-inmemory-datastore, Jar:yang-data-impl, Jar:yang-data-util, Jar:yang-model-util, Jar:antlr4-runtime, Jar:yang-parser-impl, Jar:yang-parser-api, Jar:ietf-inet-types, Jar:model-inventory, Jar:ietf-inet-types, Jar:ietf-type-util, Jar:ietf-yang-types, Jar:yang-ext, Jar:ietf-topology, Jar:ietf-yang-types, Jar:yang-binding, Jar:yang-common, Jar:guava, Jar:concepts, Jar:object-cache-api, Jar:config-api, Jar:jsr305, Jar:sal-binding-config, Jar:sal-dom-config, Jar:sal-binding-broker-impl, Jar:sal-binding-util, Jar:mdsal-binding-generator-impl, Jar:mdsal-binding-generator-util, Jar:mdsal-binding-dom-codec, Jar:mdsal-binding-generator-api, Jar:yang-binding, Jar:util, Jar:java-concurrent-hash-trie-map]

[WARNING] Bundle org.opendaylight.ncrpcadaptor:ncrpcadaptor-impl:bundle:1.0.0-SNAPSHOT : Split package, multiple jars provide the same package:org/springframework/aop/aspectj/autoproxy Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning Package found in [Jar:spring-aop, Jar:org.springframework.aop]

Class path [Jar:., Jar:ncrpcadaptor-api, Jar:junit, Jar:hamcrest-core, Jar:mockito-all, Jar:json-simple, Jar:kie- api, Jar:slf4j-api, Jar:kie-internal, Jar:mvel2, Jar:drools-core, Jar:commons-codec, Jar:drools-compiler, Jar:antlr-runtime, Jar:ecj, Jar:xstream, Jar:xmlpull, Jar:xpp3_min, Jar:protobuf-java, Jar:drools-decisiontables, Jar:drools-templates, Jar:poi-ooxml, Jar:poi-ooxml-schemas, Jar:xmlbeans, Jar:stax-api, Jar:dom4j, Jar:xml-apis, Jar:poi, Jar:org.osgi.core, Jar:drools-osgi-integration, Jar:kie-spring, Jar:jbpm-flow, Jar:joda-time, Jar:spring-tx, Jar:spring-core, Jar:spring-beans, Jar:spring-context, Jar:spring-aop, Jar:aopalliance, Jar:spring-expression, Jar:spring-osgi-core, Jar:spring-osgi-io, Jar:org.springframework.aop, Jar:com.springsource.org.aopalliance, Jar:sal-netconf-connector, Jar:netconf-config-dispatcher, Jar:sal-common-util, Jar:sal-common-api, Jar ... (more)

2016-08-09 04:14:32 -0700 answered a question Deploy a bundle without restarting the controller

Is there any old bundle present in OSGI ?. If it is remove it first using bundle:uninstall <bundle-id>, then install your bundle by placing in deploy folder.

A better way could be, bundle:install -s file:/<full path="" to="" bundle="" jar="">. This will update the previous one directly.

2016-08-04 22:56:40 -0700 asked a question Bussiness Rules Engine in Opendaylight

Hi,

I am trying to use DROOLS Business Rules Engine in a MD-SAL plugin. Now, drools is available in nexus repository. But when I add the below mentioned jars as dependency in POM, it throws dependency resolution (missing requirement) error in karaf .

The reason I figured out for the above error is that my MD-SAL project uses packages in these bundles which should be exported by some other bundle in karaf. Since, it cannot find those packages in karaf container under "package:exports" command, it throws this error.

However, if I start karaf in "apacke-karaf-4.0.4/bin/karaf" and deploy a sample DROOLS project from this github repository(https://github.com/cmoulliard/droolsjbpm-osgi-examples), no such error is thrown.

    <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-api</artifactId>
        <version>${drools.version}</version>
    </dependency>
    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-core</artifactId>
        <version>${drools.version}</version>
    </dependency>
    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-compiler</artifactId>
        <version>${drools.version}</version>
    </dependency>
    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-decisiontables</artifactId>
        <version>${drools.version}</version>
    </dependency>
    <dependency>
        <groupId>org.osgi</groupId>
        <artifactId>org.osgi.core</artifactId>
        <!-- <version>5.0.0</version> -->
    </dependency>
    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-osgi-integration</artifactId>
        <version>${drools.version}</version>
    </dependency>
2016-08-04 01:54:29 -0700 asked a question Issue while running SingleFeatureTest

Hi,

I am facing the below issue when I am trying to build my md-sal project using "mvn clean install". The features project fails to build because of the below issue.

I have also pasted the features.xml file for assistance.

This bug is similiar to one mentioned here. But I got no solution to this.



Running org.opendaylight.odlparent.featuretest.SingleFeatureTest Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 45.788 sec <<< FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest installFeature(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/home/directv/work/ncrpcadaptor/features/target/classes/features.xml, Feature: odl-ncrpcadaptor 1.0.0-SNAPSHOT] Time elapsed: 16.209 sec <<< ERROR! java.lang.IllegalStateException: Can't install feature odl-ncrpcadaptor/1.0.0-SNAPSHOT:
Could not start bundle mvn:org.opendaylight.aaa/aaa-authn-mdsal-store-impl/0.2.5-SNAPSHOT in feature(s) odl-aaa-authn-0.2.5-SNAPSHOT: Uses constraint violation. Unable to resolve bundle revision org.opendaylight.aaa.authn-mdsal-store-impl [282.0] because it is exposed to package 'org.opendaylight.yangtools.yang.binding' from bundle revisions org.opendaylight.yangtools.yang-binding [93.0] and org.opendaylight.mdsal.yang-binding [211.0] via two dependency chains.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<features pom.xml<<<<<<<<<<<<<<<<<<<<<<<<<<<<<="" p="">

http://maven.apache.org/xsd/maven-4.0...> org.opendaylight.odlparent features-parent 1.6.3-SNAPSHOT org.opendaylight.coretutorials ncrpcadaptor-features 1.0.0-SNAPSHOT ${project.artifactId} 4.0.0 3.1.1 0.8.3-SNAPSHOT 1.2.5-SNAPSHOT 1.3.3-SNAPSHOT 0.8.3-SNAPSHOT 0.3.3-SNAPSHOT etc/opendaylight/karaf org.opendaylight.controller mdsal-artifacts ${mdsal.version} pom import org.opendaylight.netconf restconf-artifacts ${restconf.version} pom import org.opendaylight.controller features-netconf-connector features ${mdsal.version} xml runtime org.opendaylight.mdsal.model features-mdsal-model ${mdsal.model.version} features xml runtime org.opendaylight.controller features-mdsal features xml runtime org.opendaylight.netconf features-restconf features xml runtime org.opendaylight.dlux features-dlux features ${dlux.version} xml runtime ${project.groupId} ncrpcadaptor-impl ${project.version} ${project.groupId} ncrpcadaptor-impl ${project.version} xml config ${project.groupId} ncrpcadaptor-api ${project.version}

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

2016-08-01 23:54:39 -0700 asked a question Why does feature:install take so much time to complete?

Hi,

I created a feature in MD-SAL and tried installing it in ODL. But, somehow it is taking too much time. Can somebody please let me know what is causing this. Has this to do something with my code int the plugin ?

opendaylight-user@root>feature:repo-add mvn:org.opendaylight.ncrpcadaptor/ncrpcadaptor-features/1.0.0-SNAPSHOT/xml/features Adding feature url mvn:org.opendaylight.ncrpcadaptor/ncrpcadaptor-features/1.0.0-SNAPSHOT/xml/features opendaylight-user@root>feature:install odl-ncrpcadaptor ...<<<<<after 5="" mins="" prompt="" comes="" back="">>> opendaylight-user@root>

2016-08-01 23:50:54 -0700 asked a question Search box not visible on homepage

Hi,

I request the developers maintaining this page to please amend the search box. It just displays the search icon. The text box is not even visible. I cannot see what search text I am typing.

Browser used : Chrome (version - 50), Firefox (latest)

2016-07-22 06:37:37 -0700 answered a question OpenConfig YANG model adoption?
2016-07-20 05:15:52 -0700 asked a question REST API of nexus.opendaylight.org

Hi,

I have an activity where I have to find the availability of a plugin/jar of a specific version from the nexus repository of Opendaylight.

Since there are too many jars, I need to know if NEXUS exposes any REST API for this purpose. We have a UI (link text) for this purpose, but feeding in artifactID,groupID and version for each jar will become a cumbersome task.

Please let me know if anybody has any info on that.

Regards, Kushal Kumar TCS, Gurgaon

2016-07-08 08:53:47 -0700 received badge  Notable Question (source)
2016-06-21 00:11:36 -0700 received badge  Notable Question (source)
2016-06-07 22:27:29 -0700 received badge  Popular Question (source)
2016-06-06 23:06:14 -0700 answered a question Error in resolving new dependencies in NETCONF

I tried installing and starting the kie-api bundle in OSGI but it failed. Also, I cannot start the bundle "netconf-impl". bundle:install file:///home/directv/Downloads/kie-api-6.2.0.Final.jar Bundle ID: 453 opendaylight-user@root>start 453 Error executing command: Error executing command on bundles: Unable to execute command on bundle 453: The bundle "org.kie.api_6.2.0.201503042108 [453]" could not be resolved. Reason: Missing Constraint: Import-Package: org.drools.compiler.kie.builder.impl; version="0.0.0" opendaylight-user@root>

2016-06-02 03:02:13 -0700 commented question Bundle could not be resolved.Missing Constraint.

try adding that jar file as <bundle></bundle> in features.xml file . Also, use wrap to add the jar. wrap converts jar to OSGI bundle. <bundle>wrap:mvn:org.kie/kie-api/6.2.0.Final</bundle>

2016-06-02 02:48:46 -0700 received badge  Popular Question (source)
2016-06-02 02:35:10 -0700 asked a question Error in resolving new dependencies in NETCONF

Hi All,

I have implemented a new functionality in NETCONF plugin of opendaylight. For this, I required certain addditional dependencies that I have added in the pom for netconf-impl (module inside netconf plugin code where I am implementing the functionality). These dependencies were available in nexus.opendaylight.org .

Now after adding those dependencies in pom and making changes to features.xml for netconf plugin. I get the below error after starting feature odl-netconf-connector-all.

opendaylight-user@root>feature:install odl-netconf-connector-all odl-restconf-all Error executing command: Can't install feature odl-netconf-connector-all/0.0.0:
Could not start bundle mvn:org.opendaylight.controller/netconf-impl/0.3.0-Lithium in feature(s) odl-netconf-impl-0.3.0-Lithium: The bundle "org.opendaylight.controller.netconf-impl_0.3.0.Lithium [216]" could not be resolved. Reason: Missing Constraint: Import-Package: org.kie.api; version="[6.2.0,7.0.0)"

Please let me know if any other details are required. I am stuck with this dependency resolution problem since a long time.

Would be great if somebody has some insight into this issue and can help.

My features.xml section for odl-netconf-connector-all :

<feature name='odl-netconf-connector-all' version='${project.version}' description='OpenDaylight :: Netconf Connector :: All'>
    <!--
        Necessary TODO:
        List all of the user consumable features you define in this feature file here.
        Generally you would *not* list individual bundles here, but only features defined in *this* file.
        It is useful to list them in the same order they occur in the file.

        Examples:
        <feature version='${project.version}'>odl-controller-provider</feature>
        <feature version='${project.version}'>odl-controller-model</feature>
    -->
    <feature version='${project.version}'>odl-netconf-connector</feature>
    <feature version='${project.version}'>odl-netconf-connector-ssh</feature>
    <bundle>wrap:mvn:com.google.guava/guava/${guava.version}</bundle>
    <bundle>wrap:mvn:org.kie/kie-api/6.2.0.Final</bundle>
    <bundle>wrap:mvn:org.drools/drools-core/6.2.0.Final</bundle>
    <bundle>wrap:mvn:org.drools/drools-compiler/6.2.0.Final</bundle>
    <bundle>wrap:mvn:org.drools/drools-decisiontables/6.2.0.Final</bundle>
    <bundle>wrap:mvn:org.drools/drools-osgi-integration/6.2.0.Final</bundle>
    <bundle>wrap:mvn:org.drools/knowledge-api/6.2.0.Final</bundle>
</feature>

My POM :

http://maven.apache.org/xsd/maven-4.0...> 4.0.0

<parent> <groupid>org.opendaylight.controller</groupid> <artifactid>netconf-subsystem</artifactid> <version>0.3.0-Lithium</version> </parent> <artifactid>netconf-impl</artifactid> <packaging>bundle</packaging> <name>${project.artifactId}</name>

<properties>
    <drools.version>6.2.0.Final</drools.version>
    <json.version>1.1.1</json.version>
    <guava.version>18.0</guava.version>

</properties>

<dependencies>
  <dependency>
      <groupId>org.drools</groupId>
      <artifactId>knowledge-api</artifactId>
      <version>${drools.version}</version>
  </dependency>
  <dependency>
      <groupId>org.kie</groupId>
      <artifactId>kie-api</artifactId>
      <version>${drools.version}</version>
  </dependency>
  <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-core</artifactId>
      <version>${drools.version}</version>
  </dependency>
  <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-compiler</artifactId>
      <version>${drools.version}</version>
  </dependency>
  <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-decisiontables</artifactId>
      <version>${drools.version}</version>
  </dependency>
  <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
  </dependency>
  <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-osgi-integration</artifactId>
      <version>${drools.version}</version>
  </dependency>
  <dependency>
      <groupId>com.googlecode.json-simple</groupId>
      <artifactId>json-simple</artifactId>
      <version>${json.version}</version ...
(more)
2016-06-02 02:26:44 -0700 commented question version and dependency

Edit the startup.properties file in system directory karaf/opendaylight-karaf/target/assembly/etc/startup.properties to remove wrap\: at the beginning of line containing javax.servlet.jsp/jsp-api/2.1. Then try starting . It should work. I tried this and it did for me

2016-05-23 00:44:56 -0700 received badge  Popular Question (source)
2016-05-08 23:56:51 -0700 asked a question Error resolving artifact org.opendaylight.yangtools:concepts

Hi,

I get the below mentioned error while installing features in ODL Helium. It is a dicy error. Looks like this is related to features.xml. When i rebuild the entire code and start karaf, this error stops popping up sometimes. Can somebody guide me in the right direction.

Also, does repo-add has something to do with it. ?

opendaylight-user@root>feature:install odl-netconf-connector-all odl-restconf-all Error executing command: Can't install feature odl-netconf-connector-all/0.0.0:
Error resolving artifact org.opendaylight.yangtools:concepts:jar:0.7.0-Lithium: Could not find artifact org.opendaylight.yangtools:concepts:jar:0.7.0-Lithium in defaultlocal (file:/home/directv/controller2/karaf/opendaylight-karaf/target/assembly/system/)

2016-05-03 19:06:22 -0700 received badge  Famous Question (source)
2016-05-03 07:40:45 -0700 asked a question Maven build of Opendaylight Helium code

Hi ,

I have been persistently trying to build ODL Helium github code.

I cloned the repository using this command : git clone -b stable/helium https://github.com/opendaylight/contr...

Also, I have used the settings.xml file as mentioned in ODL wiki, but my maven build (mvn clean install -DskipTests) fails because of the below mentioned error.

Non-resolvable parent POM for org.opendaylight.controller:commons.opendaylight:1.4.7-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent:pom:1.4.7-SNAPSHOT in https://nexus.opendaylight.org/conten... .

Now, if I look for 1.4.7-SNAPSHOT of odlparent in NEXUS repository, I do not find it. link text

Please guide me how can I build this code.

2016-05-03 07:35:53 -0700 received badge  Notable Question (source)