KeyError: 'uuid' trace in n-cpu logs when logging with instance=instance kwarg
Bug #1444728 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann | ||
Kilo |
Fix Released
|
High
|
Unassigned | ||
oslo.log |
Invalid
|
Undecided
|
Matt Riedemann |
Bug Description
This is with oslo.log 1.0.0:
Traceback (most recent call last):
File "/usr/lib/
msg = self.format(record)
File "/usr/local/
return logging.
File "/usr/lib/
return fmt.format(record)
File "/usr/local/
% instance)
KeyError: 'uuid'
The change was made here: https:/
Looks like that should be formatting with a dict using the uuid key.
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 |
To post a comment you must log in.
These are the default log format options:
# NOTE(mikal): there are two options here because sometimes we are handed StrOpt( 'instance_ format' ,
default= '[instance: %(uuid)s] ',
help=' The format for an instance that is passed with the log '
' message. '), StrOpt( 'instance_ uuid_format' ,
default= '[instance: %(uuid)s] ',
help=' The format for an instance UUID that is passed with the '
' log message.'),
# a full instance (and could include more information), and other times we
# are just handed a UUID for the instance.
cfg.
cfg.