← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1808879] [NEW] meta-api request header logging is useless

 

Public bug reported:

The nova metadata-api logs request headers at debug level but it's
useless:

http://logs.openstack.org/78/624778/1/check/tempest-
full/8d3c124/controller/logs/screen-n-api-
meta.txt.gz#_Dec_13_08_45_55_316152

Dec 13 08:45:55.316152 ubuntu-bionic-rax-ord-0001170468 devstack@n-api-
meta.service[9309]: DEBUG nova.api.metadata.handler [None req-
4b5eab00-e132-4551-b7f8-c80a238727a2 None None] Metadata request
headers: <webob.headers.EnvironHeaders object at 0x7f2d6fdb5e90>
{{(pid=9311) __call__ /opt/stack/nova/nova/api/metadata/handler.py:99}}

This is because webob.headers.EnvironHeaders is a mutable mapping which
acts like an iterator and doesn't yield a nice repr.

** Affects: nova
     Importance: Low
     Assignee: Matt Riedemann (mriedem)
         Status: In Progress


** Tags: api logging serviceability

-- 
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/1808879

Title:
  meta-api request header logging is useless

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  The nova metadata-api logs request headers at debug level but it's
  useless:

  http://logs.openstack.org/78/624778/1/check/tempest-
  full/8d3c124/controller/logs/screen-n-api-
  meta.txt.gz#_Dec_13_08_45_55_316152

  Dec 13 08:45:55.316152 ubuntu-bionic-rax-ord-0001170468 devstack@n
  -api-meta.service[9309]: DEBUG nova.api.metadata.handler [None req-
  4b5eab00-e132-4551-b7f8-c80a238727a2 None None] Metadata request
  headers: <webob.headers.EnvironHeaders object at 0x7f2d6fdb5e90>
  {{(pid=9311) __call__
  /opt/stack/nova/nova/api/metadata/handler.py:99}}

  This is because webob.headers.EnvironHeaders is a mutable mapping
  which acts like an iterator and doesn't yield a nice repr.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1808879/+subscriptions


Follow ups