Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The Glance API logs on the controller and the node haven't had any additions for a couple of days.

The controller has entries like this--I've changed the permissions on the file but nothing further's been written:

IOError: [Errno 13] Permission denied: '/var/log/glance/api.log' 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.7/glance/common/config.py", line 279, in load_paste_app setup_logging(options, conf) File "/usr/lib/pymodules/python2.7/glance/common/config.py", line 168, in setup_logging logfile = logging.FileHandler(logfile) File "/usr/lib/python2.7/logging/__init__.py", line 893, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 912, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/glance/api.log' 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.7/glance/common/config.py", line 279, in load_paste_app setup_logging(options, conf) File "/usr/lib/pymodules/python2.7/glance/common/config.py", line 168, in setup_logging logfile = logging.FileHandler(logfile) File "/usr/lib/python2.7/logging/__init__.py", line 893, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 912, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/glance/api.log'

the node looks like this at the end:

Session terminated, terminating shell... ...terminated. 2011-07-06 20:30:08 DEBUG [glance-api] ************************* 2011-07-06 20:30:08 DEBUG [glance-api] Configuration options gathered from config file: 2011-07-06 20:30:08 DEBUG [glance-api] /etc/glance/glance.conf 2011-07-06 20:30:08 DEBUG [glance-api] ================================================ 2011-07-06 20:30:08 DEBUG [glance-api] bind_host 0.0.0.0 2011-07-06 20:30:08 DEBUG [glance-api] bind_port 9292 2011-07-06 20:30:08 DEBUG [glance-api] debug False 2011-07-06 20:30:08 DEBUG [glance-api] default_store file 2011-07-06 20:30:08 DEBUG [glance-api] filesystem_store_datadir /var/lib/glance/images/ 2011-07-06 20:30:08 DEBUG [glance-api] registry_host 0.0.0.0 2011-07-06 20:30:08 DEBUG [glance-api] registry_port 9191 2011-07-06 20:30:08 DEBUG [glance-api] swift_store_auth_address 127.0.0.1:8080/v1.0/ 2011-07-06 20:30:08 DEBUG [glance-api] swift_store_container glance 2011-07-06 20:30:08 DEBUG [glance-api] swift_store_create_container_on_put False 2011-07-06 20:30:08 DEBUG [glance-api] swift_store_key a86850deb2742ec3cb41518e26aa2d89 2011-07-06 20:30:08 DEBUG [glance-api] swift_store_user jdoe 2011-07-06 20:30:08 DEBUG [glance-api] verbose True 2011-07-06 20:30:08 DEBUG [glance-api] ************************* 2011-07-06 20:30:08 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-07-06 20:30:08 DEBUG [eventlet.wsgi.server] (1320) wsgi starting up on http://0.0.0.0:9292/ 2011-07-09 12:10:15 DEBUG [routes.middleware] Matched GET /images/1 2011-07-09 12:10:15 DEBUG [routes.middleware] Route path: '/images/:(id)', defaults: {'action': u'show', 'controller': <glance.server.controller object="" at="" 0x24b1f10="">} 2011-07-09 12:10:15 DEBUG [routes.middleware] Match dict: {'action': u'show', 'controller': <glance.server.controller object="" at="" 0x24b1f10="">, 'id': u'1'} 2011-07-09 12:10:15 DEBUG [glance.server] Image with identifier 1 not found 2011-07-09 12:10:15 DEBUG [eventlet.wsgi.server] 10.0.0.101 - - [09/Jul/2011 12:10:15] "GET /images/1 HTTP/1.1" 404 209 0.053769 2011-07-09 12:10:25 DEBUG [routes.middleware] Matched GET /images/2 2011-07-09 12:10:25 DEBUG [routes.middleware] Route path: '/images/:(id)', defaults: {'action': u'show', 'controller': <glance.server.controller object="" at="" 0x24b1f10="">} 2011-07-09 12:10:25 DEBUG [routes.middleware] Match dict: {'action': u'show', 'controller': <glance.server.controller object="" at="" 0x24b1f10="">, 'id': u'2'} 2011-07-09 12:10:25 DEBUG [glance.server] Image with identifier 2 not found 2011-07-09 12:10:25 DEBUG [eventlet.wsgi.server] 10.0.0.101 - - [09/Jul/2011 12:10:25] "GET /images/2 HTTP/1.1" 404 209 0.014333