Merge lp:~thumper/juju-core/all-machines-trusty into lp:~go-bot/juju-core/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 2283 | ||||
Proposed branch: | lp:~thumper/juju-core/all-machines-trusty | ||||
Merge into: | lp:~go-bot/juju-core/trunk | ||||
Diff against target: |
127 lines (+43/-5) 5 files modified
environs/cloudinit/cloudinit.go (+1/-1) environs/cloudinit/cloudinit_test.go (+2/-2) log/syslog/config.go (+26/-1) log/syslog/config_test.go (+5/-1) provider/local/environ.go (+9/-0) |
||||
To merge this branch: | bzr merge lp:~thumper/juju-core/all-machines-trusty | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+204106@code.launchpad.net |
Commit message
Fix the local provider all-machines.log
There were a number of problems with this as it was, which failed more in trusty as I think the apparmor profile for rsyslogd may have changed or got bugs fixed.
The rsyslog config file was being written by root with 0600 perms. The rsyslog process does a setuid to become the syslog user. The syslog user couldn't read the config file. Now this is written with 0644 so it can be read.
The apparmor profile is quite strict about where rsyslog can write files. Instead of poking with the profile, the local provider now logs to /var/log/
Also, when a local environment is destroyed, the normal dir is removed, but the all-machines.log is left around (which I find handy) until the environment is bootstrapped again, then it is removed.
Description of the change
Fix the local provider all-machines.log
There were a number of problems with this as it was, which failed more in trusty as I think the apparmor profile for rsyslogd may have changed or got bugs fixed.
The rsyslog config file was being written by root with 0600 perms. The rsyslog process does a setuid to become the syslog user. The syslog user couldn't read the config file. Now this is written with 0644 so it can be read.
The apparmor profile is quite strict about where rsyslog can write files. Instead of poking with the profile, the local provider now logs to /var/log/
Also, when a local environment is destroyed, the normal dir is removed, but the all-machines.log is left around (which I find handy) until the environment is bootstrapped again, then it is removed.
LGTM