Comment 2 for bug 1678011

Revision history for this message
Jiří Stránský (jistr) wrote : Re: ocata->pike upgrade - keystone cannot access keystone.log

[root@overcloud-controller-0 ~]# docker ps -a | grep keystone
7b6063d3ab2e 192.168.24.1:8787/tripleoupstream/centos-binary-keystone:latest "kolla_start" 6 minutes ago Exited (1) 6 minutes ago keystone_db_sync
b041b7f603f8 192.168.24.1:8787/tripleoupstream/centos-binary-keystone:latest "/bin/bash -c 'mkdir " 6 minutes ago Exited (0) 6 minutes ago keystone-init-log
cd0b219b247a 192.168.24.1:8787/tripleoupstream/centos-binary-keystone:latest "kolla_start" 6 minutes ago Up 6 minutes keystone

[root@overcloud-controller-0 ~]# docker logs 7b6063d3ab2e
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Writing out command to execute
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 44, in main
    cli.main(argv=sys.argv, config_files=config_files)
  File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1371, in main
    keystone.conf.setup_logging()
  File "/usr/lib/python2.7/site-packages/keystone/conf/__init__.py", line 112, in setup_logging
    log.setup(CONF, 'keystone')
  File "/usr/lib/python2.7/site-packages/oslo_log/log.py", line 269, in setup
    _setup_logging_from_conf(conf, product_name, version)
  File "/usr/lib/python2.7/site-packages/oslo_log/log.py", line 366, in _setup_logging_from_conf
    filelog = file_handler(logpath)
  File "/usr/lib64/python2.7/logging/handlers.py", line 392, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/keystone/keystone.log'