← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1699390] [NEW] provisioning_blocks NeutronDbObjectDuplicateEntry exception

 

Public bug reported:

2017-06-16 11:56:14.492 37207 DEBUG neutron.plugins.ml2.db [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] For port fcbb6a33-1207-4238-b0fa-7509944038d8, host compute-108-31.cn-test-2.lcs.i-lecloud.com, got binding levels [<neutron.plugins.ml2.models.PortBindingLevel[object at b0f3cd0] {port_id=u'fcbb6a33-1207-4238-b0fa-7509944038d8', host=u'compute-108-31.cn-test-2.lcs.i-lecloud.com', level=0, driver=u'ovn', segment_id=u'51bc6836-be4e-47b7-93ac-a7a38fdb6342'}>] get_binding_levels /usr/lib/python2.7/site-packages/neutron/plugins/ml2/db.py:184
2017-06-16 11:56:14.497 37207 DEBUG neutron.plugins.ml2.db [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] For port fcbb6a33-1207-4238-b0fa-7509944038d8, host compute-108-31.cn-test-2.lcs.i-lecloud.com, cleared binding levels clear_binding_levels /usr/lib/python2.7/site-packages/neutron/plugins/ml2/db.py:196
2017-06-16 11:56:14.507 37241 DEBUG neutron.db.provisioning_blocks [req-40a15c5a-517b-4e6d-bc18-c87292ba1f96 - - - - -] Transition to ACTIVE for port object fcbb6a33-1207-4238-b0fa-7509944038d8 will not be triggered until provisioned by entity L2. add_provisioning_component /usr/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py:83
2017-06-16 11:56:14.508 37195 DEBUG networking_ovn.ovsdb.vlog [-] [POLLIN] on fd 13 __log_wakeup /usr/lib/python2.7/site-packages/ovs/poller.py:246
2017-06-16 11:56:14.510 37195 DEBUG networking_ovn.ovsdb.vlog [-] 4999-ms timeout __log_wakeup /usr/lib/python2.7/site-packages/ovs/poller.py:231
2017-06-16 11:56:14.510 37195 DEBUG networking_ovn.ovsdb.vlog [-] tcp:10.11.108.244:6642: idle 5000 ms, sending inactivity probe run /usr/lib/python2.7/site-packages/ovs/reconnect.py:105
2017-06-16 11:56:14.511 37195 DEBUG networking_ovn.ovsdb.vlog [-] tcp:10.11.108.244:6642: entering IDLE _transition /usr/lib/python2.7/site-packages/ovs/reconnect.py:468
2017-06-16 11:56:14.511 37195 DEBUG networking_ovn.ovsdb.vlog [-] tcp:10.11.108.244:6642: entering ACTIVE _transition /usr/lib/python2.7/site-packages/ovs/reconnect.py:468
2017-06-16 11:56:14.511 37195 DEBUG networking_ovn.ovsdb.vlog [-] [POLLIN] on fd 17 __log_wakeup /usr/lib/python2.7/site-packages/ovs/poller.py:246
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] Mechanism driver 'ovn' failed in update_port_precommit
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 407, in _call_on_drivers
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/networking_ovn/ml2/mech_driver.py", line 745, in update_port_precommit
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._insert_port_provisioning_block(context._plugin_context, port)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/networking_ovn/ml2/mech_driver.py", line 585, in _insert_port_provisioning_block
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     provisioning_blocks.L2_AGENT_ENTITY
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py", line 80, in add_provisioning_component
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     context.session.add(record)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 502, in __exit__
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self.rollback()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     compat.reraise(exc_type, exc_value, exc_tb)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 499, in __exit__
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self.commit()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 392, in commit
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._prepare_impl()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 372, in _prepare_impl
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self.session.flush()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2027, in flush
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._flush(objects)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2145, in _flush
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     transaction.rollback(_capture_exception=True)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     compat.reraise(exc_type, exc_value, exc_tb)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2109, in _flush
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     flush_context.execute()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 373, in execute
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     rec.execute(self)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 532, in execute
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     uow
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 174, in save_obj
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     mapper, table, insert)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 767, in _emit_insert_statements
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     execute(statement, multiparams)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     return meth(self, multiparams, params)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     return connection._execute_clauseelement(self, multiparams, params)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     compiled_sql, distilled_params
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     context)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     util.raise_from_cause(newraise, exc_info)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     reraise(type(exception), exception, tb=exc_tb)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     context)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     cursor.execute(statement, parameters)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 146, in execute
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     result = self._query(query)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 296, in _query
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     conn.query(q)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 781, in query
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._affected_rows = self._read_query_result(unbuffered=unbuffered)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 942, in _read_query_result
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     result.read()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1138, in read
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     first_packet = self.connection._read_packet()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 906, in _read_packet
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     packet.check_error()
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 367, in check_error
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     err.raise_mysql_exception(self._data)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 120, in raise_mysql_exception
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     _check_mysql_exception(errinfo)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 112, in _check_mysql_exception
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     raise errorclass(errno, errorvalue)
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers DBDuplicateEntry: (pymysql.err.IntegrityError) (1062, u"Duplicate entry '2969-L2' for key 'PRIMARY'") [SQL: u'INSERT INTO provisioningblocks (standard_attr_id, entity) VALUES (%s, %s)'] [parameters: (2969, 'L2')]
2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] update failed
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource Traceback (most recent call last):
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 582, in update
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     return self._update(request, id, body, **kwargs)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     self.force_reraise()
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 630, in _update
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 1339, in update_port
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     self.mechanism_manager.update_port_precommit(mech_context)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 660, in update_port_precommit
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     raise_db_retriable=True)
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 424, in _call_on_drivers
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     method=method_name
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource MechanismDriverError: update_port_precommit failed.
2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource
2017-06-16 11:56:14.536 37207 INFO neutron.wsgi [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] 10.11.108.32,10.11.108.211 - - [16/Jun/2017 11:56:14] "PUT /v2.0/ports/fcbb6a33-1207-4238-b0fa-7509944038d8.json HTTP/1.1" 500 317 0.395132

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1699390

