Bug 784601
Summary: | Content sync fails if /var/lib/pulp/packages is a separate disk partition | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | James Laska <jlaska> |
Component: | Installation | Assignee: | Lukas Zapletal <lzap> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Garik Khachikyan <gkhachik> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.0 | CC: | bkearney, cwelton, gkhachik, jturner, kbidarka, mkoci |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 18:22:41 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
James Laska
2012-01-25 14:31:17 UTC
It really looks like mis-configuration and pulp issue :-) [root@ofed ~]# rpm -qf /var/lib/pulp pulp-0.0.261-1.el6.noarch [root@ofed ~]# ls -lad /var/lib/pulp/packages drwxr-xr-x. 10 apache apache 4096 Jan 26 09:53 /var/lib/pulp/packages But yeah, I understand. I can add a rule to our installer that corrects permissions. 46afc6a 784601 - sync fails if /var/lib/pulp/packages is separate mount * [new tag] katello-configure-0.1.55-1 -> katello-configure-0.1.55-1 (In reply to comment #1) > It really looks like mis-configuration and pulp issue :-) It seems that way on the surface, but I believe it's a really a packaging/installation problem. During system installation, I setup /var/lib/pulp/packages as a separate disk partition. This creates the directory /var/lib/pulp/packages, which defaults to root:root (as is common when creating any mount via anaconda). The pulp package is later installed, but since /var/lib/pulp/packages already exists, the directory is not created according to the default directory (%defattr) perms in pulp.spec. pulp.spec does not explicitly provide permissions for /var/lib/pulp/packages, only it's parent directory. I'll confirm whether an explicit stmt here would improve matters. I would be less inclined to file a bug for this if there was some warning/error emitted during installation of the pulp package. But inspection of /var/log/yum.log (and yum history) doesn't yield anything. > But yeah, I understand. I can add a rule to our installer that corrects > permissions. > > 46afc6a 784601 - sync fails if /var/lib/pulp/packages is separate mount > * [new tag] katello-configure-0.1.55-1 -> katello-configure-0.1.55-1 Thanks! Until I can figure out if there is room for any improvements in pulp.spec, that will most certainly catch any misconfiguration problems. 46afc6a 784601 - sync fails if /var/lib/pulp/packages is separate mount # VERIFIED Fixed now. Having a separate lvm partition for /var/lib/pulp/packages before Katello install makes possible now repo sync of RHEL (and custom) products. --- df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_hostname-lv_root 26G 2.7G 22G 12% / tmpfs 1004M 0 1004M 0% /dev/shm /dev/sda1 485M 51M 409M 12% /boot /dev/mapper/vg_pulp-lv_pulp_packages 5.8G 160M 5.4G 3% /var/lib/pulp/packages --- drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 . drwxr-xr-x. root root system_u:object_r:var_lib_t:s0 .. drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 cache drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 distributions -rw-r--r--. root root unconfined_u:object_r:httpd_sys_rw_content_t:s0 init.flag drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 packages drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 plugins drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 published drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 repos Checked against: --- katello-0.2.2-1.git.1.080ec8e.el6.noarch pulp-1.0.0-2.el6.noarch candlepin-0.5.22-1.el6.noarch |