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 - Importing manifest via hammer fails if the import takes longer than 120 seconds
Summary: Importing manifest via hammer fails if the import takes longer than 120 seconds
Keywords:
Status: CLOSED DUPLICATE of bug 1334996
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-09 13:31 UTC by Rich Jerrido
Modified: 2016-06-01 17:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-01 17:28:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1334996 0 unspecified CLOSED REST Timeout during manifest import 2021-02-22 00:41:40 UTC

Internal Links: 1334996

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 ***


Note You need to log in before you can comment on or make changes to this bug.