[Bug 1346703] Re: /var/log/maas/rsyslog has incorrect permission
Louis Bouchard
louis.bouchard at canonical.com
Tue Dec 9 13:04:16 UTC 2014
New debdiff against most recent version in trusty-updates
** Patch removed: "lp1346703_maas_rsyslog.debdiff"
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1346703/+attachment/4235378/+files/lp1346703_maas_rsyslog.debdiff
** Patch added: "lp1346703_maas_rsyslog_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1346703/+attachment/4276923/+files/lp1346703_maas_rsyslog_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1346703
Title:
/var/log/maas/rsyslog has incorrect permission
Status in maas package in Ubuntu:
Fix Released
Status in maas source package in Trusty:
In Progress
Bug description:
[SRU justification]
This fix is required to allow maas to log rsyslog events
[Impact]
Without this fix, no d-i log from MAAS can be written
[Fix]
Change the post install script code that sets permissions in /var/log/maas
directory
[Test Case]
1. create pristine Ubuntu 14.04 LTS box
2. sudo apt-get update && sudo apt-get install maas
Actual result:
/var/log/maas/rsyslog/ is owned by maas:maas and not writable by syslog user. No log will be written.
$ ll /var/log/maas/rsyslog/
drwxr-xr-x 2 maas maas 4096 Jul 16 06:26 ./
Expected result:
/var/log/maas/rsyslog/ is writable by syslog user to store d-i log from MAAS nodes.
[Regression]
None expected as only the rsyslog ownership is changed explicitely
[Description of the problem]
/var/log/maas/rsyslog/ is owned by maas:maas and has 755 permission
after maas package installation. Therefore rsyslogd cannot write logs
into the directory.
How to reproduce:
1. prepare pristine trusty box
2. sudo apt-get install maas
Expected result:
/var/log/maas/rsyslog/ is owned by for example syslog:syslog.
Actual result:
$ ll /var/log/maas/rsyslog/
drwxr-xr-x 2 maas maas 4096 Jul 22 01:13 ./
Workaround:
$ sudo chown -R syslog:syslog /var/log/maas/rsyslog
It seems that 3 packages are trying to set owner related /var/log/maas/*.
====
$ grep -r chown.*/var/log/maas /var/lib/dpkg/info/
/var/lib/dpkg/info/maas-cluster-controller.postinst: chown -R maas:maas /var/log/maas
/var/lib/dpkg/info/maas-region-controller-min.postinst: chown -R maas:maas /var/log/maas
/var/lib/dpkg/info/maas-region-controller-min.postinst: chown -R syslog:syslog /var/log/maas/rsyslog
/var/lib/dpkg/info/maas-region-controller.postinst: chown -R maas:maas /var/log/maas
/var/lib/dpkg/info/maas-region-controller.postinst: chown -R syslog:syslog /var/log/maas/rsyslog
====
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: maas 1.5.2+bzr2282-0ubuntu0.2
ProcVersionSignature: User Name 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Tue Jul 22 01:15:20 2014
PackageArchitecture: all
ProcEnviron:
TERM=screen-bce
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: maas
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1346703/+subscriptions
More information about the Ubuntu-sponsors
mailing list