| Summary: | openshift-broker refuses to start: (13)Permission denied: AH02291: Cannot access directory '/var/log/openshift/broker/httpd/' for main error log | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marek Goldmann <mgoldman> |
| Component: | openshift-origin-broker | Assignee: | Troy Dawson <tdawson> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | admiller, bleanhar, oorigin, tdawson |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-03 17:58:54 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: | |
|
Description
Marek Goldmann
2013-12-06 11:33:25 UTC
$ ls -hall /var/log/openshift/broker/httpd/ total 8,0K drwxr-x---. 2 apache apache 4,0K 08-06 22:58 . drwxr-x---. 3 apache apache 4,0K 12-06 11:09 .. (In reply to Marek Goldmann from comment #1) > $ ls -hall /var/log/openshift/broker/httpd/ > total 8,0K > drwxr-x---. 2 apache apache 4,0K 08-06 22:58 . > drwxr-x---. 3 apache apache 4,0K 12-06 11:09 .. Hi there, I had the same problem, so I changes the security level, now it looks like this: $ namei -m /var/log/openshift/broker/httpd/ f: /var/log/openshift/broker/httpd/ dr-xr-xr-x / drwxr-xr-x var drwxr-xr-x log drwxr-xr-x openshift drwxr-x--- broker drwxr-x--- httpd More than that, I found out in the journal entries, that there is something not quite right with SELinux policies: ***** Plugin catchall (100. confidence) suggests ************************** If you believe that httpd should be allowed search access on the directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # # semodule -i mypol.pp Doing exactly that: $ grep httpd /var/log/audit/audit.log | audit2allow -M mypol $ semodule -i mypol.pp solved all my problems. Cheers, A. The openshift origin broker is retired and no longer supported on Fedora 20+. Because of that, this bug won't be fixed. It is suggested to migrate your openshift project to RHEL/Scientific Linux/CentOS. |