Project

Profile

Help

Issue #2274

closed

Uploading duplicate content results in ambiguous error message

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

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.9.2
Platform Release:
2.12.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 16
Quarter:

Description

This can happen when the content unit is associated with a repository already or when dealing with an orphaned unit. User should be notified that the unit is already in Pulp.

pulp-admin iso repo create --repo-id test
pulp-admin iso repo uploads upload --file isotest.iso --repo-id test
pulp-admin iso repo uploads upload --file isotest.iso --repo-id test
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: isotest.iso
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing: isotest.iso
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

Uploading: isotest.iso
[==================================================] 100%
11/11 bytes
... completed

Importing into the repository...
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Failed

The importer iso_importer indicated a failed response when uploading iso unit to
repository test.

Deleting the upload request...

Related issues

Related to Pulp - Issue #2006: iso importer fails without useful error messageCLOSED - CURRENTRELEASEdkliban@redhat.comActions

Also available in: Atom PDF