Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

glance-manage db_sync running problem

Hi all Dears i am installing openstack following the instruction which prepared by on the controller node I installed glance and config the /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf files and modified them. but when i wanted to run glance-manage db_sync it showed me Traceback (most recent call last): File "/usr/bin/glance-manage", line 126, in <module> main() File "/usr/bin/glance-manage", line 114, in main config.setup_logging() File "/usr/lib/python2.7/dist-packages/glance/common/", line 118, in setup_logging handler = logging.handlers.WatchedFileHandler(logfile) File "/usr/lib/python2.7/logging/", line 386, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/", line 897, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/", line 916, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/glance/registry.log'

when i run glance-manage db_sync by sudo there is no error message but when i checked mysql database glance that was empty, it means no table has been created .

i should mention i change the owner of registry.log to glance by the command chown, , but still i get this error

please somebody help me.