Bug 1081091
Summary: | Pulp fails to report filesystem permission denied errors when it cannot write the protected repos file | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jason <ashbyj> |
Component: | API/integration | Assignee: | pulp-bugs |
Status: | CLOSED UPSTREAM | QA Contact: | pulp-qe-list |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.3 | CC: | rbarlow, skarmark |
Target Milestone: | --- | Keywords: | Reopened, Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-28 22:04:01 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
Jason
2014-03-26 15:44:36 UTC
Reply from Randy Barlow: > File > "/usr/lib/python2.6/site-packages/pulp_rpm/repo_auth/protected_repo_utils.py", > line 155, in save > > f = open(self.filename, 'w') > > PulpDataException: Pulp exception occurred: PulpDataException Hi Jason, This permission denied error is actually a Linux permission denied on your protected repos file. In /etc/pulp/repo_auth.conf, there should be a setting in the [repos] section for protected_repo_listing_file. Apache will need write permissions to that path. Can you check the permissions? By default, this path is /etc/pki/pulp/content/pulp-protected-repos. I think a reasonable argument could be made that this file belongs in /var rather than /etc, but that's a separate discussion. If the permissions are not solid, can you comment back on whether you have adjusted FS permissions, or whether these are the stock permissions? It's possible that our spec file has these permissions wrong. Also, it would be helpful if you could file a bug on the error reporting here. It wasn't easy to determine what was causing the problem! -- Randy Barlow Raleigh, NC, USA _______________________________________________ Pulp-list mailing list Pulp-list https://www.redhat.com/mailman/listinfo/pulp-list I had changed protected_repo_listing_file in /etc/pulp/repo_auth.conf to a custom path and you're right that my permissions were incorrect. I ran chmod 755 on the content directory with owner:group as apache:apache and all looks good now! Many thanks. Hi Jason, I'd like to keep this open because it would have been nice if Pulp had given you better information about what was wrong in this case. I renamed the bug to be about the error reporting. Thanks for letting us know about this issue! Moved to https://pulp.plan.io/issues/409 |