Title:
  provisioning_blocks NeutronDbObjectDuplicateEntry exception

Status in neutron:
  New

Bug description:
  2017-06-16 11:56:14.492 37207 DEBUG neutron.plugins.ml2.db [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] For port fcbb6a33-1207-4238-b0fa-7509944038d8, host compute-108-31.cn-test-2.lcs.i-lecloud.com, got binding levels [<neutron.plugins.ml2.models.PortBindingLevel[object at b0f3cd0] {port_id=u'fcbb6a33-1207-4238-b0fa-7509944038d8', host=u'compute-108-31.cn-test-2.lcs.i-lecloud.com', level=0, driver=u'ovn', segment_id=u'51bc6836-be4e-47b7-93ac-a7a38fdb6342'}>] get_binding_levels /usr/lib/python2.7/site-packages/neutron/plugins/ml2/db.py:184
  2017-06-16 11:56:14.497 37207 DEBUG neutron.plugins.ml2.db [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] For port fcbb6a33-1207-4238-b0fa-7509944038d8, host compute-108-31.cn-test-2.lcs.i-lecloud.com, cleared binding levels clear_binding_levels /usr/lib/python2.7/site-packages/neutron/plugins/ml2/db.py:196
  2017-06-16 11:56:14.507 37241 DEBUG neutron.db.provisioning_blocks [req-40a15c5a-517b-4e6d-bc18-c87292ba1f96 - - - - -] Transition to ACTIVE for port object fcbb6a33-1207-4238-b0fa-7509944038d8 will not be triggered until provisioned by entity L2. add_provisioning_component /usr/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py:83
  2017-06-16 11:56:14.508 37195 DEBUG networking_ovn.ovsdb.vlog [-] [POLLIN] on fd 13 __log_wakeup /usr/lib/python2.7/site-packages/ovs/poller.py:246
  2017-06-16 11:56:14.510 37195 DEBUG networking_ovn.ovsdb.vlog [-] 4999-ms timeout __log_wakeup /usr/lib/python2.7/site-packages/ovs/poller.py:231
  2017-06-16 11:56:14.510 37195 DEBUG networking_ovn.ovsdb.vlog [-] tcp:10.11.108.244:6642: idle 5000 ms, sending inactivity probe run /usr/lib/python2.7/site-packages/ovs/reconnect.py:105
  2017-06-16 11:56:14.511 37195 DEBUG networking_ovn.ovsdb.vlog [-] tcp:10.11.108.244:6642: entering IDLE _transition /usr/lib/python2.7/site-packages/ovs/reconnect.py:468
  2017-06-16 11:56:14.511 37195 DEBUG networking_ovn.ovsdb.vlog [-] tcp:10.11.108.244:6642: entering ACTIVE _transition /usr/lib/python2.7/site-packages/ovs/reconnect.py:468
  2017-06-16 11:56:14.511 37195 DEBUG networking_ovn.ovsdb.vlog [-] [POLLIN] on fd 17 __log_wakeup /usr/lib/python2.7/site-packages/ovs/poller.py:246
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] Mechanism driver 'ovn' failed in update_port_precommit
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 407, in _call_on_drivers
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/networking_ovn/ml2/mech_driver.py", line 745, in update_port_precommit
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._insert_port_provisioning_block(context._plugin_context, port)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/networking_ovn/ml2/mech_driver.py", line 585, in _insert_port_provisioning_block
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     provisioning_blocks.L2_AGENT_ENTITY
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py", line 80, in add_provisioning_component
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     context.session.add(record)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 502, in __exit__
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self.rollback()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     compat.reraise(exc_type, exc_value, exc_tb)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 499, in __exit__
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self.commit()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 392, in commit
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._prepare_impl()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 372, in _prepare_impl
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self.session.flush()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2027, in flush
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._flush(objects)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2145, in _flush
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     transaction.rollback(_capture_exception=True)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     compat.reraise(exc_type, exc_value, exc_tb)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2109, in _flush
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     flush_context.execute()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 373, in execute
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     rec.execute(self)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 532, in execute
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     uow
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 174, in save_obj
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     mapper, table, insert)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 767, in _emit_insert_statements
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     execute(statement, multiparams)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     return meth(self, multiparams, params)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     return connection._execute_clauseelement(self, multiparams, params)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     compiled_sql, distilled_params
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     context)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     util.raise_from_cause(newraise, exc_info)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     reraise(type(exception), exception, tb=exc_tb)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     context)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     cursor.execute(statement, parameters)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 146, in execute
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     result = self._query(query)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 296, in _query
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     conn.query(q)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 781, in query
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 942, in _read_query_result
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     result.read()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1138, in read
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     first_packet = self.connection._read_packet()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 906, in _read_packet
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     packet.check_error()
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 367, in check_error
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     err.raise_mysql_exception(self._data)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 120, in raise_mysql_exception
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     _check_mysql_exception(errinfo)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 112, in _check_mysql_exception
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers     raise errorclass(errno, errorvalue)
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers DBDuplicateEntry: (pymysql.err.IntegrityError) (1062, u"Duplicate entry '2969-L2' for key 'PRIMARY'") [SQL: u'INSERT INTO provisioningblocks (standard_attr_id, entity) VALUES (%s, %s)'] [parameters: (2969, 'L2')]
  2017-06-16 11:56:14.527 37207 ERROR neutron.plugins.ml2.managers
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] update failed
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 582, in update
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     return self._update(request, id, body, **kwargs)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     self.force_reraise()
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 630, in _update
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 1339, in update_port
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     self.mechanism_manager.update_port_precommit(mech_context)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 660, in update_port_precommit
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     raise_db_retriable=True)
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 424, in _call_on_drivers
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource     method=method_name
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource MechanismDriverError: update_port_precommit failed.
  2017-06-16 11:56:14.533 37207 ERROR neutron.api.v2.resource
  2017-06-16 11:56:14.536 37207 INFO neutron.wsgi [req-a8effb59-0563-4638-8f0e-342019185570 1ce07f2de1f3401b81e043a41d415b1c 0e705ba9f41a49c7aca8e61d32082022 - - -] 10.11.108.32,10.11.108.211 - - [16/Jun/2017 11:56:14] "PUT /v2.0/ports/fcbb6a33-1207-4238-b0fa-7509944038d8.json HTTP/1.1" 500 317 0.395132

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1699390/+subscriptions


Follow ups