[CONTROLLER-687] Error when installing netconf feature targets on ODL-Karaf Created: 13/Aug/14  Updated: 25/Jul/23  Resolved: 20/Oct/14

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

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

Operating System: Mac OS
Platform: PC


External issue ID: 1542

 Description   

Install netconf feature to ODL-Karaf:

feature:repo-add mvn:org.opendaylight.controller/netconf-features/0.2.5-SNAPSHOT/xml/features

Install feature target:

opendaylight-user@root>feature:install odl-netconf-api
Error executing command: Error resolving artifact org.opendaylight.controller:features-netconf:xml:features:0.2.5-SNAPSHOT: Could not find artifact org.opendaylight.controller:features-netconf:xml:features:0.2.5-SNAPSHOT in defaultlocal (file:/Users/jgoodyear/.m2/repository/)

Note: I've built controller project locally, so my m2 repo should be fully populated.

The feature file name is "netconf-features" yet the target appears to be looking for "features-netconf" - this needs to be investigated.



 Comments   
Comment by Maros Marsalek [ 08/Sep/14 ]

Unable to reproduce:

1. Latest ODL controller code
2. Cleaned .m2/repository/org/opendaylight/controller/*
3. Run mvn clean install whole controller
4. No netconf-features present in .m2
5. Trying to invoke repo-add mvn:org.opendaylight.controller/netconf-features/0.2.5-SNAPSHOT/xml/features fails:

Error executing command: Error resolving artifact org.opendaylight.controller:netconf-features:xml:features:0.2.5-SNAPSHOT: Could not find artifact org.opendaylight.controller:netconf-features:xml:features:0.2.5-SNAPSHOT in defaultlocal (file:/home/mmarsale/.m2/repository/)

The features for netconf are called features-netconf and installing those works fine.

Tested on ubuntu, can you verify with latest code ?

Comment by Jamie Goodyear [ 09/Sep/14 ]

I tried the new feature target name, and could install the repo.

I tried to install the target odl-netconf-all and got the following:

opendaylight-user@root>feature:install odl-netconf-all
Error executing command: No feature named 'odl-netconf-tcp' with version '0.2.5-SNAPSHOT' available

Comment by Maros Marsalek [ 10/Sep/14 ]

I see. After recent change to features, the netconf-tcp feature was moved from features-netconf into features-netconf-connector repo. However, it was still referenced in the netconf-all feature from features-netconf.

Fix:
https://git.opendaylight.org/gerrit/#/c/10977/

Now when I run karaf:
0. Optional add features-netconf repo:repo-add mvn:org.opendaylight.controller/features-netconf/0.2.5-SNAPSHOT/xml/features
1. feature:install odl-netconf-all
2. Add repo features-netconf-connector: repo-add mvn:org.opendaylight.controller/features-netconf-connector/1.1-SNAPSHOT/xml/features
3. feature:install odl-netconf-connector-all

You should then see similar log(log:tail):

2014-09-10 09:54:39,541 | INFO | ssing-executor-3 | NetconfDevice | 203 - org.opendaylight.controller.sal-netconf-connector - 1.1.0.SNAPSHOT | RemoteDevice

{controller-config}

: Netconf connector initialized successfully

Which means that the netconf server along with netconf connector (with loopback netconf connection) were initialized successfully.

Comment by Carol Sanders [ 24/Sep/14 ]

I downloaded the latest karaf bundle today and was not able to install feature odl-netconf-connector-all

Here's what and how I did.

Steps:
1. Downloaded latest distro
wget https://jenkins.opendaylight.org/integration/job/integration-master-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/extra/karaf/target/distribution-karaf-0.2.0-SNAPSHOT.zip
-2014-09-23 18:44:55- https://jenkins.opendaylight.org/integration/job/integration-master-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/extra/karaf/target/distribution-karaf-0.2.0-SNAPSHOT.zip
Resolving jenkins.opendaylight.org (jenkins.opendaylight.org)... 140.211.169.9
Connecting to jenkins.opendaylight.org (jenkins.opendaylight.org)|140.211.169.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 230918549 (220M) [application/zip]
Saving to: ‘distribution-karaf-0.2.0-SNAPSHOT.zip’

100%[=========================================================================================================================================================================================>] 230,918,549 2.22MB/s in 2m 35s

2014-09-23 18:47:30 (1.42 MB/s) - ‘distribution-karaf-0.2.0-SNAPSHOT.zip’ saved [230918549/230918549]

2. Unzipped file
unzip distribution-karaf-0.2.0-SNAPSHOT.zip

3. Started the controller

carolsand@devstack-R210-II:~/distribution-karaf-0.2.0-SNAPSHOT$ bin/karaf
karaf: JAVA_HOME not set; results may vary

________ ________ .__ .__ .__ __
_____ \ ______ ____ ____ ______ \ _____ __..| | || ____ | |_/ |
/ |
____ _/ __ \ / \ | |
__ \< | || | | |/ ___| | \ __\
/ | \ |> > ___/| | | ` \/ __
___ || |
| / /_/ > Y \ |
_______ / _/ __ >__| /______ (____ / ___||__/__ /|__| /_|
\/|_| \/ \/ \/ \/\/ /____/ \/

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.

4.Attempted to install netconf feature

opendaylight-user@root>feature:install odl-netconf-connector-all
Error executing command: Could not start bundle mvn:org.opendaylight.controller/netconf-ssh/0.2.5-SNAPSHOT in feature(s) odl-netconf-ssh-0.2.5-SNAPSHOT: Exception in org.opendaylight.controller.netconf.ssh.osgi.NetconfSSHActivator.start() of bundle org.opendaylight.controller.netconf-ssh.

Is there a feature dependency needed before installing netconf-connector-all?

Comment by Maros Marsalek [ 24/Sep/14 ]

(In reply to Carol Sanders from comment #4)

Hello Carol,

I have tried to test this by performing all the steps on my machine, but I didnt see the issue, the feature started as expected. So could you please attach the logs from karaf ? (You can view them using log:display or log:tail in karaf) And also information about your environment: OS, Java version?

Thanks

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