Project

Profile

Help

Task #4949

Issue #4950: [epic] pulp3 on pulp2

pulp3 on pulp2: permissions on /var/lib/pulp prevent /var/lib/pulp/artifact from being created

Added by jsherril@redhat.com about 1 year ago. Updated about 1 year 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

Description

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 #4948: pulp3 on pulp2: /var/lib/pulp/published permissions prevents 'metadata' directory from being created.CLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 03bdde38 View on GitHub
Added by dkliban@redhat.com about 1 year ago

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

Revision 03bdde38 View on GitHub
Added by dkliban@redhat.com about 1 year ago

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

Revision 1ed19568 View on GitHub
Added by dkliban@redhat.com about 1 year ago

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

Revision 1ed19568 View on GitHub
Added by dkliban@redhat.com about 1 year ago

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

History

#1 Updated by jsherril@redhat.com about 1 year ago

#2 Updated by jsherril@redhat.com about 1 year ago

#3 Updated by jsherril@redhat.com about 1 year ago

  • Parent task set to #4950

#4 Updated by amacdona@redhat.com about 1 year ago

  • Triaged changed from No to Yes

#5 Updated by ttereshc about 1 year ago

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

#6 Updated by ttereshc about 1 year ago

  • Related to Task #4948: pulp3 on pulp2: /var/lib/pulp/published permissions prevents 'metadata' directory from being created. added

#7 Updated by dkliban@redhat.com about 1 year ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
  • Sprint set to Sprint 54

#8 Updated by ttereshc about 1 year ago

  • Platform Release set to 2.20.0

#9 Updated by dkliban@redhat.com about 1 year ago

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

#10 Updated by ttereshc about 1 year ago

  • Sprint/Milestone set to 2.20.0

#11 Updated by ttereshc about 1 year ago

  • Status changed from MODIFIED to 5

#12 Updated by ttereshc about 1 year ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF