Bug 787292 - Content sync fails if /var/lib/pulp/packages is a separate disk partition or a link
Summary: Content sync fails if /var/lib/pulp/packages is a separate disk partition or ...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-03 20:29 UTC by Juanjo Presa
Modified: 2013-09-26 21:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-26 21:37:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Juanjo Presa 2012-02-03 20:29:52 UTC
Description of problem:
Attempting to sync content fails when /var/lib/pulp/packages is a separate disk
partition.  I have the follwing /etc/fstab configuration ...

/dev/mapper/vg_yttrium-lv_root /                       ext4    defaults       
1 1
UUID=75c73fb7-0f00-4441-b0ee-a5417c2a4ac3 /boot                   ext4   
defaults        1 2
/dev/mapper/vg_yttrium-lv_pulp /var/lib/pulp/packages  ext4    defaults       
1 2
/dev/mapper/vg_yttrium-lv_swap swap                    swap    defaults       
0 0

Version-Release number of selected component (if applicable):
pulp.noarch                               0.0.264-1.el6
pulp-admin.noarch                         0.0.264-1.el6
pulp-client-lib.noarch                    0.0.264-1.el6
pulp-common.noarch                        0.0.264-1.el6
pulp-consumer.noarch                      0.0.264-1.el6
pulp-selinux-server.noarch                0.0.264-1.el6


How reproducible:


Steps to Reproduce:
1. Install a system that has /var/lib/pulp/packages as a separate disk
partition.
2. Attempt to sync content

  
Actual results:
* The sync fails with a *NASTY* long failure traceback:
http://pastebin.com/cbckbj6y

Expected results:


Additional info:

[root@pulp]# ls -l /var/lib/pulp
total 24
drwxr-xr-x.  3 apache apache 4096 Feb  3 21:10 cache
drwxr-xr-x.  2 apache apache 4096 Feb  3 21:10 packages
drwxr-xr-x. 10 apache apache 4096 Feb  3 21:10 packages_old
drwxr-xr-x.  6 apache apache 4096 Feb  3 21:10 plugins
drwxr-xr-x.  2 apache apache 4096 Feb  1 22:31 published
drwxr-xr-x.  3 apache apache 4096 Feb  3 21:10 repos

Comment 1 John Matthews 2012-02-06 15:19:16 UTC
Hello,

Looking at the pastebin I see this error:
  OSError: [Errno 13] Permission denied: \'/var/lib/pulp//packages/mcollective


I see from your paste that the /var/lib/pulp looks to be owned by Apache, yet there still may be some subdirectories under /var/lib/pulp/packages which have different ownership.  
 
Please run:
 chown -R apache:apache /var/lib/pulp

Next question, are you running with SELinux enabled?
If so please run:
 chcon -R -t httpd_sys_content_rw_t /var/lib/pulp

Comment 2 Steven Roberts 2012-12-06 02:16:10 UTC
FYI, on pulp 2.0.6 (current beta) I have /var/lib/pulp as a NFS mount and working fine.

Comment 3 Michael Hrivnak 2013-09-26 21:37:22 UTC
closing this due to inactivity from the OP and other reports that this is not a bug.


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