Project

General

Profile

Bug #15581

hammer csv doesn't obey request_timeout

Added by Thomas McKay over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
content-hosts
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1352910
Description of problem:
Execution of below command always results in timeout error with large number of clients(>400) registered on satellite server.
~~~
$ time hammer csv content-hosts --csv-export --csv-file $TMPFILE --threads 2
Error: Request Timeout

real 2m2.756s
~~~

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

How reproducible:
Always

Steps to Reproduce:
1.Satellite 6.1.9 with more than 400 systems registered.
2.Execute : #hammer -u admin -p redhat -d csv content-hosts --csv-export
3.

Actual results:
Error: Request Timeout

Expected results:
Result should be displayed

Additional info:
The following configuration seems to have no effect:
~~
/.hammer/cli_config.yml
:foreman:
:request_timeout: -1
~~~

*Increased Timeout in : etc/hammer/cli.modules.d/foreman.yml

*No timeout errors in production log.

Relevant Bugzilla's:

Bug 1297683 - "Error: Request Timeout" from hammer when asked to show >400 content hosts
Upstream : http://projects.theforeman.org/issues/14925

Create duplicate system profiles using below command:
~~~
  1. export h='test.example.com'
  2. for i in {1..400}; do hostnamectl set-hostname $i-$h;rm -rf /etc/pki/consumer/*;subscription-manager register --org Default_Organization --activationkey=loop --force;done
    ~~~

Associated revisions

Revision f5d21adb (diff)
Added by Thomas McKay about 5 years ago

fixes #15581 - configuration based on foreman stanza

Revision 0925fad8
Added by Thomas McKay about 5 years ago

Merge pull request #127 from thomasmckay/15581-timeout

fixes #15581 - configuration based on foreman stanza

History

#1 Updated by Thomas McKay over 5 years ago

  • Project changed from Katello to Hammer CLI CSV
  • Category changed from Hammer to content-hosts

#2 Updated by Thomas McKay about 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF