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.
Description of problem: Hammer is slow, in partiluar its start phase. This is however not caused by hammer itself, but by hammer_cli_katello. Adding debug prints to part of code that loads modules, it shows:
X pre loading module hammer_cli_import: Fri Jun 06 06:49:01 -0400 2014
X post loading module hammer_cli_import: Fri Jun 06 06:49:01 -0400 2014
X pre loading module hammer_cli_katello: Fri Jun 06 06:49:01 -0400 2014
X post loading module hammer_cli_katello: Fri Jun 06 06:49:06 -0400 2014
X pre loading module hammer_cli_foreman: Fri Jun 06 06:49:06 -0400 2014
X post loading module hammer_cli_foreman: Fri Jun 06 06:49:06 -0400 2014
How reproducible: always deterministic
Steps to Reproduce: Just run hammer
Actual results: It takes some time before it prints help message (4-5 seconds)
Expected results: For user this is instantaneous.
Additional info: It looks like it does some requests on server in this phase before initialize for particular subcommand is called. (Sometimes even emits 404).
Comment 1RHEL Program Management
2014-06-06 11:13:57 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
With six hammer modules enabled (included hammer-cli-katello), I'm getting roughly 2.5 seconds of time between pressing enter and the command finishing. Is this amount of time still unacceptable? It is an improvement over 4-5 seconds.
$ time hammer --version
hammer (0.2.0)
* hammer_cli_console (0.0.1)
* hammer_cli_foreman (0.1.4.13)
* hammer_cli_foreman_bootdisk (0.1.3)
* hammer_cli_foreman_tasks (0.0.6)
* hammer_cli_gutterball (1.0.0)
* hammer_cli_katello (0.0.14)
real 0m2.443s
user 0m2.107s
sys 0m0.299s