Ask Your Question
0

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

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

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
0

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

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
0

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

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:

use_stderr=false

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 531 times

Last updated: May 07 '14