← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1334109] [NEW] Lock wait timeout updating router's gw_port_id

 

Public bug reported:

Traceback:

 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 419, in create
 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
 TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 132, in create_router
 TRACE neutron.api.v2.resource     self._update_router_gw_info(context, router_db['id'], gw_info)
 TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_gwmode_db.py", line 58, in _update_router_gw_info
 TRACE neutron.api.v2.resource     context, router_id, info, router=router)
 TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 214, in _update_router_gw_info
 TRACE neutron.api.v2.resource     self._create_router_gw_port(context, router, network_id)
 TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 175, in _create_router_gw_port
 TRACE neutron.api.v2.resource     context.session.add(router)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 463, in __exit__
 TRACE neutron.api.v2.resource     self.rollback()
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 57, in __exit__
 TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 460, in __exit__
 TRACE neutron.api.v2.resource     self.commit()
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 370, in commit
 TRACE neutron.api.v2.resource     self._prepare_impl()
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 350, in _prepare_impl
 TRACE neutron.api.v2.resource     self.session.flush()
 TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/openstack/common/db/sqlalchemy/session.py", line 597, in _wrap
 TRACE neutron.api.v2.resource     return f(*args, **kwargs)
 TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/openstack/common/db/sqlalchemy/session.py", line 836, in flush
 TRACE neutron.api.v2.resource     return super(Session, self).flush(*args, **kwargs)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1907, in flush
 TRACE neutron.api.v2.resource     self._flush(objects)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2025, in _flush
 TRACE neutron.api.v2.resource     transaction.rollback(_capture_exception=True)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 57, in __exit__
 TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1989, in _flush
 TRACE neutron.api.v2.resource     flush_context.execute()
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 371, in execute
 TRACE neutron.api.v2.resource     rec.execute(self)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 524, in execute
 TRACE neutron.api.v2.resource     uow
 TRACE neutron.api.v2.resource   File "/usr/local/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/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 516, in _emit_update_statements
 TRACE neutron.api.v2.resource     execute(statement, params)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 727, in execute
 TRACE neutron.api.v2.resource     return meth(self, multiparams, params)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 322, in _execute_on_connection
 TRACE neutron.api.v2.resource     return connection._execute_clauseelement(self, multiparams, params)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 824, in _execute_clauseelement
 TRACE neutron.api.v2.resource     compiled_sql, distilled_params
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 954, in _execute_context
 TRACE neutron.api.v2.resource     context)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1116, in _handle_dbapi_exception
 TRACE neutron.api.v2.resource     exc_info
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 189, in raise_from_cause
 TRACE neutron.api.v2.resource     reraise(type(exception), exception, tb=exc_tb)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 947, in _execute_context
 TRACE neutron.api.v2.resource     context)
 TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 435, 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 routers SET gw_port_id=%s WHERE routers.id = %s' ('d73e104d-5c28-47a0-8a4c-cb7ad671dca1', '380f4c9b-3280-474b-b60f-d700b28ddb5c')

http://logs.openstack.org/63/102263/1/check/check-tempest-dsvm-neutron-
full/dac357b/logs/screen-q-svc.txt.gz?level=TRACE#_2014-06-24_15_45_32_421

** 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/1334109

Title:
  Lock wait timeout updating router's gw_port_id

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Traceback:

   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 419, in create
   TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
   TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 132, in create_router
   TRACE neutron.api.v2.resource     self._update_router_gw_info(context, router_db['id'], gw_info)
   TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_gwmode_db.py", line 58, in _update_router_gw_info
   TRACE neutron.api.v2.resource     context, router_id, info, router=router)
   TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 214, in _update_router_gw_info
   TRACE neutron.api.v2.resource     self._create_router_gw_port(context, router, network_id)
   TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 175, in _create_router_gw_port
   TRACE neutron.api.v2.resource     context.session.add(router)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 463, in __exit__
   TRACE neutron.api.v2.resource     self.rollback()
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 57, in __exit__
   TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 460, in __exit__
   TRACE neutron.api.v2.resource     self.commit()
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 370, in commit
   TRACE neutron.api.v2.resource     self._prepare_impl()
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 350, in _prepare_impl
   TRACE neutron.api.v2.resource     self.session.flush()
   TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/openstack/common/db/sqlalchemy/session.py", line 597, in _wrap
   TRACE neutron.api.v2.resource     return f(*args, **kwargs)
   TRACE neutron.api.v2.resource   File "/opt/stack/new/neutron/neutron/openstack/common/db/sqlalchemy/session.py", line 836, in flush
   TRACE neutron.api.v2.resource     return super(Session, self).flush(*args, **kwargs)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1907, in flush
   TRACE neutron.api.v2.resource     self._flush(objects)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2025, in _flush
   TRACE neutron.api.v2.resource     transaction.rollback(_capture_exception=True)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 57, in __exit__
   TRACE neutron.api.v2.resource     compat.reraise(exc_type, exc_value, exc_tb)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1989, in _flush
   TRACE neutron.api.v2.resource     flush_context.execute()
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 371, in execute
   TRACE neutron.api.v2.resource     rec.execute(self)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 524, in execute
   TRACE neutron.api.v2.resource     uow
   TRACE neutron.api.v2.resource   File "/usr/local/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/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 516, in _emit_update_statements
   TRACE neutron.api.v2.resource     execute(statement, params)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 727, in execute
   TRACE neutron.api.v2.resource     return meth(self, multiparams, params)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 322, in _execute_on_connection
   TRACE neutron.api.v2.resource     return connection._execute_clauseelement(self, multiparams, params)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 824, in _execute_clauseelement
   TRACE neutron.api.v2.resource     compiled_sql, distilled_params
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 954, in _execute_context
   TRACE neutron.api.v2.resource     context)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1116, in _handle_dbapi_exception
   TRACE neutron.api.v2.resource     exc_info
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 189, in raise_from_cause
   TRACE neutron.api.v2.resource     reraise(type(exception), exception, tb=exc_tb)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 947, in _execute_context
   TRACE neutron.api.v2.resource     context)
   TRACE neutron.api.v2.resource   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 435, 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 routers SET gw_port_id=%s WHERE routers.id = %s' ('d73e104d-5c28-47a0-8a4c-cb7ad671dca1', '380f4c9b-3280-474b-b60f-d700b28ddb5c')

  http://logs.openstack.org/63/102263/1/check/check-tempest-dsvm-
  neutron-
  full/dac357b/logs/screen-q-svc.txt.gz?level=TRACE#_2014-06-24_15_45_32_421

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


Follow ups

References