yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09155
[Bug 1274523] [NEW] connection_trace does not work with DB2 backend
Public bug reported:
When setting connection_trace=True, the stack trace does not get printed
for DB2 (ibm_db).
I have a patch that we've been using internally for this fix that I plan
to upstream soon, and with that we can get output like this:
2013-09-11 13:07:51.985 28151 INFO sqlalchemy.engine.base.Engine [-] SELECT services.created_at AS services_created_at, services.updated_at AS services_updated_at, services.deleted_at AS services_deleted_at, services.deleted AS services_deleted, services.id AS services_id, services.host AS services_host, services."binary" AS services_binary, services.topic AS services_topic, services.report_count AS services_report_count, services.disabled AS services_disabled, services.disabled_reason AS services_disabled_reason
FROM services WHERE services.deleted = ? AND services.id = ? FETCH FIRST 1 ROWS ONLY
2013-09-11 13:07:51,985 INFO sqlalchemy.engine.base.Engine (0, 3)
2013-09-11 13:07:51.985 28151 INFO sqlalchemy.engine.base.Engine [-] (0, 3)
File /usr/lib/python2.6/site-packages/nova/servicegroup/drivers/db.py:92 _report_state() service.service_ref, state_catalog)
File /usr/lib/python2.6/site-packages/nova/conductor/api.py:270 service_update() return self._manager.service_update(context, service, values)
File /usr/lib/python2.6/site-packages/nova/openstack/common/rpc/common.py:420 catch_client_exception() return func(*args, **kwargs)
File /usr/lib/python2.6/site-packages/nova/conductor/manager.py:461 service_update() svc = self.db.service_update(context, service['id'], values)
File /usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py:505 service_update() with_compute_node=False, session=session)
File /usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py:388 _service_get() result = query.first()
** Affects: cinder
Importance: Undecided
Status: New
** Affects: glance
Importance: Undecided
Status: New
** Affects: heat
Importance: Undecided
Status: New
** Affects: keystone
Importance: Undecided
Status: New
** Affects: nova
Importance: Undecided
Status: New
** Affects: oslo
Importance: Undecided
Assignee: Matt Riedemann (mriedem)
Status: New
** Tags: db
** Changed in: oslo
Assignee: (unassigned) => Matt Riedemann (mriedem)
** Also affects: nova
Importance: Undecided
Status: New
** Also affects: glance
Importance: Undecided
Status: New
** Also affects: cinder
Importance: Undecided
Status: New
** Also affects: keystone
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1274523
Title:
connection_trace does not work with DB2 backend
Status in Cinder:
New
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Status in Orchestration API (Heat):
New
Status in OpenStack Identity (Keystone):
New
Status in OpenStack Compute (Nova):
New
Status in Oslo - a Library of Common OpenStack Code:
New
Bug description:
When setting connection_trace=True, the stack trace does not get
printed for DB2 (ibm_db).
I have a patch that we've been using internally for this fix that I
plan to upstream soon, and with that we can get output like this:
2013-09-11 13:07:51.985 28151 INFO sqlalchemy.engine.base.Engine [-] SELECT services.created_at AS services_created_at, services.updated_at AS services_updated_at, services.deleted_at AS services_deleted_at, services.deleted AS services_deleted, services.id AS services_id, services.host AS services_host, services."binary" AS services_binary, services.topic AS services_topic, services.report_count AS services_report_count, services.disabled AS services_disabled, services.disabled_reason AS services_disabled_reason
FROM services WHERE services.deleted = ? AND services.id = ? FETCH FIRST 1 ROWS ONLY
2013-09-11 13:07:51,985 INFO sqlalchemy.engine.base.Engine (0, 3)
2013-09-11 13:07:51.985 28151 INFO sqlalchemy.engine.base.Engine [-] (0, 3)
File /usr/lib/python2.6/site-packages/nova/servicegroup/drivers/db.py:92 _report_state() service.service_ref, state_catalog)
File /usr/lib/python2.6/site-packages/nova/conductor/api.py:270 service_update() return self._manager.service_update(context, service, values)
File /usr/lib/python2.6/site-packages/nova/openstack/common/rpc/common.py:420 catch_client_exception() return func(*args, **kwargs)
File /usr/lib/python2.6/site-packages/nova/conductor/manager.py:461 service_update() svc = self.db.service_update(context, service['id'], values)
File /usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py:505 service_update() with_compute_node=False, session=session)
File /usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py:388 _service_get() result = query.first()
To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1274523/+subscriptions
Follow ups
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Matt Riedemann, 2016-07-16
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Armando Migliaccio, 2016-07-13
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Thomas Herve, 2016-07-08
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Sean McGinnis, 2015-11-01
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Thierry Carrez, 2014-10-01
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Thierry Carrez, 2014-09-18
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Davanum Srinivas (DIMS), 2014-09-05
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Thierry Carrez, 2014-09-05
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Brant Knudson, 2014-07-28
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Matt Riedemann, 2014-01-30
-
[Bug 1274523] Re: connection_trace does not work with DB2 backend
From: Matt Riedemann, 2014-01-30
-
[Bug 1274523] [NEW] connection_trace does not work with DB2 backend
From: Matt Riedemann, 2014-01-30
References