Log module: memory footprint size used in contextual information twice bigger than expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.log |
Invalid
|
Medium
|
Bertrand Lallau |
Bug Description
The log ContextAdapter used to specify contextual informations in logging output produce a context twice bigger than expected ("extra" informations are duplicated).
Actually the following is generated:
kwargs={
'extra': {
'extra': {
'user': '6d029d604ed54d
],
],
},
'is_admin': False,
'user': '6d029d604ed54d
],
'tenant': '1b7a085905d84b
'user_id': '6d029d604ed54d
'roles': [
'user'
],
'project': 'nova.api.
'instance': '',
'version': 'unknown',
}
}
It should be:
kwargs={
'extra': {
'is_admin': False,
'user': '6d029d604ed54d
],
'tenant': '1b7a085905d84b
'user_id': '6d029d604ed54d
'roles': [
'user'
],
'project': 'nova.api.
'instance': '',
'version': 'unknown',
}
}
ContextAdapter is called each time an Openstack service produced a log,
hence memory impacted is really not insignificant.
Changed in oslo: | |
assignee: | nobody → Bertrand Lallau (bertrand-lallau) |
Changed in oslo: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in oslo: | |
status: | Triaged → In Progress |
Changed in oslo: | |
status: | In Progress → Confirmed |
affects: | oslo-incubator → oslo.log |
Fix proposed to branch: master /review. openstack. org/66458
Review: https:/