Project

Profile

Help

Issue #3406

closed

/var/cache/pulp should not be required by pulp workers

Added by dkliban@redhat.com almost 7 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 34
Quarter:

Description

In Pulp 2, /var/cache/pulp was used by workers to create symlinks before copying them to /var/lib/pulp. Since Pulp 3 is not going to be creating symlinks all the time, it's reasonable to believe that workers can use /var/lib/pulp/tmp as the root of their working directories.

We should switch the code that provides the working directory for a worker to return /var/lib/pulp/tmp/<workername>

The Artifact upload API already uses /var/lib/pulp/tmp as the temporary storage.

Actions #1

Updated by dkliban@redhat.com almost 7 years ago

  • Description updated (diff)
Actions #2

Updated by bmbouter almost 7 years ago

To avoid an artifact and worker name collision (which is unlikely), maybe the artifact path should go one level deeper to be /var/lib/pulp/tmp/artifacts/. Just an idea.

Actions #4

Updated by dalley almost 7 years ago

  • Subject changed from /var/cache/pulp shoudl not be required by pulp workers to /var/cache/pulp should not be required by pulp workers
  • Sprint/Milestone set to 56
  • Triaged changed from No to Yes
Actions #5

Updated by bmbouter almost 7 years ago

  • Sprint set to Sprint 33
Actions #6

Updated by bmbouter almost 7 years ago

  • Sprint/Milestone deleted (56)
Actions #7

Updated by jortel@redhat.com almost 7 years ago

  • Sprint changed from Sprint 33 to Sprint 34
Actions #8

Updated by daviddavis almost 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #9

Updated by daviddavis almost 7 years ago

bmbouter I think we're good. Looks like artifacts won't create a collision as the storage service uses /var/lib/pulp/tmp/<task id>/:

https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/tasking/services/storage.py#L130-L148

Added by daviddavis almost 7 years ago

Revision 310dbb1a | View on GitHub

Drop creation of the /var/cache/pulp directory

ref #3406 https://pulp.plan.io/issues/3406

Added by daviddavis almost 7 years ago

Revision 4ec2f54b | View on GitHub

Using /var/lib/pulp/tmp instead of /var/cache/pulp

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

Added by daviddavis almost 7 years ago

Revision 4ec2f54b | View on GitHub

Using /var/lib/pulp/tmp instead of /var/cache/pulp

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

Actions #11

Updated by daviddavis almost 7 years ago

  • Status changed from POST to MODIFIED
Actions #12

Updated by dkliban@redhat.com over 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #13

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #14

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF