yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01651
[Bug 1135539] Re: SysLogHandler doesn't work properly with the UDP socket
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => grizzly-rc1
--
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/1135539
Title:
SysLogHandler doesn't work properly with the UDP socket
Status in OpenStack Compute (Nova):
Fix Released
Status in Oslo - a Library of Common OpenStack Code:
Fix Released
Bug description:
When "nova dns-create-private-domain" command failed due to the privileges,
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/logging-nova-network.conf like below.
...
[handler_syslog]
args=('/dev/log',handlers.SysLogHandler.LOG_LOCAL1) #unix socket
...
$ nova dns-create-private-domain demo (demo user doesn't have the admin authority)
ERROR: User does not have admin privileges (HTTP 403) (Request-ID: req-85e1d369-f22f-45cf-bb1b-f3740d535e8f)
But when I changed the "args" to "UDP socket" mode,
...
[handler_syslog]
args=(('localhost',handlers.SYSLOG_UDP_PORT),handlers.SysLogHandler.LOG_LOCAL1)
...
I got an internal server error(HTTP 500):
$ nova dns-create-private-domain demo
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-7b4ce110-dd1d-45a1-bc38-afcd52d05e46)
And the error message in the log file is :
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl
func(*args, **kwargs)
File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 294, in _process_data
connection_pool=self.connection_pool)
File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 191, in reply
ending, log_failure)
File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 161, in msg_reply
log_failure)
File "/opt/stack/nova/nova/openstack/common/rpc/common.py", line 273, in serialize_remote_exception
'args': failure.args,
AttributeError: 'NoneType' object has no attribute 'args'
I also found the same problem in "nova dns-create-public-domain"
command.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1135539/+subscriptions