keystone.log's permission is not right

Bug #1631685 reported by jackning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
jackning

Bug Description

At present, keystone.log's user:group permit is root:kolla,
when got token from keystone, it failed. The reason is that:
Permission denied. So it shoud be changed keystone:keystone.

keystone-apache-public-error.log's detail log message:

......
2016-10-08 22:19:20.190126 File "/var/lib/kolla/venv/lib/python2.7/site-packages/keystone/server/common.py", line 39, in configure
2016-10-08 22:19:20.190165 config.setup_logging()
2016-10-08 22:19:20.190172 File "/var/lib/kolla/venv/lib/python2.7/site-packages/keystone/common/config.py", line 1141, in setup_logging
2016-10-08 22:19:20.190410 log.setup(CONF, 'keystone')
2016-10-08 22:19:20.190419 File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_log/log.py", line 243, in setup
2016-10-08 22:19:20.190498 _setup_logging_from_conf(conf, product_name, version)
2016-10-08 22:19:20.190505 File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_log/log.py", line 319, in _setup_logging_from_conf
2016-10-08 22:19:20.190519 filelog = file_handler(logpath)
2016-10-08 22:19:20.190527 File "/usr/lib64/python2.7/logging/handlers.py", line 392, in __init__
2016-10-08 22:19:20.190717 logging.FileHandler.__init__(self, filename, mode, encoding, delay)
2016-10-08 22:19:20.190726 File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__
2016-10-08 22:19:20.190976 StreamHandler.__init__(self, self._open())
2016-10-08 22:19:20.190987 File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open
2016-10-08 22:19:20.190999 stream = open(self.baseFilename, self.mode)
2016-10-08 22:19:20.191023 IOError: [Errno 13] Permission denied: '/var/log/kolla/keystone/keystone.log'

jackning (ningyougang)
Changed in kolla:
assignee: nobody → jackning (ningyougang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/384146

Changed in kolla:
status: New → In Progress
Changed in kolla:
importance: Undecided → High
milestone: none → 3.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/384146
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=cebed25608f07f11058a31d2f1a2d94e2142e59f
Submitter: Jenkins
Branch: master

commit cebed25608f07f11058a31d2f1a2d94e2142e59f
Author: jackning <email address hidden>
Date: Sat Oct 8 22:49:57 2016 -0400

    Change keystone.log's permit to keystone:keystone

    At present, keystone.log's user:group permit is root:kolla,
    when got token from keystone, it failed. The reason is that:
    Permission denied. So it shoud be changed keystone:keystone.

    Change-Id: Ibbbf1d88ba16e5040f9068ea9948373d10593514
    Closes-Bug: #1631685

Changed in kolla:
status: In Progress → Fix Released
Steven Dake (sdake)
Changed in kolla:
milestone: 3.0.0 → newton-rc3
Steven Dake (sdake)
Changed in kolla:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 4.0.0.0b1

This issue was fixed in the openstack/kolla 4.0.0.0b1 development milestone.

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.