api.log has incorrect permissions

Bug #849669 reported by Davor Cubranic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu LTS 10.04 server, using the curent glance package from ppa:nova-core/milestone-proposed, version 2011.3~d1~20110531.139-0ubuntu0ppa1~lucid1

After installing glance with 'apt-get', the daemon failed to start. Checking the logs shows the following

Traceback (most recent call last):
  File "/usr/bin/glance-api", line 60, in <module>
    conf, app = config.load_paste_app('glance-api', options, args)
  File "/usr/lib/pymodules/python2.6/glance/common/config.py", line 279, in load_paste_app
    setup_logging(options, conf)
  File "/usr/lib/pymodules/python2.6/glance/common/config.py", line 168, in setup_logging
    logfile = logging.FileHandler(logfile)
  File "/usr/lib/python2.6/logging/__init__.py", line 819, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.6/logging/__init__.py", line 838, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/glance/api.log'

$ ls -l /var/log/glance
-rw-r--r-- 1 root root 7799 2011-09-13 17:20 /var/log/glance/api.log
-rw-r--r-- 1 glance nogroup 3449 2011-09-13 17:20 /var/log/glance/registry.log

After 'chown glance:nogroup /var/log/glance/api.log', and restarting the service, the daemon appears to be running fine and is listening on its port.

Jay Pipes (jaypipes)
Changed in glance:
status: New → Triaged
importance: Undecided → Low
milestone: none → essex-1
assignee: nobody → Chuck Short (zulcss)
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was fixed in the Ubuntu packages in 2011.3~d2-0ubuntu1, revision 8 in lp:ubuntu/glance

Changed in glance (Ubuntu):
status: New → Fix Released
Jay Pipes (jaypipes)
Changed in glance:
status: Triaged → Fix Released
Thierry Carrez (ttx)
Changed in glance:
status: Fix Released → Invalid
no longer affects: glance
Revision history for this message
Davor Cubranic (cubranic) wrote :

Thierry, what do you mean by "Invalid"?

Revision history for this message
Thierry Carrez (ttx) wrote :

This was actually an Ubuntu packaging issue, not an issue in Glance itself. Therefore I removed the Glance task and kept the Ubuntu/Glance one...

Revision history for this message
Davor Cubranic (cubranic) wrote :

Thanks for the explanation, Thierry. I didn't see the distinction between "glance" and "glance (Ubuntu)".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.