[openstack-dev] [oslo] oslo.context and name fields

Sean Dague sean at dague.net
Tue Apr 5 18:31:46 UTC 2016

I was trying to clean up the divergent logging definitions in devstack
as part of scrubbing out 'tenant' references -
https://review.openstack.org/#/c/301801/ and in doing so stumbled over
the fact that the extremely useful project_name and user_name fields are
not in base oslo.context.


These are always available to be set -

And they are extremely valuable when a human is looking at logs, as you
actually can remember names when looking at various services to cross
reference things. Nova has a custom context that sets these things -

I would really like these to be available in all services using

So the question is, were these not implemented on purpose? Is the
opposition to putting them into oslo.context?

Please let me know before I start going down this path.


Sean Dague

More information about the OpenStack-dev mailing list