[Satellite 6] Hammer commands are failing with Error: Request Timeout.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • Hammer commands are failing with Error: Request Timeout.
  • How to increase the timeout parameter for hammer cli ?

Resolution

Extend the timeout for requests in /etc/hammer/cli.modules.d/foreman.yml:

 :request_timeout: 300 #seconds

For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues

Root Cause

  • Request timeout reached.

Diagnostic Steps

[ INFO 2015-09-03 11:45:39 API] GET /katello/api/organizations/3/products
[DEBUG 2015-09-03 11:45:39 API] Params: {
"page" => 1,
"sort" => {},
"per_page" => 1000
}
[DEBUG 2015-09-03 11:45:39 API] Headers: {
:params => {
"page" => 1,
"sort" => {},
"per_page" => 1000
}
}
[DEBUG 2015-09-03 11:46:39 API] Request Timeout
""
[ERROR 2015-09-03 11:46:39 Exception] Error: Request Timeout
Error: Request Timeout
[ERROR 2015-09-03 11:46:39 Exception]

SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.