[NEUTRON-14] Failed to use Neutron northbound interface. Created: 25/Nov/14  Updated: 19/Oct/17  Resolved: 19/May/15

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

Type: Bug
Reporter: Hideyuki Tai Assignee: Unassigned
Resolution: Cannot Reproduce 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 VTN-50 OpenStack support doesn't work. Resolved
External issue ID: 2441

 Description   

I failed to use Neutron northbound interface when I installed "odl-adsal-compatibility" before installed "odl-adsal-northbound".
For example, GET requests for neutron/networks returned the response code 500 (Internal Server Error) and an error message, although it should return the response code 200 and network information.

curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X GET \
http://localhost:8080/controller/nb/v2/neutron/networks

I observed this issue on both Helium and Helium SU1.

When I sent a GET request to Neutron interface, Helium output the following ERROR message into karaf.log.

ERROR | -bio-8080-exec-1 | [/controller/nb/v2/neutron] | 309 - org.apache.juli.extras - 7.0.53.v201406060720 | StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/eclipse/persistence/jaxb/rs/MOXyJsonProvider

How to reproduce the issue
==========================

1. Run Karaf.

$ bin/karaf

2. Install VTN features.

feature:install odl-adsal-compatibility
feature:install odl-adsal-northbound

3. Send a GET request to Neutron interface.
curl --user "admin":"admin" -H "Accept: application/json" -H \
"Content-type: application/json" -X GET \
http://localhost:8080/controller/nb/v2/neutron/networks

The expected response message of the GET request is as follows:

{ "networks" : [ ] }

The odd thing is that if I install just "odl-adsal-northbound", I successfully access the Neutron northbound interface.



 Comments   
Comment by Bhavesh Kumar [ 05/Dec/14 ]

Hi Hideyuki,

I tried to reproduce the error as per your steps on my linux machine(Ubuntu12.04), but I am getting the result as per expected.

root@tcs-ThinkCentre-M91P:~# curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://localhost:8080/controller/nb/v2/neutron/networks
{
"networks" : [ ]
}root@tcs-ThinkCentre-M91P:~#

Comment by Ryan Moats [ 17/Feb/15 ]

Moving from current project to neutron

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