Project

Profile

Help

Task #4948

closed

Issue #4950: [epic] pulp3 on pulp2

pulp3 on pulp2: /var/lib/pulp/published permissions prevents 'metadata' directory from being created.

Added by jsherril@redhat.com almost 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
2.20.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 54
Quarter:

Description

/var/lib/pulp/published is owned by apache, so 'metadata' can't be created.

It is owned by apache so the pulp user cannot create it.

For Pulp2:
- create pulp group
- add user apache to it
- change permissions for /var/lib/pulp/ recursively

Those changes should happen at rpm install time.


Related issues

Related to Pulp - Task #4949: pulp3 on pulp2: permissions on /var/lib/pulp prevent /var/lib/pulp/artifact from being createdCLOSED - CURRENTRELEASEdkliban@redhat.com

Actions
Actions #1

Updated by jsherril@redhat.com almost 5 years ago

Actions #2

Updated by jsherril@redhat.com almost 5 years ago

Actions #3

Updated by jsherril@redhat.com almost 5 years ago

  • Parent issue set to #4950
Actions #4

Updated by amacdona@redhat.com almost 5 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by ttereshc almost 5 years ago

  • Tracker changed from Issue to Task
  • Description updated (diff)
  • % Done set to 0
  • Tags Pulp 2 added
  • Tags deleted (Pulp 3 installer)
Actions #6

Updated by ttereshc almost 5 years ago

  • Related to Task #4949: pulp3 on pulp2: permissions on /var/lib/pulp prevent /var/lib/pulp/artifact from being created added
Actions #7

Updated by dkliban@redhat.com almost 5 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
  • Sprint set to Sprint 54
Actions #8

Updated by ttereshc almost 5 years ago

  • Platform Release set to 2.20.0

Added by dkliban@redhat.com almost 5 years ago

Revision 03bdde38 | View on GitHub

Problem: pulp 3 can't be installed along with pulp 2

Solution: add group 'pulp' and add user 'apache' to it

This patch adds a group 'pulp' before installing the pulp-server rpm. All directories are created with ownership by user 'apache' group 'pulp'. On upgrades, the ownership of /var/lib/pulp is recursively updated to apache:pulp.

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

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

Added by dkliban@redhat.com almost 5 years ago

Revision 03bdde38 | View on GitHub

Problem: pulp 3 can't be installed along with pulp 2

Solution: add group 'pulp' and add user 'apache' to it

This patch adds a group 'pulp' before installing the pulp-server rpm. All directories are created with ownership by user 'apache' group 'pulp'. On upgrades, the ownership of /var/lib/pulp is recursively updated to apache:pulp.

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

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

Added by dkliban@redhat.com almost 5 years ago

Revision 1ed19568 | View on GitHub

Problem: chown command is run for all upgrades

Solution: only run chown if ownership permissions are not apache:pulp

re: #4948 https://pulp.plan.io/issues/4948 re: #4949 https://pulp.plan.io/issues/4949

Added by dkliban@redhat.com almost 5 years ago

Revision 1ed19568 | View on GitHub

Problem: chown command is run for all upgrades

Solution: only run chown if ownership permissions are not apache:pulp

re: #4948 https://pulp.plan.io/issues/4948 re: #4949 https://pulp.plan.io/issues/4949

Actions #10

Updated by dkliban@redhat.com almost 5 years ago

  • Assignee set to dkliban@redhat.com
Actions #11

Updated by ttereshc almost 5 years ago

  • Sprint/Milestone set to 2.20.0
Actions #12

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to 5
Actions #13

Updated by ttereshc over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

Also available in: Atom PDF