/var/log/maas/rsyslog has incorrect permission
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
Fix Released
|
Medium
|
Louis Bouchard | ||
Trusty |
Fix Released
|
Medium
|
Louis Bouchard |
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/
$ ll /var/log/
drwxr-xr-x 2 maas maas 4096 Jul 16 06:26 ./
Expected result:
/var/log/
[Regression]
None expected as only the rsyslog ownership is changed explicitely
[Description of the problem]
/var/log/
How to reproduce:
1. prepare pristine trusty box
2. sudo apt-get install maas
Expected result:
/var/log/
Actual result:
$ ll /var/log/
drwxr-xr-x 2 maas maas 4096 Jul 22 01:13 ./
Workaround:
$ sudo chown -R syslog:syslog /var/log/
It seems that 3 packages are trying to set owner related /var/log/maas/*.
====
$ grep -r chown.*
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
====
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: maas 1.5.2+bzr2282-
ProcVersionSign
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
PackageArchitec
ProcEnviron:
TERM=screen-bce
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: maas
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Gavin Panella (community): Approve
-
Diff: 29 lines (+10/-1)2 files modifieddebian/changelog (+9/-0)
debian/maas-cluster-controller.postinst (+1/-1)
- Andres Rodriguez (community): Approve
-
Diff: 212 lines (+26/-80)2 files modifieddebian/changelog (+26/-15)
debian/maas-dhcp.maas-dhcpv6-server.upstart (+0/-65)
description: | updated |
Changed in maas (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
status: | Confirmed → In Progress |
Changed in maas (Ubuntu Trusty): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in maas (Ubuntu): | |
status: | In Progress → Fix Released |
tags: | added: cts |
The owner depends on the order of setting up maas-cluster- controller and maas-region- controller?
$ grep -r chown.* /var/log/ maas /var/lib/dpkg/info/ dpkg/info/ maas-cluster- controller. postinst: chown -R maas:maas /var/log/maas dpkg/info/ maas-region- controller- min.postinst: chown -R maas:maas /var/log/maas dpkg/info/ maas-region- controller- min.postinst: chown -R syslog:syslog /var/log/ maas/rsyslog dpkg/info/ maas-region- controller. postinst: chown -R maas:maas /var/log/maas dpkg/info/ maas-region- controller. postinst: chown -R syslog:syslog /var/log/ maas/rsyslog
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
$ grep 'Setting up.*maas' apt-get_ install_ -y_maas. log bzr2282- 0ubuntu0. 2) ... bzr2282- 0ubuntu0. 2) ... bzr2282- 0ubuntu0. 2) ... maas-provisioni ngserver (1.5.2+ bzr2282- 0ubuntu0. 2) ... bzr2282- 0ubuntu0. 2) ... bzr2282- 0ubuntu0. 2) ... controller- min (1.5.2+ bzr2282- 0ubuntu0. 2) ... bzr2282- 0ubuntu0. 2) ... controller (1.5.2+ bzr2282- 0ubuntu0. 2) ... controller (1.5.2+ bzr2282- 0ubuntu0. 2) ... bzr2282- 0ubuntu0. 2) ...
Setting up python-maas-client (1.5.2+
Setting up maas-cli (1.5.2+
Setting up maas-common (1.5.2+
Setting up python-
Setting up maas-dhcp (1.5.2+
Setting up python-django-maas (1.5.2+
Setting up maas-region-
Setting up maas-dns (1.5.2+
Setting up maas-region-
Setting up maas-cluster-
Setting up maas (1.5.2+