Running "hammer csv content-hosts --export" command fails with "500 internal Server Error" on Red Hat Satellite 6 server.
Environment
- Red Hat Satellite 6.x
Issue
- Running
hammer csv content-hosts --exportcommand fails with error in the middle of an output when there are multiple clients registered to Red Hat Satellite
Resolution
- The bugzilla has resolved in Satellite 6.3 release : RHSA-2018:0336 - Security Advisory
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
- hammer csv doesn't obey request_timeout set to "-1" on
/etc/hammer/cli.modules.d/foreman.ymlso hammer timeout's before printing complete output. - Currently, this issue is being tracked in an internal Bug This content is not included.1405531 - hammer csv doesn't obey request_timeout, To know status of the bugzilla please contact Red Hat technical support
Diagnostic Steps
- Set a time out for hammer using the article below,
Hammer commands are failing with Error: Request Timeout.
SBR
Product(s)
Category
Tags
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.