[Fri Apr 18 14:47:32.267046 2014] [:error] [pid 1470] [remote ::1:11094] ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/horizon/horizon.log' ^C [root@sofja ~]# ls -lZ /var/log/httpd/access_log -rw-r--r--. root root system_u:object_r:httpd_log_t:s0 /var/log/httpd/access_log [root@sofja ~]# ls -lZ /var/log/horizon/horizon.log -rw-r--r--. apache apache system_u:object_r:var_log_t:s0 /var/log/horizon/horizon.log
How is /var/log/horizon/horizon.log created? # rpm -qf /var/log/horizon If you execute # chcon -R -t httpd_log_t /var/log/horizon does it fix the issue?
It's created by httpd due configuration of openstack-dashboard. [root@turing ~]# rpm -qf /var/log/horizon/ openstack-dashboard-2014.1-1.fc21.noarch After chcon, it looks like the issue is fixed.
8414e1aef6778718c4b4101e033abe5006ee65d5 fixes this in git.
Thank you for fixing and building the package. Is it possible, to get this backported to f20 as well, as we have folks running OpenStack packages from Rawhide on F20 (via RDO repository, that's a pretty common pattern)
commit 52921ed8636a9bffc77cca1b9efd9a9abb40368a Author: Dan Walsh <dwalsh> Date: Sun May 25 06:39:21 2014 -0400 Label /var/log/horizon as an apache log back ported to f20.