ODL:Master(Aluminium): Unable to bring karaf distribution locally - Reg
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
https://git.opendaylight.org/gerrit/c/infrautils/+/89057
https://git.opendaylight.org/gerrit/c/ovsdb/+/87802
[2]
$ ./karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]
Karaf started in 1s. Bundle stats: 12 active, 12 total
________ ________ .__ .__ .__ __
\_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_
/ | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\
/ | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > 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.
opendaylight-user@root>feature:install odl-netvirt-openstack
2020-04-21T10:21:12,527
| ERROR | Karaf local console user karaf | ShellUtil | 50 -
org.apache.karaf.shell.core - 4.2.6 | Exception caught while executing command
org.apache.karaf.features.internal.util.MultiException: Error:
Unable to create resource for bundle wrap:mvn:org.opendaylight.mdsal/mdsal-binding-dom-adapter/5.0.9/jar/tests
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91) ~[?:?]
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72) ~[?:?]
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457) ~[?:?]
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452) ~[?:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Thanks & Regards,
Karthikeyan.
feature:install odl-ovsdb-southbound-impl
feature:install odl-ovsdb-hwvtepsouthbound
Hi All,We are trying to bring-up the integrated karaf distribution[0] locally(Windows Environment) which has been generated for MDSAL-APIs migration un-merged reviews[1] and it throws run-time exception from MDSAL-BINDING[2].Please help us to solve this issue.We set JDK 11 version properly in our local environment as below.$ java -version
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)[1]https://git.opendaylight.org/gerrit/c/infrautils/+/89057
https://git.opendaylight.org/gerrit/c/ovsdb/+/87802
[2]
$ ./karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]
Karaf started in 1s. Bundle stats: 12 active, 12 total
________ ________ .__ .__ .__ __
\_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_
/ | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\
/ | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > 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.
opendaylight-user@root>feature:install odl-netvirt-openstack2020-04-21T10:21:12,527 | ERROR | Karaf local console user karaf | ShellUtil | 50 - org.apache.karaf.shell.core - 4.2.6 | Exception caught while executing command
org.apache.karaf.features.internal.util.MultiException: Error:
Unable to create resource for bundle wrap:mvn:org.opendaylight.mdsal/mdsal-binding-dom-adapter/5.0.9/jar/tests
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91) ~[?:?]
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72) ~[?:?]
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457) ~[?:?]
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452) ~[?:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Thanks & Regards,
Karthikeyan.
+Robert Varga <mailto:nite@...> ,[snip]
@Robert Varga <mailto:nite@...>, We request your help on
resolving reported problem in below email.
We have tried installing following feature in the multi-patch
integration distribution and it works fine without any issues.
/feature:install odl-genius
feature:install odl-ovsdb-southbound-impl
feature:install odl-ovsdb-hwvtepsouthbound/
*
*
*
*
*feature:install odl-netvirt-openstack --> Problem with installing
netvirt features only. Is any MDSAL DOM dependency is missing ?*
/* Unable to create resource for bundletest-jar should never make it to the distribution, one of your patches
wrap:mvn:org.opendaylight.mdsal/mdsal-binding-dom-adapter/5.0.9/jar/tests*/
has introduced a wrong dependency (i.e. not scope=test).
Bye,
Robert
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-broker-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-broker-impl</artifactId>
<scope>test</scope>
<type>test-jar</type>
</dependency>!-->
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-binding-dom-adapter</artifactId>
<type>test-jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
<version>1.11.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>odl-mdsal-broker</artifactId>
<version>1.11.0</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
3) netvirt application pom.xml existing dependency in various modules:
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-broker-impl</artifactId>
</dependency>
Thanks & Regards,
Karthikeyan.
On 21/04/2020 09:53, Karthikeyan wrote:
> +Robert Varga <mailto:nite@...> ,
>
> @Robert Varga <mailto:nite@...>, We request your help on
> resolving reported problem in below email.
>
> We have tried installing following feature in the multi-patch
> integration distribution and it works fine without any issues.
>
> /feature:install odl-genius
> feature:install odl-ovsdb-southbound-impl
> feature:install odl-ovsdb-hwvtepsouthbound/
> *
> *
> *
> *
> *feature:install odl-netvirt-openstack --> Problem with installing
> netvirt features only. Is any MDSAL DOM dependency is missing ?*
[snip]
> /* Unable to create resource for bundle
> wrap:mvn:org.opendaylight.mdsal/mdsal-binding-dom-adapter/5.0.9/jar/tests*/
test-jar should never make it to the distribution, one of your patches
has introduced a wrong dependency (i.e. not scope=test).
Bye,
Robert