[openstack-dev] global request identifier
bdelliott at gmail.com
Sat Apr 13 01:44:43 UTC 2013
Sure, I'm open to an ad-hoc discussion on this at the summit. Perhaps one of the unconference time slots?
Responses inline below.
On Apr 12, 2013, at 6:22 PM, Michael J Fork <mjfork at us.ibm.com> wrote:
> Brian - I too am interested in this topic and am glad to see someone else interested in moving this forward. Reading through the ML again, the blueprint appears to diverge on identifiers (commented on whiteboard as well). From https://lists.launchpad.net/openstack/msg13174.html
> "Seems like a likely line is when a new HTTP call is made, the request-id is reset. This allows us to disallow passing in a request-id for all web services, which would lend itself well to a common middleware. That is to say, users of an API can pass in a transaction ID (which means the transaction ID could originate from the customer, if that's helpful to them) and the request id would always get set to a random UUID any time it passed through this middleware."
> Following this approach would seem to answer the open questions regarding request-id values - middleware in the HTTP server could strip it off since it would always be re-generated on HTTP call boundaries. By contrast, the transaction id would be used for the life of the API invocation, crossing component boundaries. If the transaction id isn't specified by the customer, a UUID could be generated.
I think we are on the same page here. However, I don't care for the term "transaction id" as it has a connotation of an operation capable of being rolled back. Naming is always a pain, but I'd lean towards "openstack request id" or "API request id" for the optional user-supplied/global identifier. Then internal to each service, it could simply be the "Nova request id" or "Glance request id."
> I would also like to propose making this statement slightly more generic: "each service that touches the request will carry along this header value and use it in log messages and external notifications." Instead of just logging those values, what if all log calls included the request object being worked on. I believe having the request object would open up a much richer set of possibilities with log handlers, including 1) logging those IDs via the formatter, and 2) in-memory buffer of debug messages with those associated with a failed request being dumped to disk.
Yup, sounds pretty useful.
> Anyone else interested in an ad-hoc discussion on this at the summit?
> Michael Fork
> Architect, OpenStack Development
> IBM Systems & Technology Group
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev