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.

Bug 1195690

Summary: warning in hammer ping command
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: HammerAssignee: Adam Price <adprice>
Status: CLOSED ERRATA QA Contact: jaudet
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, bkearney, jaudet, jmontleo, mmccune, omaciel, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/8374
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:27:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2015-02-24 11:54:41 UTC
warning in hammer ping command

# hammer -u admin -p changeme ping
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_cli/./apipie/../abstract.rb:67: warning: already initialized constant DEFAULT_LABEL_INDENT
candlepin:      
    Status:          ok
    Server Response: Duration: 29ms
candlepin_auth: 
    Status:          ok
    Server Response: Duration: 35ms
pulp:           
    Status:          ok
    Server Response: Duration: 17ms
pulp_auth:      
    Status:          ok
    Server Response: Duration: 23ms
elasticsearch:  
    Status:          ok
    Server Response: Duration: 15ms
foreman_tasks:  
    Status:          ok
    Server Response: Duration: 0ms

Comment 1 Bryan Kearney 2015-02-24 11:54:42 UTC
Created from redmine issue http://projects.theforeman.org/issues/8374

Comment 2 Bryan Kearney 2015-02-24 13:05:35 UTC
Upstream bug assigned to adprice

Comment 3 Adam Price 2015-02-24 17:21:06 UTC
unable to reproduce. please try again with the latest hammer gems.


$ hammer --version
hammer (0.1.4)
 * hammer_cli_console (0.0.1)
 * hammer_cli_foreman (0.1.4)
 * hammer_cli_gutterball (0.0.1)
 * hammer_cli_katello (0.0.7)

Comment 5 Bryan Kearney 2015-02-24 18:03:34 UTC
moving to on_qa in order to have folks retest it. Adam, can you look at the upstream issue. Is it already fixed?

Comment 6 sthirugn@redhat.com 2015-02-24 18:23:47 UTC
Failed as per Comment 4

Comment 8 Adam Price 2015-03-03 22:00:16 UTC
pull-request opened: https://github.com/theforeman/hammer-cli/pull/162

Comment 13 Adam Price 2015-03-11 21:13:34 UTC
pull-request merged into master

Comment 14 Mike McCune 2015-03-17 00:28:49 UTC
*** Bug 1174251 has been marked as a duplicate of this bug. ***

Comment 17 jaudet 2015-03-20 15:14:34 UTC
Tested against Satellite-6.1.0-RHEL-7-20150317.0 and Satellite-6.1.0-RHEL-6-20150317.0.

    $ hammer -u … -p … ping
    candlepin:
        Status:          ok
        Server Response: Duration: 21ms
    candlepin_auth:
        Status:          ok
        Server Response: Duration: 20ms
    pulp:
        Status:          ok
        Server Response: Duration: 13ms
    pulp_auth:
        Status:          ok
        Server Response: Duration: 24ms
    elasticsearch:
        Status:          ok
        Server Response: Duration: 13ms
    foreman_tasks:
        Status:          ok
        Server Response: Duration: 0ms

Software version:

    $ hammer --version
    hammer (0.1.4.6)
    * hammer_cli_foreman (0.1.4.6)
    * hammer_cli_foreman_bootdisk (0.1.2.5)
    * hammer_cli_foreman_discovery (0.0.1.3)
    * hammer_cli_gutterball (unknown version)
    * hammer_cli_import (0.10.6.3)
    * hammer_cli_katello (0.0.7.4)

Comment 18 Bryan Kearney 2015-08-11 13:20:25 UTC
This bug is slated to be released with Satellite 6.1.

Comment 19 errata-xmlrpc 2015-08-12 05:27:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592