← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1342166] [NEW] Lock wait timeout updating floatingips

 

Public bug reported:

Traceback:

ERROR neutron.api.v2.resource [req-64dccdfe-083d-437b-8d9c-f6709d77de6c None] update failed
TRACE neutron.api.v2.resource Traceback (most recent call last):
TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/api/v2/resource.py", line 87, in resource
TRACE neutron.api.v2.resource     result = method(request=request, **args)
TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 529, in update
TRACE neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 792, in update_floatingip
TRACE neutron.api.v2.resource     context.elevated(), fip_port_id))
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 447, in __exit__
TRACE neutron.api.v2.resource     self.rollback()
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 58, in __exit__
TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 444, in __exit__
TRACE neutron.api.v2.resource     self.commit()
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 354, in commit
TRACE neutron.api.v2.resource     self._prepare_impl()
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 334, in _prepare_impl
TRACE neutron.api.v2.resource     self.session.flush()
TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 453, in _wrap
TRACE neutron.api.v2.resource     return f(self, *args, **kwargs)
TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 737, in flush
TRACE neutron.api.v2.resource     return super(Session, self).flush(*args, **kwargs)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1818, in flush
TRACE neutron.api.v2.resource     self._flush(objects)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1936, in _flush
TRACE neutron.api.v2.resource     transaction.rollback(_capture_exception=True)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 58, in __exit__
TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1900, in _flush
TRACE neutron.api.v2.resource     flush_context.execute()
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 372, in execute
TRACE neutron.api.v2.resource     rec.execute(self)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 525, in execute
TRACE neutron.api.v2.resource     uow
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 59, in save_obj
TRACE neutron.api.v2.resource     mapper, table, update)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 495, in _emit_update_statements
TRACE neutron.api.v2.resource     execute(statement, params)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 662, in execute
TRACE neutron.api.v2.resource     params)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement
TRACE neutron.api.v2.resource     compiled_sql, distilled_params
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 874, in _execute_context
TRACE neutron.api.v2.resource     context)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1024, in _handle_dbapi_exception
TRACE neutron.api.v2.resource     exc_info
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 196, in raise_from_cause
TRACE neutron.api.v2.resource     reraise(type(exception), exception, tb=exc_tb)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 867, in _execute_context
TRACE neutron.api.v2.resource     context)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 324, in do_execute
TRACE neutron.api.v2.resource     cursor.execute(statement, parameters)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
TRACE neutron.api.v2.resource     self.errorhandler(self, exc, value)
TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
TRACE neutron.api.v2.resource     raise errorclass, errorvalue
TRACE neutron.api.v2.resource OperationalError: (OperationalError) (1205, 'Lock wait timeout exceeded; try restarting transaction') 'UPDATE floatingips SET fixed_port_id=%s, fixed_ip_address=%s, last_known_router_id=%s WHERE floatingips.id = %s' ('a477ab94-f6e5-4f43-865a-c5e3ba1c43c5', '10.100.0.3', '4c17500b-b0aa-4dff-bf15-89e1dad4f2ea', '2db4727b-5419-4f06-92e3-1cedd4fe7345')

http://logs.openstack.org/93/98593/7/check/check-tempest-dsvm-neutron-
full/9480e23/logs/screen-q-svc.txt.gz?level=TRACE#_2014-07-15_07_05_33_290

** Affects: neutron
     Importance: High
         Status: New


** Tags: db gate-failure

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

Title:
  Lock wait timeout updating floatingips

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Traceback:

  ERROR neutron.api.v2.resource [req-64dccdfe-083d-437b-8d9c-f6709d77de6c None] update failed
  TRACE neutron.api.v2.resource Traceback (most recent call last):
  TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/api/v2/resource.py", line 87, in resource
  TRACE neutron.api.v2.resource     result = method(request=request, **args)
  TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 529, in update
  TRACE neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
  TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 792, in update_floatingip
  TRACE neutron.api.v2.resource     context.elevated(), fip_port_id))
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 447, in __exit__
  TRACE neutron.api.v2.resource     self.rollback()
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 58, in __exit__
  TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 444, in __exit__
  TRACE neutron.api.v2.resource     self.commit()
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 354, in commit
  TRACE neutron.api.v2.resource     self._prepare_impl()
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 334, in _prepare_impl
  TRACE neutron.api.v2.resource     self.session.flush()
  TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 453, in _wrap
  TRACE neutron.api.v2.resource     return f(self, *args, **kwargs)
  TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 737, in flush
  TRACE neutron.api.v2.resource     return super(Session, self).flush(*args, **kwargs)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1818, in flush
  TRACE neutron.api.v2.resource     self._flush(objects)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1936, in _flush
  TRACE neutron.api.v2.resource     transaction.rollback(_capture_exception=True)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 58, in __exit__
  TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1900, in _flush
  TRACE neutron.api.v2.resource     flush_context.execute()
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 372, in execute
  TRACE neutron.api.v2.resource     rec.execute(self)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 525, in execute
  TRACE neutron.api.v2.resource     uow
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 59, in save_obj
  TRACE neutron.api.v2.resource     mapper, table, update)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 495, in _emit_update_statements
  TRACE neutron.api.v2.resource     execute(statement, params)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 662, in execute
  TRACE neutron.api.v2.resource     params)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement
  TRACE neutron.api.v2.resource     compiled_sql, distilled_params
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 874, in _execute_context
  TRACE neutron.api.v2.resource     context)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1024, in _handle_dbapi_exception
  TRACE neutron.api.v2.resource     exc_info
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 196, in raise_from_cause
  TRACE neutron.api.v2.resource     reraise(type(exception), exception, tb=exc_tb)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 867, in _execute_context
  TRACE neutron.api.v2.resource     context)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 324, in do_execute
  TRACE neutron.api.v2.resource     cursor.execute(statement, parameters)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
  TRACE neutron.api.v2.resource     self.errorhandler(self, exc, value)
  TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  TRACE neutron.api.v2.resource     raise errorclass, errorvalue
  TRACE neutron.api.v2.resource OperationalError: (OperationalError) (1205, 'Lock wait timeout exceeded; try restarting transaction') 'UPDATE floatingips SET fixed_port_id=%s, fixed_ip_address=%s, last_known_router_id=%s WHERE floatingips.id = %s' ('a477ab94-f6e5-4f43-865a-c5e3ba1c43c5', '10.100.0.3', '4c17500b-b0aa-4dff-bf15-89e1dad4f2ea', '2db4727b-5419-4f06-92e3-1cedd4fe7345')

  http://logs.openstack.org/93/98593/7/check/check-tempest-dsvm-neutron-
  full/9480e23/logs/screen-q-svc.txt.gz?level=TRACE#_2014-07-15_07_05_33_290

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


Follow ups

References