[ODLPARENT-85] Restconf does not start in Karaf 4.0.9 Created: 11/Apr/17  Updated: 24/Jan/18  Resolved: 24/Apr/17

Status: Verified
Project: odlparent
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Vratko Polak Assignee: Jakub Toth
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks ODLPARENT-23 Milestone: Upgrade karaf to 4.0.1 or ... Resolved
External issue ID: 8208

 Description   

Not sure whether this is a duplicate of ODLPARENT-82.

Sandbox run [3] showing Restconf does not respond on port 8181.

[3] https://jenkins.opendaylight.org/sandbox/job/distribution-deploy-nitrogen/1/console



 Comments   
Comment by Tomas Cere [ 11/Apr/17 ]

Minor clarification, it seems that the 4.0.9 distribution doesnt start any jetty connectors that are configured in etc/jetty.xml no clue what is causing this for now.

Comment by Vratko Polak [ 11/Apr/17 ]

Here [4] is a Carbon job output, as Nitrogen is not fully bumped yet.

[4] https://logs.opendaylight.org/sandbox/jenkins091/distribution-csit-1node-userfeatures-only-carbon/2/console.log.gz

Comment by Robert Varga [ 11/Apr/17 ]

Looks like we need some rebuilds to get the features stabilized, because things are still pulling in 4.0.7:

13:13:57 2017-04-11 13:03:57,146 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | Bundles to install:
[...]
13:13:57 2017-04-11 13:03:57,150 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.boot/4.0.7
13:13:57 2017-04-11 13:03:57,165 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | wrap:mvn:org.apache.karaf/org.apache.karaf.util/4.0.7

Comment by Robert Varga [ 11/Apr/17 ]

hence we are getting into:

2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | Bundles to uninstall:
2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.servicemix.bundles.jasypt/1.9.2.1
2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.ops4j.base.spi/1.5.0
2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.ops4j.pax.jdbc/1.0.1
2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.ops4j.pax.jdbc.config/1.0.1
2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.ops4j.pax.jdbc.pool.common/1.0.1
2017-04-11 16:37:19,238 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.karaf.jdbc.core/4.0.9

Comment by Robert Varga [ 11/Apr/17 ]

This definitely is some versioning mismatch, using netconf karaf4 distro, I can get this working by:

feature:install war
feature:install odl-restconf

Performing the inverse leads to StackOverflowError (https://bugs.opendaylight.org/show_bug.cgi?id=7890).

Performing just 'feature:install odl-restconf' does not bring in the war feature.

Comment by Robert Varga [ 11/Apr/17 ]

feature:install war odl-restconf seems to start, too.

That means that something prevents war being brought in as a dependency, it sure does feel like a karaf bug....

Comment by Robert Varga [ 13/Apr/17 ]

I have tested this locally, and it does not quite help. But adding prerequisite=true to our jetty feature seems to do the trick.

So let's see how https://git.opendaylight.org/gerrit/55003 plus the runtime downgrade to 4.0.7 fares.

Comment by Robert Varga [ 19/Apr/17 ]

carbon: https://git.opendaylight.org/gerrit/55273

Comment by Jakub Toth [ 20/Apr/17 ]

(In reply to Robert Varga from comment #8)
> carbon: https://git.opendaylight.org/gerrit/55273

this works for me

Comment by Vratko Polak [ 24/Apr/17 ]

VERIFIED on Carbon. Nitrogen not bumped back from .7 yet.

Comment by Vratko Polak [ 24/Apr/17 ]

> Nitrogen not bumped back from .7 yet.

Merged now: https://git.opendaylight.org/gerrit/55719

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