Satellite hostname change fails with the error 'Error: Timed out connecting to server'
Issue
satellite-change-hostnamescript fails with the below error.
[root@satellite_cert]# satellite-change-hostname satellite.new.com --username admin --password 'passwd' --custom-cert satellite.new.com.crt --custom-key satellite.new.com.ex_key.pem
Checking custom certificates
Checking hostname validity
Checking overall health of server
Error: Timed out connecting to server
There is a problem with the server; please check 'hammer ping'
Failed 'hammer ping' with exit code 70
[root@satellite_cert]# hammer ping
Warning: An error occured while loading module hammer_cli_foreman.
Warning: An error occured while loading module hammer_cli_foreman_ansible.
Warning: An error occured while loading module hammer_cli_foreman_bootdisk.
Warning: An error occured while loading module hammer_cli_foreman_openscap.
Warning: An error occured while loading module hammer_cli_foreman_remote_execution.
Warning: An error occured while loading module hammer_cli_foreman_tasks.
Warning: An error occured while loading module hammer_cli_foreman_templates.
Warning: An error occured while loading module hammer_cli_foreman_virt_who_configure.
Warning: An error occured while loading module hammer_cli_foreman_webhooks.
Warning: An error occured while loading module hammer_cli_katello.
Error: No such sub-command 'ping'.
See: 'hammer --help'.
Environment
- Red Hat Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.