Project

Profile

Help

Issue #5152

Pulp 3 can't sync when installed along side Pulp 2

Added by dkliban@redhat.com 4 months ago. Updated 15 days ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
2.20.0
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 57

Description

The first time you try to sync using Pulp 3 that was installed on the same machine as Pulp 2 you get the following error in the Task:

{
    "_created": "2019-07-17T19:18:30.230257Z",
    "_href": "/pulp/api/v3/tasks/be5b916a-2c50-4558-9057-d538beb0daed/",
    "created_resources": [],
    "error": {
        "code": null,
        "description": "[Errno 13] Permission denied: '/var/lib/pulp/artifact'",
    ...

The permissions on /var/lib/pulp set by Pulp 2 don't allow group members to write to that directory.

$ ls -la /var/lib/pulp/
total 8
drwxr-xr-x.  6 apache  pulp    132 Jul 17 18:26 .
drwxr-xr-x. 39 root    root   4096 Jul 17 18:28 ..
-rw-r--r--.  1 apache  apache    2 Jul 17 18:16 0005_puppet_module_name_change.txt
-rw-r--r--.  1 root    root      0 Jul 17 18:16 db_initialized.flag
drwxr-xr-x.  7 apache  pulp     73 Jul 17 18:16 published
drwxr-xr-x.  2 apache  pulp     25 Jul 17 18:16 static
drwxrwxr-x.  5 vagrant pulp    269 Jul 17 18:28 tmp
drwxr-xr-x.  2 apache  pulp      6 Jul  3 17:53 uploads

pulp-server RPM for Pulp 2 needs to set the change the permissions on /var/lib/pulp to 775.

Associated revisions

Revision 7cd3c385 View on GitHub
Added by dkliban@redhat.com 3 months ago

Problem: Pulp 3 can't sync when installed along side Pulp 2

Solution: make /var/lib/pulp writable by group 'pulp'

fixes: #5152
https://pulp.plan.io/issues/5152

Revision 1432746c View on GitHub
Added by dkliban@redhat.com 3 months ago

Problem: install playbook is out of date

Solution: add 'pulp_group' config

re: #5152
https://pulp.plan.io/issues/5152

History

#1 Updated by daviddavis 4 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 56

#2 Updated by dkliban@redhat.com 4 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

#3 Updated by rchan 3 months ago

  • Sprint changed from Sprint 56 to Sprint 57

#4 Updated by ipanova@redhat.com 3 months ago

  • Status changed from ASSIGNED to MODIFIED

#5 Updated by dalley 3 months ago

  • Platform Release set to 2.21.0

#6 Updated by dalley about 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#7 Updated by dkliban@redhat.com 15 days ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED
  • Platform Release deleted (2.21.0)

This change never made it to the 2.21 branch in pulp-packaging repo. This needs to go out with 2.21.1.

Please register to edit this issue

Also available in: Atom PDF