Project

Profile

Help

Issue #5941

closed

Importing from file:/// destroys the repo you important from

Added by bmbouter over 4 years ago. Updated over 4 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:
Sprint:
Sprint 63
Quarter:

Description

Say you have two pulp_file repos, e.g.:

[bmbouter@localhost pulp3]$ tree file
file
├── 1.iso
├── 2.iso
├── 3.iso
└── PULP_MANIFEST

0 directories, 4 files
[bmbouter@localhost pulp3]$ tree file_backup
file_backup
├── 1.iso
├── 2.iso
├── 3.iso
└── PULP_MANIFEST

0 directories, 4 files

Then create a repository and remote pointing at it. In my case that is done in shell_plus with:

foo = FileRepository(name='foo')
foo.save()

bar = FileRemote(name='bar', url='file:///home/vagrant/devel/file/PULP_MANIFEST')
bar.save()

Then I trigger the sync with:

http POST :80/pulp/api/v3/repositories/file/file/879db281-731f-4705-86e7-f6fc55e6fd5a/sync/ remote=/pulp/api/v3/remotes/file/file/49e8628b-f3f9-4e5f-979a-efb572b861d7/ using the URLs of the repository and remote respectively.

Then the repository I sync'd from is gone:

(pulp) [vagrant@pulp3-source-fedora31 devel]$ tree file
file
└── PULP_MANIFEST

0 directories, 1 file

Also available in: Atom PDF