error when creating subnet

Bug #1493240 reported by yalei wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
networking-odl
Fix Released
High
yalei wang

Bug Description

when I use master code and set:
ODL_MODE=allinone
ODL_RELEASE=beryllium-snapshot-0.4.0

I got this error:

2015-09-08 15:05:40.189 ERROR root [req-c712c011-afd0-4523-b188-b069812ee210 admin f84c4e933ea440ee95992cd40899f977] Original exception being dropped: ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/networking_odl/ml2/mech_driver.py", line 237, in sync_resources\n self.client.sendjson(\'get\', urlpath, None)\n', ' File "/usr/local/lib/python2.7/dist-packages/networking_odl/common/client.py", line 42, in sendjson\n r.raise_for_status()\n', ' File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 851, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\n', 'HTTPError: 404 Client Error: Not Found\n']
2015-09-08 15:05:40.189 DEBUG oslo_concurrency.lockutils [req-c712c011-afd0-4523-b188-b069812ee210 admin f84c4e933ea440ee95992cd40899f977] Lock "odl-sync-full" released by "networking_odl.ml2.mech_driver.sync_full" :: held 0.115s from (pid=437) inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:265
2015-09-08 15:05:40.190 ERROR neutron.plugins.ml2.managers [req-c712c011-afd0-4523-b188-b069812ee210 admin f84c4e933ea440ee95992cd40899f977] Mechanism driver 'opendaylight' failed in create_subnet_postcommit
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers Traceback (most recent call last):
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 386, in _call_on_drivers
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/opendaylight/driver.py", line 74, in create_subnet_postcommit
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers self.odl_drv.synchronize('create', odl_const.ODL_SUBNETS, context)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/usr/local/lib/python2.7/dist-packages/networking_odl/ml2/mech_driver.py", line 214, in synchronize
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers self.sync_full(context._plugin)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 254, in inner
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers return f(*args, **kwargs)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/usr/local/lib/python2.7/dist-packages/networking_odl/ml2/mech_driver.py", line 276, in sync_full
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers self.sync_resources(plugin, dbcontext, collection_name)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/usr/local/lib/python2.7/dist-packages/networking_odl/ml2/mech_driver.py", line 242, in sync_resources
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers resource, plugin, dbcontext)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers File "/usr/local/lib/python2.7/dist-packages/networking_odl/ml2/mech_driver.py", line 99, in filter_create_attributes_with_plugin
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers context = driver_context.SubnetContext(subnet, plugin, dbcontext)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers TypeError: __init__() takes at least 5 arguments (4 given)
2015-09-08 15:05:40.190 TRACE neutron.plugins.ml2.managers

yalei wang (yalei-wang)
description: updated
yalei wang (yalei-wang)
Changed in networking-odl:
assignee: nobody → yalei wang (yalei-wang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-odl (master)

Fix proposed to branch: master
Review: https://review.openstack.org/221188

Changed in networking-odl:
status: New → In Progress
Revision history for this message
yalei wang (yalei-wang) wrote :

related to I718c80512af0f2a43855efb16c2c0da69ef6b741

Kyle Mestery (mestery)
Changed in networking-odl:
milestone: none → 1.0.0
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-odl (master)

Reviewed: https://review.openstack.org/221188
Committed: https://git.openstack.org/cgit/openstack/networking-odl/commit/?id=b0eb1367277562dbe369e44f4dba4f66015ba91d
Submitter: Jenkins
Branch: master

commit b0eb1367277562dbe369e44f4dba4f66015ba91d
Author: Yalei Wang <email address hidden>
Date: Tue Sep 8 16:05:17 2015 +0800

    update the args when init SubnetContext obj

    I718c80512af0f2a43855efb16c2c0da69ef6b741 in neutron add a new arg 'network'
    for SubnetContext, this patch reflect it.

    Change-Id: I503c033a2f681fe4539cea97ccfc6d65d5438f81
    Closes-Bug: #1493240

Changed in networking-odl:
status: In Progress → Fix Committed
Kyle Mestery (mestery)
Changed in networking-odl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.