yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91895
[Bug 1172983] Re: Logging not working when syslog user non-existent
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/2369
** Bug watch added: github.com/canonical/cloud-init/issues #2369
https://github.com/canonical/cloud-init/issues/2369
** Changed in: cloud-init
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1172983
Title:
Logging not working when syslog user non-existent
Status in cloud-init:
Expired
Bug description:
On systems that don't have a 'syslog' user (IE CentOS), logging to /var/log/cloud-init.log does not work. I have seen the following warning:
2013-04-26 01:18:34,299 - util.py[WARNING]: Unable to change the ownership of /var/log/cloud-init.log to user syslog, group adm
It appears as though the problem is in /etc/cloud/cloud.cfg.d/05_logging.cfg:
...
# These will be joined into a string that defines the configuration
- [ *log_base, *log_syslog ]
# These will be joined into a string that defines the configuration
- [ *log_base, *log_file ]
A quick fix is to comment out the line with log_syslog:
# These will be joined into a string that defines the configuration
# - [ *log_base, *log_syslog ]
# These will be joined into a string that defines the configuration
- [ *log_base, *log_file ]
This fixes the issue and logs directly to the file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1172983/+subscriptions