Hammer ping fails with error 'An error occured while loading module hammer_cli_foreman'

Solution Verified - Updated -

Issue

  • On a Red Hat Satellite 6 server, hammer ping fails with the below error.

    # hammer ping 
    Error: Timed out connecting to server
    Warning: An error occured while loading module hammer_cli_foreman.
    
  • And the health check gives the below output.

    # satellite-maintain health check
    Running preparation steps required to run the next scenarios
    ================================================================================
    Setup hammer:
    Configuring Hammer CLI...                                             [OK]
    --------------------------------------------------------------
    
    
    ForemanMaintain::Scenario::FilteredScenario
    ================================================================================
    Check number of fact names in database:                               [OK]
    --------------------------------------------------------------------------------
    Check whether all services are running:                               [OK]
    --------------------------------------------------------------------------------
    Check whether all services are running using the ping call:           [FAIL]
    Couldn't connect to the server: Net::OpenTimeout
    --------------------------------------------------------
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content