Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1684703

Summary: Manifest upload task takes too much time
Product: Red Hat Satellite 6 Reporter: Mike McCune <mmccune>
Component: Subscription ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: ON_QA --- QA Contact: jcallaha
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: egolov, ehelms, jomitsch, mmccune, nkathole, rplevka
Target Milestone: 6.4.3Keywords: Performance, PrioBumpQA, Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.7.0.54-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1669186 Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Comment 2 jcallaha 2019-04-08 20:49:24 UTC
While upload times are in the range we're expecting, we will need to bring in an additional fix outlined here: https://bugzilla.redhat.com/show_bug.cgi?id=1669186#c27

-bash-4.2# for i in {1..20}; do date && hammer -u admin -p changeme subscription upload --file manifest-latest.zip --organization-id 1 && date && hammer -u admin -p changeme subscription delete-manifest --organization-id 1; done
Mon Apr  8 16:30:57 EDT 2019
warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundaryIJzYPVwrkKojFfMD" due to payload
[.....................................................................................................................................................................................] [100%]
Mon Apr  8 16:32:03 EDT 2019
[.....................................................................................................................................................................................] [100%]
Mon Apr  8 16:32:26 EDT 2019
warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundaryZOquAxlexVlAgPcF" due to payload
[.....................................................................................................................................................................................] [100%]
Mon Apr  8 16:33:33 EDT 2019
[.....................................................................................................................................................................................] [100%]
Mon Apr  8 16:33:57 EDT 2019
warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundaryPvI3sthoYElml11z" due to payload
[.....................................................................................................................................................................................] [100%]
Error: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_katello_pools_on_cp_id"
DETAIL:  Key (cp_id)=(8a90c3c369fe6ca80169fea874d24c57) already exists.
: INSERT INTO "katello_pools" ("cp_id", "created_at", "updated_at", "organization_id") VALUES ($1, $2, $3, $4) RETURNING "id"
Mon Apr  8 16:34:40 EDT 2019
warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundaryMZodDPTtBOMYgt7f" due to payload
[.....................................................................................................................................................................................] [100%]
Error: Import is the same as existing data
Mon Apr  8 16:35:16 EDT 2019