Importing iso content without cleaning up orphan from previous import fails
Consider this reproducer. Observe the following upload works.
pulp-admin iso repo delete --repo-id test pulp-admin orphan remove --all pulp-admin iso repo create --repo-id test pulp-admin iso repo uploads upload --file cow-2.2-3.noarch.rpm --repo-id test
Now delete but don't remove orphans
pulp-admin iso repo delete --repo-id test
Now try to create and upload again and observe the same traceback.
pulp-admin iso repo create --repo-id test pulp-admin iso repo uploads upload --file cow-2.2-3.noarch.rpm --repo-id test
The user will see this error specifically:
Task Failed The importer iso_importer indicated a failed response when uploading iso unit to repository test.
Updated by rmcgover almost 7 years ago
- Version set to 2.11.0
This doesn't only affect delete/create repo without cleaning orphans, but also simply trying to upload the same file to more than one repo, e.g.
pulp-admin iso repo uploads upload --file testfile.txt --repo-id test pulp-admin iso repo uploads upload --file testfile.txt --repo-id test2
In that example, the second command will fail with the same message reported here.
It differs from RPM upload behavior, where the existing unit in the DB will be found and associated.
Updated by bmbouter over 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.