Karaf4 specific problems seen on both boot and during manual testing of genius distribution
Description
Environment
Operating System: All
Platform: All
Attachments
blocks
is blocked by
Activity
ryan dgoulding June 20, 2017 at 5:36 PM
merged the above to remove the servicemix version; my apologies I must have added that in Lithium 2.5 years ago when I was not as familiar with dependency management. I am going to open a bug against AAA to clean up the dependencies and re-evaluate how we use the current framework (Shiro) as there are some gnarly third parties required.
It would appear this is supposed to be an umbrella, and ended up being quite specific. I will leave it open as I do not want to disrupt the work being done as part of this bug.
ryan dgoulding June 20, 2017 at 1:13 PM
What seems to be the issue? beanutils is required by apache shiro. Are you saying we should upgrade it? Let me know and I can give it a go...
Robert Varga June 20, 2017 at 11:24 AM
Snippet of dependency:tree:
[INFO] | +- org.opendaylight.aaa:features-aaa-shiro:xml:features:0.6.0-SNAPSHOT:runtime
[INFO] | | +- org.opendaylight.aaa:aaa-shiro-act:jar:0.6.0-SNAPSHOT:runtime
[INFO] | | +- org.opendaylight.aaa:aaa-shiro:cfg:configuration:0.6.0-SNAPSHOT:runtime
[INFO] | | | +- commons-beanutils:commons-beanutils:jar:1.8.3:runtime
[INFO] | | | - commons-collections:commons-collections:jar:3.2.2:runtime
[INFO] | | +- org.opendaylight.aaa:aaa-shiro:jar:0.6.0-SNAPSHOT:runtime
[INFO] | | +- org.opendaylight.aaa:aaa-shiro-api:jar:0.6.0-SNAPSHOT:runtime
[INFO] | | +- org.opendaylight.aaa:aaa-authn-api:jar:0.6.0-SNAPSHOT:runtime
[INFO] | | +- org.opendaylight.aaa:aaa-filterchain:cfg:config:0.6.0-SNAPSHOT:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.17:runtime
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.17:runtime
[INFO] | | +- javax.servlet:javax.servlet-api:jar:3.0.1:runtime
[INFO] | | +- org.apache.felix:org.apache.felix.dependencymanager:jar:4.3.0:runtime
[INFO] | | +- org.apache.felix:org.apache.felix.metatype:jar:1.1.2:runtime
[INFO] | | | - net.sf.kxml:kxml2:jar:2.2.2:runtime
[INFO] | | +- org.apache.shiro:shiro-web:jar:1.3.2:runtime
[INFO] | | +- org.apache.shiro:shiro-core:jar:1.3.2:runtime
[INFO] | | +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-beanutils:jar:1.8.3_2:runtime
[INFO] | | +- org.apache.oltu.oauth2:org.apache.oltu.oauth2.resourceserver:jar:1.0.2:runtime
[INFO] | | +- org.apache.oltu.oauth2:org.apache.oltu.oauth2.authzserver:jar:1.0.2:runtime
[INFO] | | +- org.apache.oltu.oauth2:org.apache.oltu.oauth2.common:jar:1.0.2:runtime
[INFO] | | - javax.ws.rs:javax.ws.rs-api:jar:2.0.1:runtime
i.e. features-aaa-shiro is pulling in both those bundles.
Robert Varga June 20, 2017 at 11:21 AM
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | Refreshing bundles:
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | com.fasterxml.jackson.datatype.jackson-datatype-json-org/2.3.2 (Wired to org.opendaylight.netconf.sal-rest-docgen/1.6.0.SNAPSHOT which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.oltu.oauth2.authzserver/1.0.0 (Wired to org.apache.oltu.oauth2.common/1.0.0 which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.oltu.oauth2.common/1.0.0 (Wired to org.opendaylight.netconf.sal-rest-docgen/1.6.0.SNAPSHOT which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.oltu.oauth2.resourceserver/1.0.0 (Wired to org.apache.oltu.oauth2.common/1.0.0 which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.shiro.core/1.3.2 (Should be wired to: org.apache.servicemix.bundles.commons-beanutils/1.8.3.2 (through [org.apache.shiro.core/1.3.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.commons.beanutils)(version>=1.8.0))"; resolution:=optional))
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.apache.shiro.web/1.3.2 (Wired to org.apache.shiro.core/1.3.2 which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.opendaylight.aaa.idmlight/0.6.0.SNAPSHOT (Wired to org.apache.shiro.web/1.3.2 which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.opendaylight.aaa.shiro/0.6.0.SNAPSHOT (Wired to org.apache.shiro.core/1.3.2 which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.opendaylight.aaa.shiro-act/0.6.0.SNAPSHOT (Wired to org.opendaylight.aaa.shiro/0.6.0.SNAPSHOT which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.opendaylight.netconf.sal-rest-connector/1.6.0.SNAPSHOT (Wired to org.opendaylight.aaa.shiro/0.6.0.SNAPSHOT which is being refreshed)
2017-06-12 12:35:24,138 | INFO | pool-12-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | org.opendaylight.netconf.sal-rest-docgen/1.6.0.SNAPSHOT (Wired to org.opendaylight.aaa.shiro/0.6.0.SNAPSHOT which is being refreshed)
Looks like a problem. More specifically:
2017-06-12 12:35:16,268 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | mvn:commons-beanutils/commons-beanutils/1.8.3
2017-06-12 12:35:16,673 | INFO | pool-2-thread-1 | FeaturesServiceImpl | 7 - org.apache.karaf.features.core - 4.0.9 | mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils/1.8.3_2
I guess this circles back to AAA:
nite@nitebug : ~/odl/aaa on master $ fgrep -rn commons-beanutils .
./aaa-shiro/impl/pom.xml:94: <groupId>commons-beanutils</groupId>
./aaa-shiro/impl/pom.xml:95: <artifactId>commons-beanutils</artifactId>
./aaa-shiro/impl/pom.xml:98: <!-- commons-beanutils' dependency on commons-collections is supposed to be optional... -->
./features/authn/odl-aaa-authn-mdsal-cluster/target/classes/META-INF/maven/dependencies.properties:143:commons-beanutils/commons-beanutils/version = 1.8.3
./features/authn/odl-aaa-authn-mdsal-cluster/target/classes/META-INF/maven/dependencies.properties:144:commons-beanutils/commons-beanutils/type = jar
./features/authn/odl-aaa-authn-mdsal-cluster/target/classes/META-INF/maven/dependencies.properties:145:commons-beanutils/commons-beanutils/scope = compile
./features/authn/odl-aaa-authn-mdsal-cluster/target/feature/feature.xml:33: <bundle>mvn:commons-beanutils/commons-beanutils/1.8.3</bundle>
./features/shiro/features-aaa-shiro/src/main/features/features.xml:36: <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils/VERSION
</bundle>
./features/shiro/features-aaa-shiro/pom.xml:108: <artifactId>org.apache.servicemix.bundles.commons-beanutils</artifactId>
./features/shiro/odl-aaa-shiro/pom.xml:114: <artifactId>org.apache.servicemix.bundles.commons-beanutils</artifactId>
This is an "umrella" bug to track all Karaf4 specific exceptions seen on boot of a genius/karaf4 distribution based on Karaf 4 instead of Karaf 3 built with https://git.opendaylight.org/gerrit/#/c/58726/ after installation of odl-genius* feature/s and (some) manual testing of that distribution.
Smaller specific issues should be created for each individual problem, and linked to this bug as Depends on.
Only Karaf 4 specific exceptions should be treated and linked here; any exceptions already seen on Karaf 3 before the migration should be treated separately.
This bug should be closed where are no more exception on boot of a Karaf 4 genius Nitrogen dist (or if those exceptions already occurred on a Carbon Karaf 3 one as well), and no more blocking Karaf 4 specific "functional" issues.
FYI: is a similar umbrella bug for netvirt (and SFC-196 for SFC). Thus, some, but not all, issues linked as Depends on this may be listed on that bug as well.