[OPNFLWPLUG-276] odl-openflow-nxm-extensions breaking RESTConf in the karaf integration features Created: 15/Sep/14  Updated: 27/Sep/21  Resolved: 07/Mar/15

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Luis Gomez Assignee: Luis Gomez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: File org.ops4j.pax.url.mvn.cfg    
External issue ID: 1879

 Description   

Hi devs,

Yesterday I uploaded a patch to remove odl-openflow-nxm-extensions from integration and as suspected it fixes the RESTConf issue (503 Service Unavailable) we are having wih integration features:

https://git.opendaylight.org/gerrit/#/c/11184/

How to reproduce the issue is very easy. Just download integration karaf container below and install odl-integration-compatible-with-all feature:

https://jenkins.opendaylight.org/integration/job/integration-master-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/extra/karaf/target/distribution-karaf-0.2.0-SNAPSHOT.zip

PS- Note the patch is not merged yet. Once it is odl-openflow-nxm-extensions will not be part of the odl-integration-compatible-with-all feature.

BR/Luis



 Comments   
Comment by Madhu Venugopal [ 15/Sep/14 ]

Hi Luis,

I tried the latest integration project with the following handful of selective feature installs :

opendaylight-user@root>feature:install odl-openflow-nxm-extensions
opendaylight-user@root>feature:install odl-ovsdb-northbound
opendaylight-user@root>feature:install odl-restconf
opendaylight-user@root>feature:install odl-ovsdb-openstack

opendaylight-user@root>feature:list | grep nxm
odl-openflow-nxm-extensions | 0.0.3-SNAPSHOT | x | ovsdb-0.0.3-SNAPSHOT | OpenDaylight :: Openflow :: Nicira Extensions

opendaylight-user@root>feature:list | grep restconf
odl-restconf | 1.1-SNAPSHOT | x | odl-mdsal-1.1-SNAPSHOT | OpenDaylight :: Restconf
odl-yangtools-restconf | 0.6.2-SNAPSHOT | | odl-yangtools-0.6.2-SNAPSHOT | OpenDaylight :: Yangtools :: Restconf

With the above selective installation, when i tried : http://localhost:8181/restconf/operational/opendaylight-inventory:nodes, I got https://gist.github.com/8cf56aacea97917da799 which is the correct behavior.

Also, if i install
opendaylight-user@root>feature:install odl-integration-compatible-with-all

This also results in http://localhost:8181/restconf/operational/opendaylight-inventory:nodes ==> https://gist.github.com/8cf56aacea97917da799.

Comment by Madhu Venugopal [ 16/Sep/14 ]

Luis,

Did more investigation on this.

This time, I started the integration karaf image fresh & installed odl-integration-compatible-with-all. This installation process took ~ 25 mins in my laptop (even after we see the karaf console, the CPU was stuck at 700% !!! ). If I try the restconf during this insane CPU time, the RESTconf fails with 503.

But when I wait long enough and try it after the CPU gets back to normalcy (~30 mins), the RESTConf starts to work again.

Seems like a performance issue in getting odl-integration-compatible-with-all to work properly

-Madhu

Comment by Tony Tkacik [ 16/Sep/14 ]

Madhu, Luis could you try following:
1. unzip karaf distribution
2. replace etc/org.ops4j.pax.url.mvn.cfg with one which is attached.
3. run karaf and install odl-integration-compatible-with-all

This configuration changes repository configuration to prefer system folder from
karaf distribution over downloading from remote artefacts (found out during feature install Karaf is doing lot of HTTP request to maven central).

Also I would be interested in times before applying this config and after it.

Comment by Tony Tkacik [ 16/Sep/14 ]

Attachment org.ops4j.pax.url.mvn.cfg has been added with description: Alternative pax configuration

Comment by Michal Rehak [ 06/Mar/15 ]

Luis, could you update?
Thank you.

Comment by Luis Gomez [ 07/Mar/15 ]

I do not even remember this. It is pretty old, just close it.

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