[NETCONF-412] Feature operations at Karaf4 trigger stop of restconf bundles Created: 28/Apr/17  Updated: 15/Mar/19  Resolved: 28/Jul/17

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Tomas Janciga Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File fail.log     Text File file_8334.txt     File karaf.log.1    
Issue Links:
Blocks
blocks GENIUS-83 genius CSIT Issue_Command_On_Karaf_Co... Resolved
blocks OPNFLWPLUG-908 Karaf 4 openflowplugin "not working" ... Resolved
is blocked by AAA-125 Shiro: Unable to start Filter: [No W... Resolved
is blocked by NETCONF-358 Fix failures in Karaf 4 feature tests Resolved
External issue ID: 8334

 Description   

I’m testing our (IoTDM) Karaf4 distribution and I see an issue when I try to do feature:install or feature:stop. The sal-rest-docgen bundle is being stopped and multiple stacktraces are printed to logs.
I’ve tested it using my dummy feature which is dependent on nothing and I was able to reproduce it also with odl-jolokia feature.
Installation of bundles works well, I have these troubles with features only.
I was able to reproduce this issue by karaf4 distribution of lispflowmapping project as well.
Piece of logs attached.



 Comments   
Comment by Tomas Janciga [ 28/Apr/17 ]

Attachment file_8334.txt has been added with description: Karaf logs showing the restconf bundle stopping

Comment by Ivan Hrasko [ 28/Apr/17 ]

Probably related to https://bugs.opendaylight.org/show_bug.cgi?id=7891 and karaf4 migration.

Comment by Ivan Hrasko [ 28/Apr/17 ]

problem cause?
https://lists.opendaylight.org/pipermail/discuss/2016-January/006128.html

Comment by Tomas Janciga [ 28/Apr/17 ]

Attachment karaf.log.1 has been added with description: Complete karaf logs showing issue at IoTDM

Comment by Ivan Hrasko [ 10/May/17 ]

Attachment fail.log has been added with description: fail after installation of empty feature

Comment by Ivan Hrasko [ 10/May/17 ]

There is problem that restconf get broken after installation of another feature.
This also happens in netconf project when for instance odl-netconf-topology is installed after odl-restconf feature.

Note that when first odl-netconf-topology is installed and then odl-restconf is installed this is not working because of StackOverflow exception.

I consider karaf logging "Stopping bundles" to not to be a bug.

Comment by Ivan Hrasko [ 10/May/17 ]

Reporter agreed to change target milestone to Nitrogen.

Comment by Tomas Slusny [ 22/Jun/17 ]

This bug is causing SSH on Karaf to not work.

Comment by Stephen Kitt [ 23/Jun/17 ]

From what I’ve seen re SSH, the problem is that sshd-core in Karaf 4 (or something related) has an optional dependency on bcprov. Some of ODL’s features pull in bcprov, which causes the SSH bundles to be rewired, and that doesn’t seem to go too well...

Comment by Faseela K [ 24/Jun/17 ]

We are facing similar issues in genius CSIT intermittently. Some of the csit verification steps which require logging into karaf is failing

Comment by Peter Gubka [ 28/Jul/17 ]

I tried to replicate the problem with broken restconf, but i did not succeeded, I tested karaf-0.7.0-20170728.081907-1437.zip

I did not use feature:uninstall or bundle:stop as they as not supported.
I did 2 attempts with following steps

A - no features added in org.apache.karaf.features.cfg
--------------------------------------------------------
1) start karaf
1a) GET /restconf/modules - NOK - but expected
2) feature:install odl-restconf
2a) GET /restconf/modules - OK
3) feature:install odl-jolokia
3a) GET /restconf/modules - OK
4) feature:install odl-lispflowmapping-ui
4a) GET /restconf/modules - OK
logs contain exceptions, but restconf itself did not stop working

B - odl-restconf in org.apache.karaf.features.cfg
--------------------------------------------------------
1) start karaf
1a) GET /restconf/modules - OK
2) feature:install odl-jolokia
2a) GET /restconf/modules - OK
3) feature:install odl-lispflowmapping-southbound
3a) GET /restconf/modules - OK
4) feature:install odl-netconf-tcp — lots of exceptions in logs and in karaf console, but netconf is still not added into karaf4
4a) GET /restconf/modules - OK

Thre is a bug https://bugs.opendaylight.org/show_bug.cgi?id=7891 is is probably related to this one.
From my point of view, this bug is invalid as there are no steps to reproduce the reported problem to to stop restconf working.

Comment by Peter Gubka [ 28/Jul/17 ]

More details needed to reproduce the problem.

Generated at Wed Feb 07 20:14:57 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.