Project

Profile

Help

Issue #1128

closed

permission denied with selinux enforcing when sync repo with a local feed

Added by igulina@redhat.com almost 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.3
Platform Release:
OS:
RHEL 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

Description

I have a feeling like this bz is not new, and I saw this scenario before, not sure if I reported it earlier, I couldn't find it.

Verifying #995 on pulp 2.6.3 rhel6:

>> rpm -qa pulp-server
pulp-server-2.6.3-0.2.beta.el6.noarch

>> getenforce
Enforcing

1. Download and unzip anywhere https://pulp.plan.io/attachments/download/124/repo.tar.gz There will be a directory zoo5
2. create rpm repo with --feed=file:///path/to/zoo5
3. sync this repo, see an error:

pulp-admin rpm repo sync run --repo-id zaika1
+----------------------------------------------------------------------+
                   Synchronizing Repository [zaika1]
+----------------------------------------------------------------------+

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

Downloading metadata...
[-]
... failed

[Errno 13] Permission denied: u'///tmp/zoo5/repodata/repomd.xml'

Task Failed

Importer indicated a failed response

4. Change selinux to permissive and sync again, evrth is ok:

>> setenforce 0
>> getenforce
Permissive
>> pulp-admin rpm repo sync run --repo-id zaika1
+----------------------------------------------------------------------+
                   Synchronizing Repository [zaika1]
+----------------------------------------------------------------------+

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

Downloading metadata...
[-]
... completed

Downloading repository content...
[==================================================] 100%
RPMs:       0/0 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed

Importing errata...
[-]
... completed

Importing package groups/categories...
[-]
... completed

Task Succeeded

Copying files
[-]
... completed

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
8 of 8 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[==================================================] 100%
2 of 2 items
... completed

Publishing Comps file
[==================================================] 100%
3 of 3 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

Also available in: Atom PDF