magnum pod-create fails with KeyError exception for user_name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Dane LeBlanc |
Bug Description
If DevStack is used to instantiate the magnum plugin, and the devstack localrc/local.conf has the default values for:
LOG_COLOR (default value = True)
SYSLOG (default value = False)
then a magnum pod-create operation fails with a 500 error code (invalid syntax (line 2)), and the m-api.log log file
shows tracebacks for a "KeyError: 'user_name'" exception.
For example:
openstack@
ERROR: invalid syntax (line 2) (HTTP 500)
openstack@
The m-api.log file shows this traceback:
2015-06-08 10:31:33.707 [00;32mDEBUG magnum.cmd.api [[00;36m-[00;32m] [01;35m[
2015-06-08 10:31:33.707 [00;32mDEBUG magnum.cmd.api [[00;36m-[00;32m] [01;35m[
2015-06-08 10:31:33.707 [00;36mINFO magnum.cmd.api [[00;36m-[00;36m] [01;35m[
10.86.7.40 - - [08/Jun/2015 10:31:34] "GET / HTTP/1.1" 200 318
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/
return logging.
File "/usr/lib/
s = self._fmt % record.__dict__
KeyError: 'user_name'
Logged from file session.py, line 195
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/
return logging.
File "/usr/lib/
s = self._fmt % record.__dict__
KeyError: 'user_name'
Changed in magnum: | |
assignee: | nobody → Dane LeBlanc (leblancd) |
Changed in magnum: | |
milestone: | none → mitaka-1 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/190801
Review: https:/