Logs exist in both /var/log/nova and /var/log/upstart

asked 2014-05-06 22:17:56 -0600

pellaeon gravatar image

On the controller node, some services, for instance nova-api-metadata and nova-api-os-compute, have log files in both /var/log/nova and /var/log/upstart , why?

versions: Ubuntu 12.04 and OpenStack Havana

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-05-06 22:44:22 -0600

George Shuklin gravatar image

Upstart logging strerr/stdout of processes to own logs.

And those two is no always identical. F.e. if you add space before any option in config, nova will terminate with error message only to stderr, because it does not know where to write log about errors in config file with logging options.

Same for low-level errors, like chmod -x /use/bin/python, etc.

edit flag offensive delete link more

answered 2014-05-07 18:12:08 -0600

vishvananda gravatar image

upstart logs stderr, which can be valuable if some exception is thrown outside of the logging code. You can stop the duplicate logging by making nova (or other services) not send log data to stderr

in /etc/nova/nova.conf:


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-05-06 22:17:56 -0600

Seen: 616 times

Last updated: May 07 '14