Hi All,
Am integrating ONOS with OpenStack (mitaka) following the below links:
https://wiki.onosproject.org/display/ONOS/SONA+Installation+Guide
http://uni2u.tistory.com/58
My Environment Details: 2 CentOS7 VMs: 1 AIO and 1 Compute node. Openstack deployed with packstack (vxlan tunnelling). Everything is just good enough.
I installed ONOS (onos-1.7.0-rc2) in a separate Ubuntu VM. List of apps installed are shown below
Able to observe two OVS switches each for AIO & Compute node in ONOS GUI.
But am not able to create a network after integration.
Given below is neutron server log:
2016-09-20 15:03:21.347 26299 DEBUG neutron.plugins.ml2.plugin [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] Deleting network record <neutron.db.models_v2.Network[object at 5a8ab10] {tenant_id=u'90f8f7898d344b56a26f0f3bc449fc1f', id=u'80f501b4-df76-400f-9eeb-fbf8fa1f1be6', name=u'NET-1', status=u'ACTIVE', admin_state_up=True, mtu=1450, vlan_transparent=None, availability_zone_hints=u'[]', standard_attr_id=14}> delete_network /usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py:849
2016-09-20 15:03:21.348 26299 DEBUG neutron.plugins.ml2.plugin [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] Committing transaction delete_network /usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py:854
2016-09-20 15:03:21.447 26299 DEBUG networking_onos.plugins.ml2.driver [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] networking_onos.plugins.ml2.driver.ONOSMechanismDriver method delete_network_postcommit called with arguments (<neutron.plugins.ml2.driver_context.NetworkContext object at 0x4c2af90>,) {} wrapper /usr/lib/python2.7/site-packages/oslo_log/helpers.py:45
2016-09-20 15:03:21.447 26299 DEBUG networking_onos.common.utils [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] Sending MSG_TYPE (delete) URL (http://192.168.192.70:8181/onos/vtn/networks/80f501b4-df76-400f-9eeb-fbf8fa1f1be6) OBJECT (None) BODY (None) send_msg /usr/lib/python2.7/site-packages/networking_onos/common/utils.py:33
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] Mechanism driver 'onos_ml2' failed in delete_network_postcommit
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 401, in _call_on_drivers
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context)
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/oslo_log/helpers.py", line 46, in wrapper
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers return method(*args, **kwargs)
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/networking_onos/plugins/ml2/driver.py", line 67, in delete_network_postcommit
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers entity_path)
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/networking_onos/common/utils.py", line 38, in send_msg
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers req.raise_for_status()
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/site-packages/requests/models.py", line 844, in raise_for_status
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers raise HTTPError(http_error_msg, response=self)
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers HTTPError: 404 Client Error: Not Found for url: http://192.168.192.70:8181/onos/vtn/networks/80f501b4-df76-400f-9eeb-fbf8fa1f1be6
2016-09-20 15:03:21.451 26299 ERROR neutron.plugins.ml2.managers
2016-09-20 15:03:21.452 26299 ERROR neutron.plugins.ml2.plugin [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] mechanism_manager.delete_network_postcommit failed
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource self.force_reraise()
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource obj = do_create(body)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource request.context, reservation.reservation_id)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource self.force_reraise()
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 703, in create_network
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource self.delete_network(context, result['id'])
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource self.force_reraise()
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 698, in create_network
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource self.mechanism_manager.create_network_postcommit(mech_context)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 441, in create_network_postcommit
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource self._call_on_drivers("create_network_postcommit", context)
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 412, in _call_on_drivers
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource method=method_name
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource MechanismDriverError: create_network_postcommit failed.
2016-09-20 15:03:21.517 26299 ERROR neutron.api.v2.resource
2016-09-20 15:03:21.519 26299 INFO neutron.wsgi [req-e4152a3d-2b29-4be8-be33-da3da5c89a98 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] 172.27.3.190 - - [20/Sep/2016 15:03:21] "POST /v2.0/networks.json HTTP/1.1" 500 345 0.386148
2016-09-20 15:03:21.544 26298 DEBUG neutron.wsgi [-] (26298) accepted ('172.27.3.190', 47690) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:826
2016-09-20 15:03:21.583 26298 INFO neutron.wsgi [req-38946d16-9c1d-4899-92e2-f02bbbed9a42 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] 172.27.3.190 - - [20/Sep/2016 15:03:21] "GET /v2.0/networks.json?shared=False&tenant_id=90f8f7898d344b56a26f0f3bc449fc1f HTTP/1.1" 200 229 0.038651
2016-09-20 15:03:21.585 26298 DEBUG neutron.wsgi [-] (26298) accepted ('172.27.3.190', 47692) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:826
2016-09-20 15:03:21.622 26298 INFO neutron.wsgi [req-794ca7bb-ee69-43a3-920c-07c25c971a19 5badc177c17247d89c2d02b600928065 90f8f7898d344b56a26f0f3bc449fc1f - - -] 172.27.3.190 - - [20/Sep/2016 15:03:21] "GET /v2.0/subnets.json HTTP/1.1" 200 228 0.035274
2016-09-20 15:03:21.623 26298 DEBUG neutron.wsgi [-] (26298) accepted ('172.27.3.190', 47694) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:826
Which all apps are only required to be installed in onos for normal neutron working ? Can anyone please help me to fix this. Any sort of feedback, inputs or pointers all are appreciable.
--Thanks
Praveen