Issue #4834
closedFile directories between pulp 2 and pulp 3 conflict
Description
This is a problem for users (eg Katello) running both Pulp 2 and Pulp 3 side-by-side but also potentially in place upgrades too. Both pulp 2 and pulp 3 save files to /var/lib/pulp and /var/lib/pulp/published. It's possible to change this default though (in Pulp 3 at least) so this may just be a docs issue.
Related issues
Updated by jsherril@redhat.com over 5 years ago
To clarify, its possible to change the default of /var/lib/pulp, but not change /var/lib/pulp/published to something else.
Honestly i'd rather the MEDIA_ROOT default to something different than what pulp2 uses (such as /var/lib/pulp), but i don't have any suggestion since i would avoid '/var/lib/pulp3'. Maybe /var/lib/pulp_content/.
Updated by bmbouter over 5 years ago
Do pulp2 and pulp3 actually overlap inside of /var/lib/pulp/? We should look because I can't think of one folder or file in /var/lib/pulp that both Pulp2 and Pulp3 want to write/read to/from.
Updated by daviddavis over 5 years ago
bmbouter pulp 3 stores stuff in /var/lib/pulp/published as well as pulp 2.
Updated by bmbouter over 5 years ago
Where does that dir come from? My pulp3 system with pulp_ansible and pulp_deb that contains content is missing it. I have:
[vagrant@pulp3-source-fedora29 ~]$ cd /var/lib/pulp
[vagrant@pulp3-source-fedora29 pulp]$ ls
artifact static tmp
[vagrant@pulp3-source-fedora29 pulp]$ ls -la
total 20
drwxrwxr-x. 5 vagrant vagrant 4096 May 16 20:29 .
drwxr-xr-x. 31 root root 4096 May 16 16:32 ..
drwxr-xr-x. 19 vagrant vagrant 4096 May 16 20:29 artifact
drwxrwxr-x. 6 vagrant vagrant 4096 May 16 20:29 static
drwxr-xr-x. 5 vagrant vagrant 4096 May 16 20:29 tmp
Updated by daviddavis over 5 years ago
Published artifacts. See:
https://github.com/pulp/pulpcore/blob/master/pulpcore/app/models/storage.py#L131-L147
Updated by bmbouter over 5 years ago
@daviddavis oh I see, yes I agree. Can we rename either the pulp2 or pulp3 folder so they don't collide? The pulp3 change is easy, but the pulp2 change I think could be fine also to do in pulp2 as well. What do you think?
Updated by daviddavis over 5 years ago
If we did the rename in pulp 2, would we have to provide some sort of migration?
Updated by daviddavis over 5 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Updated by daviddavis over 5 years ago
- Is duplicate of Issue #5304: Pulp 3 publishes metadata outside of artifact storage added