Project

Profile

Help

Issue #5742

closed

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

Added by dkliban@redhat.com over 2 years ago. Updated about 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.21.0
Platform Release:
2.21.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 63
Quarter:

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.

This was fixed in 2.20.1, but the change was omitted from 2.21.0.


Related issues

Copied from Pulp - Issue #5152: Pulp 3 can't sync when installed along side Pulp 2CLOSED - CURRENTRELEASEdkliban@redhat.comActions
Actions #1

Updated by dkliban@redhat.com over 2 years ago

  • Copied from Issue #5152: Pulp 3 can't sync when installed along side Pulp 2 added
Actions #2

Updated by dkliban@redhat.com over 2 years ago

  • Status changed from MODIFIED to NEW
  • Sprint changed from Sprint 57 to Sprint 62
Actions #3

Updated by rchan over 2 years ago

  • Sprint changed from Sprint 62 to Sprint 63
Actions #4

Updated by dkliban@redhat.com over 2 years ago

  • Status changed from NEW to MODIFIED
Actions #5

Updated by ipanova@redhat.com over 2 years ago

  • Platform Release set to 2.21.1
Actions #6

Updated by ipanova@redhat.com about 2 years ago

  • Status changed from MODIFIED to 5
Actions #7

Updated by ipanova@redhat.com about 2 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

Also available in: Atom PDF