yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #18931
[Bug 1355103] [NEW] InvalidRequestError in l3_agent_scheduler:bind_router
Public bug reported:
Observed in the gate:
ERROR neutron.api.v2.resource [req-359624f3-6dac-49a6-b7fb-ebf932840832 None] add_router_interface 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 200, in _handle_action
TRACE neutron.api.v2.resource return getattr(self._plugin, name)(*arg_list, **kwargs)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_dvr_db.py", line 187, in add_router_interface
TRACE neutron.api.v2.resource context, router_interface_info, 'add')
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1083, in notify_router_interface_action
TRACE neutron.api.v2.resource {'subnet_id': router_interface_info['subnet_id']})
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1055, in notify_routers_updated
TRACE neutron.api.v2.resource context, router_ids, operation, data)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py", line 139, in routers_updated
TRACE neutron.api.v2.resource operation, data)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py", line 107, in _notification
TRACE neutron.api.v2.resource plugin.schedule_routers(adminContext, router_ids, hints=data)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_agentschedulers_db.py", line 355, in schedule_routers
TRACE neutron.api.v2.resource self.schedule_router(context, router, candidates=None, hints=hints)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_agentschedulers_db.py", line 350, in schedule_router
TRACE neutron.api.v2.resource self, context, router, candidates=candidates, hints=hints)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/scheduler/l3_agent_scheduler.py", line 229, in schedule
TRACE neutron.api.v2.resource plugin, context, router_id, candidates=candidates, hints=hints)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/scheduler/l3_agent_scheduler.py", line 213, in _schedule_router
TRACE neutron.api.v2.resource self.bind_router(context, router_id, chosen_agent)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/scheduler/l3_agent_scheduler.py", line 187, in bind_router
TRACE neutron.api.v2.resource {'agent_id': chosen_agent.id,
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 316, in __get__
TRACE neutron.api.v2.resource return self.impl.get(instance_state(instance), dict_)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 611, in get
TRACE neutron.api.v2.resource value = callable_(state, passive)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 380, in __call__
TRACE neutron.api.v2.resource self.manager.deferred_scalar_loader(self, toload)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 601, in load_scalar_attributes
TRACE neutron.api.v2.resource only_load_props=attribute_names)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 226, in load_on_ident
TRACE neutron.api.v2.resource return q.one()
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2310, in one
TRACE neutron.api.v2.resource ret = list(self)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2353, in __iter__
TRACE neutron.api.v2.resource return self._execute_and_instances(context)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2366, in _execute_and_instances
TRACE neutron.api.v2.resource close_with_result=True)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2357, in _connection_from_session
TRACE neutron.api.v2.resource **kw)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 799, in connection
TRACE neutron.api.v2.resource close_with_result=close_with_result)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 803, in _connection_for_bind
TRACE neutron.api.v2.resource return self.transaction._connection_for_bind(engine)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 282, in _connection_for_bind
TRACE neutron.api.v2.resource self._assert_active()
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 198, in _assert_active
TRACE neutron.api.v2.resource "This Session's transaction has been rolled back "
TRACE neutron.api.v2.resource InvalidRequestError: This Session's transaction has been rolled back by a nested rollback() call. To begin a new transaction, issue Session.rollback() first.
http://logs.openstack.org/48/112948/3/check/check-tempest-dsvm-neutron-
pg/503d619/logs/screen-q-svc.txt.gz?level=TRACE#_2014-08-11_07_18_16_457
** Affects: neutron
Importance: Medium
Assignee: Eugene Nikanorov (enikanorov)
Status: In Progress
** Tags: db l3-ipam-dhcp
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1355103
Title:
InvalidRequestError in l3_agent_scheduler:bind_router
Status in OpenStack Neutron (virtual network service):
In Progress
Bug description:
Observed in the gate:
ERROR neutron.api.v2.resource [req-359624f3-6dac-49a6-b7fb-ebf932840832 None] add_router_interface 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 200, in _handle_action
TRACE neutron.api.v2.resource return getattr(self._plugin, name)(*arg_list, **kwargs)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_dvr_db.py", line 187, in add_router_interface
TRACE neutron.api.v2.resource context, router_interface_info, 'add')
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1083, in notify_router_interface_action
TRACE neutron.api.v2.resource {'subnet_id': router_interface_info['subnet_id']})
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1055, in notify_routers_updated
TRACE neutron.api.v2.resource context, router_ids, operation, data)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py", line 139, in routers_updated
TRACE neutron.api.v2.resource operation, data)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py", line 107, in _notification
TRACE neutron.api.v2.resource plugin.schedule_routers(adminContext, router_ids, hints=data)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_agentschedulers_db.py", line 355, in schedule_routers
TRACE neutron.api.v2.resource self.schedule_router(context, router, candidates=None, hints=hints)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_agentschedulers_db.py", line 350, in schedule_router
TRACE neutron.api.v2.resource self, context, router, candidates=candidates, hints=hints)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/scheduler/l3_agent_scheduler.py", line 229, in schedule
TRACE neutron.api.v2.resource plugin, context, router_id, candidates=candidates, hints=hints)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/scheduler/l3_agent_scheduler.py", line 213, in _schedule_router
TRACE neutron.api.v2.resource self.bind_router(context, router_id, chosen_agent)
TRACE neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/scheduler/l3_agent_scheduler.py", line 187, in bind_router
TRACE neutron.api.v2.resource {'agent_id': chosen_agent.id,
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 316, in __get__
TRACE neutron.api.v2.resource return self.impl.get(instance_state(instance), dict_)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 611, in get
TRACE neutron.api.v2.resource value = callable_(state, passive)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 380, in __call__
TRACE neutron.api.v2.resource self.manager.deferred_scalar_loader(self, toload)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 601, in load_scalar_attributes
TRACE neutron.api.v2.resource only_load_props=attribute_names)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 226, in load_on_ident
TRACE neutron.api.v2.resource return q.one()
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2310, in one
TRACE neutron.api.v2.resource ret = list(self)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2353, in __iter__
TRACE neutron.api.v2.resource return self._execute_and_instances(context)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2366, in _execute_and_instances
TRACE neutron.api.v2.resource close_with_result=True)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2357, in _connection_from_session
TRACE neutron.api.v2.resource **kw)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 799, in connection
TRACE neutron.api.v2.resource close_with_result=close_with_result)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 803, in _connection_for_bind
TRACE neutron.api.v2.resource return self.transaction._connection_for_bind(engine)
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 282, in _connection_for_bind
TRACE neutron.api.v2.resource self._assert_active()
TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 198, in _assert_active
TRACE neutron.api.v2.resource "This Session's transaction has been rolled back "
TRACE neutron.api.v2.resource InvalidRequestError: This Session's transaction has been rolled back by a nested rollback() call. To begin a new transaction, issue Session.rollback() first.
http://logs.openstack.org/48/112948/3/check/check-tempest-dsvm-
neutron-
pg/503d619/logs/screen-q-svc.txt.gz?level=TRACE#_2014-08-11_07_18_16_457
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1355103/+subscriptions
Follow ups
References