Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1086278

Summary: upload command always says "postponed"
Product: [Retired] Pulp Reporter: Michael Hrivnak <mhrivnak>
Component: user-experienceAssignee: Randy Barlow <rbarlow>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: medium    
Version: 2.4 BetaCC: pthomas, rbarlow, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-09 06:55:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
upload log none

Description Michael Hrivnak 2014-04-10 14:01:50 UTC
Created attachment 884965 [details]
upload log

Uploading an RPM, the output looks like what's attached. It always ends with the message "Import postponed due to queued operations against the repository. The progress of this import can be viewed in the repository tasks list."

That should become a polling operation that reports completion like other async commands.

Comment 1 Randy Barlow 2014-04-30 22:59:31 UTC
https://github.com/pulp/pulp/pull/927

Comment 2 Randy Barlow 2014-05-02 15:05:27 UTC
This is included in today's pulp-2.4.0-0.11.beta build.

Comment 3 Preethi Thomas 2014-05-05 01:10:33 UTC
[root@pulp-24-server ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.11.beta.el6.noarch
[root@pulp-24-server ~]# 

[root@pulp-24-server ~]# pulp-admin -u admin -p admin rpm repo uploads  list+----------------------------------------------------------------------+
                            Upload Requests
+----------------------------------------------------------------------+

No outstanding uploads found

[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# pulp-admin rpm repo uploads rpm --repo-id uploads -f upload/pulp-test-package-0.2.1-1.fc11.x86_64.rpm -v
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: pulp-test-package-0.2.1-1.fc11.x86_64.rpm
... completed

Files to be uploaded:
  pulp-test-package-0.2.1-1.fc11.x86_64.rpm

Creating upload requests on the server...
[==================================================] 100%
Initializing: pulp-test-package-0.2.1-1.fc11.x86_64.rpm
... 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
cancelled entirely using the cancel command.

Uploading: pulp-test-package-0.2.1-1.fc11.x86_64.rpm
[==================================================] 100%
2216/2216 bytes
... completed

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


[\]
Running...

Task Succeeded


Deleting the upload request...
... completed

[root@pulp-24-server ~]# pulp-admin -u admin -p admin rpm repo uploads  list+----------------------------------------------------------------------+
                            Upload Requests
+----------------------------------------------------------------------+

No outstanding uploads found

Comment 4 Randy Barlow 2014-08-09 06:55:42 UTC
This has been fixed in Pulp 2.4.0-1.