prometheanfire / gentoo-cloud-prep

Preparation for gentoo instances on an OpenStack cloud, including stage4 prep
13 stars 6 forks source link

syslog user not found, when trying to chown /var/log/cloud-init.log #5

Closed prometheanfire closed 9 years ago

prometheanfire commented 9 years ago

I think the user is hardcoded

hartwork commented 9 years ago

The default is hardcoded, but it can be configured in /etc/cloud/cloud.cfg.

rafaelmartins commented 9 years ago
Jul  2 18:06:37 localhost util.py[DEBUG]: Cloud-init v. 0.7.6 running 'init-local' at Thu, 02 Jul 2015 18:06:37 +0000. Up 10.97 seconds.
Jul  2 18:06:37 localhost util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [420] 0 bytes
Jul  2 18:06:37 localhost util.py[WARNING]: Unable to change the ownership of /var/log/cloud-init.log to user syslog, group adm
Jul  2 18:06:37 localhost util.py[DEBUG]: Unable to change the ownership of /var/log/cloud-init.log to user syslog, group adm
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/cloudinit/stages.py", line 156, in _initialize_filesystem
    util.chownbyname(log_file, u, g)
  File "/usr/lib64/python2.7/site-packages/cloudinit/util.py", line 1134, in chownbyname
    raise OSError("Unknown user or group: %s" % (e))
OSError: Unknown user or group: 'getpwnam(): name not found: syslog'
travisghansen commented 9 years ago

I think the option for this one is: syslog_fix_perms: root:root