Bug 1155112
| Summary: | after code introduction to prevent clear text PW, now no logging occurs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Mike Abrams <mabrams> | ||||
| Component: | python-django-horizon | Assignee: | Matthias Runge <mrunge> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Ido Ovadia <iovadia> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 5.0 (RHEL 7) | CC: | aortega, jpichon, mabrams, mrunge, yeylon | ||||
| Target Milestone: | --- | Keywords: | ZStream | ||||
| Target Release: | 5.0 (RHEL 7) | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-10-22 09:20:09 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: | |||||||
| Attachments: |
|
||||||
|
Description
Mike Abrams
2014-10-21 11:44:56 UTC
I have a system running with the following version, all logging correctly: python-django-horizon-2014.1.2-2.el7ost.noarch After upgrading to python-django-horizon-2014.1.3-1.el7ost.noarch and restarting httpd, I still see logging statements added to /var/log/horizon/horizon.log as expected, including at the DEBUG level. It looks like there is something else going on. Could you provide your /etc/openstack-dashboard/local_settings file? How did you install Horizon? Packstack? I doubt it's related to the keystoneclient change on redacting passwords, I updated python-keystoneclient too to make sure and Horizon still logs a lot. Created attachment 949266 [details]
/etc/openstack-dashboard/local_settings
/etc/openstack-dashboard/local_settings attached. horizon install: packstack was installed 'allinone' I have a recent AIO install. Like Julie said in #c2, it logs to /var/log/horizon/horizon.log no matter if SELinux is permissive or enforcing. Your local_settings looks sane to me. Could you please: - turn Selinux to permissive - check that /var/log/horizon/horizon.log is growing My horizon.log has those access rights: [root@euler horizon]# ls -lZ /var/log/horizon/ -rw-r-----. apache apache system_u:object_r:httpd_log_t:s0 horizon.log selinux is set to permissive as per an earlier request. /var/log/horizon/horizon.log is set to those directory permissions, but is not growing with each run of the following command: curl -i -X POST http://localhost:5000/v2.0/tokens -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"passwordCredentials": {"username": "admin", "password": "xxxxxxxxxxxxxxxxxxxxx"}}}' However, /var/log/keystone/keystone.log does grow with each run of the above command. What is generating your horizon log entries? TIA, Mike OK, that's totally clear. You're not hitting horizon at all. You'd need to visit http://localhost/dashboard with a browser. thanks a lot; I see horizon logs responding now (and to answer the original bz, without a clear text pw). Thanks and apologies for having the wrong verify method. I will close if no objections. Thank you for looking into this. IMHO it's better to look twice rather than doing it hasty. |