Bug 1641826
| Summary: | Environment with pre-provisioned nodes after overcloud / container update returns [Errno 13] Permission denied: '/var/log/horizon/horizon.log' until horizon container is restarted | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Andreas Karis <akaris> |
| Component: | openstack-tripleo-heat-templates | Assignee: | Bogdan Dobrelya <bdobreli> |
| Status: | CLOSED ERRATA | QA Contact: | Arik Chernetsky <achernet> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 13.0 (Queens) | CC: | akaris, aschultz, bdobreli, beth.white, david.pasqua, emacchi, jrist, jschluet, knoha, mburns, rdopiera, slinaber, ssigwald |
| Target Milestone: | z6 | Keywords: | TestOnly, Triaged, ZStream |
| Target Release: | 13.0 (Queens) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-heat-templates-8.3.1-5.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-07-10 13:03:16 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Andreas Karis
2018-10-22 21:57:14 UTC
Is this part of an upgrade? Do you expect the container refresh to happen automatically? Hi, Confirmed for a 3rd customer. How to reproduce: i) run openstack overcloud deploy to push a configuration change via a stack update ii) reboot controller node Horizon will not come up. Check error logs: ~~~ [root@overcloud-controller-0 ~]# grep -i permission /var/log/containers/httpd/horizon/horizon_error.log [Wed Nov 07 23:29:41.155014 2018] [:error] [pid 57] [remote 192.168.102.7:0] ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/horizon/horizon.log' [Wed Nov 07 23:29:47.932982 2018] [:error] [pid 59] [remote 192.168.102.7:0] ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/horizon/horizon.log' [Wed Nov 07 23:29:55.489593 2018] [:error] [pid 59] [remote 192.168.102.7:156] ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/horizon/horizon.log' [root@overcloud-controller-0 ~]# date Wed 7 Nov 23:32:08 UTC 2018 ~~~ iii) Fix the issue: ~~~ [root@overcloud-controller-0 ~]# docker ps | grep horizon 9b1f6065f654 192.168.103.1:8787/rhosp13/openstack-horizon:13.0-54 "kolla_start" 13 days ago Up 6 minutes horizon [root@overcloud-controller-0 ~]# docker restart horizon horizon [root@overcloud-controller-0 ~]# ~~~ Hi guys, Any update on this? i'm having the same issue on two customers if you need some logs please let me know as workaround a put a cron to fix the permissions at container boot time ()[root@overcloud-controller-2 /]# crontab -l @reboot /root/fixlogperms.sh ()[root@overcloud-controller-2 /]# cat /root/fixlogperms.sh chown apache:apache /var/log/horizon/* As far as I can see, Horizon has the permissions for the log directory configured properly: https://github.com/openstack/tripleo-heat-templates/blob/stable/queens/docker/services/horizon.yaml#L88-L91 This looks like a problem with how tripleo itself works, and not with Horizon or its configuration. I'm afraid I'm unable to help with this issue, it needs to go to tripleo's DFG. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:1738 |