ODL:Master(Aluminium): Unable to bring karaf distribution locally - Reg


Robert Varga
 

On 21/04/2020 11:23, Karthikeyan wrote:
*      <type>test-jar</type>
      <scope>compile</scope>*
This combination is always wrong in a production artifact's pom.xml.

Bye,
Robert


Karthikeyan
 

Thanks Robert for your explanation.

I cloud see below changes are there in the GENIUS project where as netvirt module pom.xml we didn't not changed the same. Is this root cause of the failure?

    <!--<dependency>
       <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>



Could you please confirm what could be replacement for the below dependency which are existing in the netvirt project modules.

1) odl-netvirt-api module pom.xml existing dependency:  
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
<version>1.11.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
2) odl-netvirt-impl module pom.xml existing dependency:
<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 Tue, Apr 21, 2020 at 2:03 PM Robert Varga <nite@...> wrote:


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


Robert Varga
 

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


Karthikeyan
 

+Robert Varga ,

@Robert Varga, 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 ?


Thanks in Advance,
Karthikeyan.

On Tue, Apr 21, 2020 at 11:17 AM Karthikeyan <karthikeyangceb007@...> wrote:
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-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.


Karthikeyan
 

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-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.