Missing nova context during spawn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Andrew Laski | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The nova request context tracks a security context and other request information, including a request id that is added to log entries associated with this request. The request context is passed around explicitly in many chunks of OpenStack code. But nova/context.py also stores the RequestContext in the thread's local store (when the RequestContext is created, or when it is explicitly stored through a call to update_store). The nova logger will use an explicitly passed context, or look for it in the local.store.
A recent change in community openstack code has resulted in the context not being set for many nova log messages during spawn:
https:/
This change spawns a new thread in nova/compute/
Example of log messages with missing req id during spawn:
014-12-13 22:20:30.987 18219 DEBUG nova.openstack.
2014-12-13 22:20:30.987 18219 DEBUG nova.openstack.
2014-12-13 22:20:31.012 18219 AUDIT nova.compute.
...
2014-12-13 22:20:31.280 18219 DEBUG nova.openstack.
2014-12-13 22:20:31.281 18219 DEBUG nova.openstack.
2014-12-13 22:20:31.282 18219 DEBUG nova.openstack.
2014-12-13 22:20:31.284 18219 DEBUG nova.compute.
...
2014-12-13 22:20:32.850 18219 DEBUG nova.network.
Proposed patch:
one new line of code at the beginning of nova/compute/
context.
Changed in nova: | |
assignee: | nobody → Numan Siddique (numansiddique) |
Changed in nova: | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Numan Siddique (numansiddique) → Qin Zhao (zhaoqin) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
tags: | added: kilo-rc-potential |
Changed in nova: | |
assignee: | Qin Zhao (zhaoqin) → Andrew Laski (alaski) |
tags: | added: kilo-backport-potential |
tags: | removed: kilo-rc-potential |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/143647
Review: https:/