IOError: [Errno 13] Permission denied: '/var/log/utah/magners-orchestra-ssh.log'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UTAH |
Won't Fix
|
Medium
|
Max Brustkern |
Bug Description
Saw this after an upgrade that was just performed. Here's the job log with the details:
https:/
Specifically:
+ run_test_cobbler.py --name power-test-1 -i /var/lib/
+ tee log
Traceback (most recent call last):
File "/usr/bin/
run_
File "/usr/bin/
configure_
File "/usr/lib/
ssh_
File "/usr/lib/
logging.
File "/usr/lib/
StreamHandl
File "/usr/lib/
stream = open(self.
IOError: [Errno 13] Permission denied: '/var/log/
Related branches
- Max Brustkern (community): Approve
-
Diff: 68 lines (+15/-19)2 files modifiedsetup-jobs.py (+0/-5)
templates/smoke.xml.jinja (+15/-14)
I think it would be nice if permissions errors on any logfiles could be caught and logged to the console as warning or error without disrupting the process, but maybe we should be stopping on those errors. I'm not sure what the better default behavior is.
Also, right now in the new ssh log, I don't see an obvious way to differentiate which process or system is sending the log messages. We may want to add the pid or the machine name or something. We may also want this for other logging types.