2296
|
|
|
John Arbash Meinel |
|
10 years ago
|
|
|
2295
|
|
|
John Arbash Meinel |
|
10 years ago
|
|
|
2294
|
|
|
John Arbash Meinel |
|
10 years ago
|
|
|
2293
|
|
|
Andrew Wilkins |
|
10 years ago
|
|
|
2292
|
|
|
Jesse Meek |
|
10 years ago
|
|
|
2291
|
|
|
Abel Deuring |
|
10 years ago
|
|
|
2290
|
|
|
Tim Penhey |
|
10 years ago
|
|
|
2289
|
|
|
Francesco Banconi |
|
10 years ago
|
|
|
2288
|
|
|
Curtis Hovey |
|
10 years ago
|
|
|
2287
|
|
|
Dimiter Naydenov |
|
10 years ago
|
|
|
2286
|
|
|
Andrew Wilkins |
|
10 years ago
|
|
|
2285
|
|
|
Andrew Wilkins |
juju-1.17.2 |
10 years ago
|
|
|
2284
|
|
|
Ian Booth |
|
10 years ago
|
|
|
2283
|
|
[r=thumper],[bug=1270671] 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/juju-{{user}}-{{env name}}/all-machines.log, and a symlink is made in the local provider log dir to point to that file. The file is also created with 0644 so the user can read it without poking permissions. By default rsyslog creates files with 0644, but in the ubuntu package, the setting is changed to 0640, which means normal users can't read the log file. Using a new action directive (new as in not-legacy), we can specify the file create mode so it doesn't use the default.
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.
|
Tim Penhey |
|
10 years ago
|
|
|
2282
|
|
|
Dimiter Naydenov |
|
10 years ago
|
|
|
2281
|
|
|
Dimiter Naydenov |
|
10 years ago
|
|
|
2280
|
|
|
Abel Deuring |
|
10 years ago
|
|
|
2279
|
|
|
Andrew Wilkins |
|
10 years ago
|
|
|
2278
|
|
|
Ian Booth |
|
10 years ago
|
|
|
2277
|
|
|
Andrew Wilkins |
|
10 years ago
|
|
|