SysLogHandler doesn't work properly with the UDP socket
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Haiwei Xu | ||
oslo-incubator |
Fix Released
|
High
|
Haiwei Xu | ||
Grizzly |
Fix Released
|
High
|
Haiwei Xu |
Bug Description
When "nova dns-create-
the error message is different between the syslog configuration of "unix socket" and "UDP socket".
When it is configured in "unix socket" mode, it outputs a forbidden error(HTTP 403) which is expected.
However it occurs an internal server error(HTTP 500) in the "UDP socket" mode, and users can't get the
reason of the error.
I configured the /etc/nova/
...
[handler_syslog]
args=('
...
$ nova dns-create-
ERROR: User does not have admin privileges (HTTP 403) (Request-ID: req-85e1d369-
But when I changed the "args" to "UDP socket" mode,
...
[handler_syslog]
args=((
...
I got an internal server error(HTTP 500):
$ nova dns-create-
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-7b4ce110-
And the error message in the log file is :
Traceback (most recent call last):
File "/usr/local/
func(*args, **kwargs)
File "/opt/stack/
connection_
File "/opt/stack/
ending, log_failure)
File "/opt/stack/
log_failure)
File "/opt/stack/
'args': failure.args,
AttributeError: 'NoneType' object has no attribute 'args'
I also found the same problem in "nova dns-create-
Changed in nova: | |
assignee: | nobody → Haiwei Xu (xu-haiwei) |
Changed in oslo: | |
milestone: | none → grizzly-rc1 |
importance: | Undecided → High |
Changed in nova: | |
status: | In Progress → Triaged |
Changed in nova: | |
status: | Triaged → In Progress |
Changed in oslo: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
If there is a syslog problem, it's probably in the log module from oslo, so I added oslo to this bug.