Bug 1073155 - The RPM project's pulp-dev.py doesn't set correct permissions on /var/lib/pulp/published/yum
Summary: The RPM project's pulp-dev.py doesn't set correct permissions on /var/lib/pul...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: rpm-support
Version: Master
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: 2.6.0
Assignee: Chris Duryee
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-05 22:26 UTC by Randy Barlow
Modified: 2015-02-28 22:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:03:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 402 0 None None None Never

Description Randy Barlow 2014-03-05 22:26:06 UTC
$ ls -lah /var/lib/pulp/published/
total 20K
drwxrwsr-t. 5 apache apache 4.0K Mar  5 17:24 .
drwxrwsr-t. 8 apache apache 4.0K Jan 10 17:42 ..
drwxr-sr-x. 2 apache apache 4.0K Aug  5  2013 http
drwxr-sr-x. 3 apache apache 4.0K Sep  2  2013 https
drwxr-sr-x. 4 root   apache 4.0K Mar  5 17:24 yum

The yum directory should be apache owned. Because it is not, publishing fails. The workaround is to chown it to apache.

P.S. Normally, I would just fix something like this instead of filing a bug, but I've got too many TODOs right now and I don't want to forget anything :)

Comment 1 Chris Duryee 2014-11-07 20:23:32 UTC
https://github.com/pulp/pulp_rpm/pull/592

QE note: this is a patch for a developer setup script, I don't think there is anything for QE to verify in this bz.

Comment 2 Chris Duryee 2014-11-10 15:43:52 UTC
fixed in 2.5-dev and master

Comment 3 Chris Duryee 2014-12-23 20:53:08 UTC
fixed in pulp 2.6.0-0.2.beta

Comment 4 Irina Gulina 2014-12-26 01:47:46 UTC
>> rpm -qa | grep pulp-server
pulp-server-2.6.0-0.2.beta.el6.noarch


>> ls -lah /var/lib/pulp/published/
total 16K
drwxr-xr-x. 4 apache apache 4.0K Dec 24 08:52 .
drwxr-xr-x. 7 apache apache 4.0K Dec 25 20:44 ..
drwxr-xr-x. 4 apache apache 4.0K Dec 24 08:52 puppet
drwxr-xr-x. 4 apache apache 4.0K Dec 24 08:52 yum

Comment 5 Irina Gulina 2014-12-26 02:47:20 UTC
>> pulp-admin rpm repo create --repo-id genka2
Successfully created repository [genka2]

>> pulp-admin rpm repo publish run --repo-id genka2
+----------------------------------------------------------------------+
                     Publishing Repository [genka2]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Initializing repo metadata
[-]
... completed
....

Task Succeeded

>> ls -lah /var/lib/pulp/published/yum/master/yum_distributor/
total 16K
drwxr-xr-x. 4 apache apache 4.0K Dec 25 20:54 .
drwxr-xr-x. 3 apache apache 4.0K Dec 25 20:53 ..
drwxr-xr-x. 3 apache apache 4.0K Dec 25 20:53 genka
drwxr-xr-x. 3 apache apache 4.0K Dec 25 20:54 genka2

Comment 6 Brian Bouterse 2015-02-28 22:03:15 UTC
Moved to https://pulp.plan.io/issues/402


Note You need to log in before you can comment on or make changes to this bug.