[VTN-50] OpenStack support doesn't work. Created: 25/Nov/14  Updated: 19/Oct/17  Resolved: 07/Sep/16

Status: Resolved
Project: vtn
Component/s: VTN Manager
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Hideyuki Tai Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf.log    
Issue Links:
Blocks
is blocked by NEUTRON-14 Failed to use Neutron northbound inte... Resolved
External issue ID: 2439

 Description   

I observed that OpenStack support didn't work correctly when I installed VTN features after other features.

feature:install odl-adsal-compatibility-all odl-openflowplugin-all odl-vtn-manager-all

Specifically, I observed that REST API of Neutron interface didn't work at all.
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.

Workaround
==========

It seems to me that if we install VTN features firstly, we don't face the issue.

feature:install odl-vtn-manager-all odl-openflowplugin-all odl-adsal-compatibility-all

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

1. Run Karaf.

$ bin/karaf

2. Install VTN features.

feature:install odl-adsal-compatibility-all odl-openflowplugin-all odl-vtn-manager-all

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" : [ ] }

Error log message
=================

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

Failure example
===============

I observed the issue when I installed features as follows:

[Failure 1]
feature:install odl-adsal-compatibility-all odl-openflowplugin-all odl-vtn-manager-all

[Failure 2]
feature:install odl-adsal-all odl-adsal-northbound
feature:install odl-adsal-compatibility-all odl-openflowplugin-all odl-vtn-manager-all

Successful examples
===================

I didn't observe the issue when I installed features as follows:

[Success 1]
feature:install odl-vtn-manager-all odl-openflowplugin-all odl-adsal-compatibility-all

[Success 2]
feature:install odl-vtn-manager-neutron
feature:install odl-vtn-manager-all
feature:install odl-openflowplugin-all
feature:install odl-adsal-compatibility-all



 Comments   
Comment by Hideyuki Tai [ 25/Nov/14 ]

I'm attaching the Karaf log file on a failure case in which I installed features as follows:

feature:install odl-adsal-compatibility-all odl-openflowplugin-all odl-vtn-manager-all

I ran Helium SU1.

Comment by Hideyuki Tai [ 25/Nov/14 ]

Attachment karaf.log has been added with description: Karaf log file on a failure case

Comment by Hideyuki Tai [ 25/Nov/14 ]

I think this issue is related to CONTROLLER-873 and CONTROLLER-943.

Comment by Venkatrangan Govindarajan [ 24/Feb/16 ]

Currently, there is a weather entry related to the similar issue
https://wiki.opendaylight.org/view/Weather#Neutron_Northbound_must_be_loaded_before_any_other_JAXB_feature

Comment by Venkatrangan Govindarajan [ 07/Sep/16 ]

The VTN Openstack integration works well with Boron

https://jenkins.opendaylight.org/releng/view/vtn/job/vtn-csit-1node-openstack-mitaka-neutron-boron/

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