Bug 752098

Summary: content upload does not allow the stacking of metadata update
Product: [Retired] Pulp Reporter: dgao
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED WONTFIX QA Contact: dgao
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: jason.dobies, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-21 14:26:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dgao 2011-11-08 14:49:56 UTC
pulp-admin content upload -v --repoid=package_test_repo /tmp/patb-0.1-1.noarch.rpm


* Starting Content Upload

* Performing Content Uploads to Pulp server
  Successfully uploaded [patb-0.1-1.noarch.rpm] to server
 
* Performing Repo Associations 
 
* Metadata generation has been scheduled for repository [package_test_repo] with a task id [a645807d-0a16-11e1-82df-5254009326ae]; use `pulp-admin repo generate_metadata --status` to check the status.
  Content association Complete for Repo [package_test_repo]: 
  Packages: 
    patb-0.1-1.noarch.rpm 
     
    Files: 
     None
    
* Content Upload complete.



pulp-admin content upload -v --repoid=package_test_repo /tmp/emoticons-0.1-1.noarch.rpm (com.redhat.qe.tools.SSHCommandRunner.run)
   * Starting Content Upload
   
   * Performing Content Uploads to Pulp server
   Successfully uploaded [emoticons-0.1-1.noarch.rpm] to server
   
   * Performing Repo Associations 
    (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
error: operation failed: Metadata generation already in process for repo [package_test_repo]

While the package is uploaded, the metadata is not updated unless it's manually kicked off. Ideally, the metadata update would be stored in a queue and execute in order.

Comment 1 Jay Dobies 2012-11-21 14:26:22 UTC
This is handled in v2 by exposing the publish call. There are no new v1 releases planned so I'm closing this out.