Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1334383

Summary: Importing manifest via hammer fails if the import takes longer than 120 seconds
Product: Red Hat Satellite Reporter: Rich Jerrido <rjerrido>
Component: Subscription ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bkearney, unwosu
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-01 17:28:16 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:

Description Rich Jerrido 2016-05-09 13:31:51 UTC
Description of problem:
When importing a subscription manifest that contains a large number of products/subscriptions, if the import process takes longer than 120 seconds (hammer's default timeout), the process fails. 



Version-Release number of selected component (if applicable):


How reproducible:
~50%


Steps to Reproduce:
1. Install Satellite 6.2 Beta (or 6.1, it doesn't matter)
2. Import a subscription manifest with a large number of products via hammer. Example:

time hammer -d subscription upload --file /root/manifest.zip --organization "Default Organization"

3.

Actual results:
If the manifest import takes > 120 seconds, it fails. 

Expected results:
Manifest import should succeed. 

Additional info:
This issue is more pronounced on virtual machines that are on overcommitted hypervisors or systems that are at or around the minimal system requirements for Satellite (https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.1/html-single/Installation_Guide/index.html#sect-Red_Hat_Satellite-Installation_Guide-Prerequisites)

Comment 1 Rich Jerrido 2016-05-09 13:58:00 UTC
On my test system (a VM with 4vCPU & 16GB of RAM, running as the sole VM on a hypervisor with 4 CPUs and 32GB of RAM), I can successfully reproduce this issue with 100% success with my manifest. 

Manifest import time is seemingly a product of the resources of the system (and/or if it is on an overcommitted hypervisor) AND the diversity of the products in its manifest. And since neither of those are variables that we (or the Satellite user) control, identifying if/when the user will hit this issue is difficult. 

Possible ways to solve/mitigate this include:

* Change the default timeout in hammer to infinite (-1). 
* Tell the user (in the Hammer CLI guide) to set the timeout to infinite
* breaking the manifest import into smaller 'chunks' which have a high probability of completing in the default timeout (again, 120 seconds)

Comment 3 Bryan Kearney 2016-06-01 17:28:16 UTC

*** This bug has been marked as a duplicate of bug 1334996 ***