RedHatSatellite / satellite-clone

Utility to assist cloning an existing Satellite 6 server to a new host
GNU General Public License v3.0
37 stars 31 forks source link

Failed to setup hammer and wont prompt user to enter credentials #353

Closed ntkathole closed 5 years ago

ntkathole commented 5 years ago

If satellite backup is not having foreman-maintain hammer setup configured (/etc/foreman-maintain/foreman-maintain-hammer.yml) or wont have hammer credentials, satellite-clone will fail at

Upgrade Step: restart_services...
Redirecting to 'foreman-maintain service'
Running preparation steps required to run the next scenarios
================================================================================
Setup hammer: Configuring Hammer CLI...
Hammer admin password: stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device

                                                                      [FAIL]
Hammer configuration failed: Is the admin password correct? (it was stored in /etc/foreman-maintain/foreman-maintain-hammer.yml)Is the server down?
--------------------------------------------------------------------------------
Scenario [preparation steps required to run the next scenarios] failed.

The following steps ended up in failing state:

  [hammer-setup]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="hammer-setup"

katello-service restart failed! Check the output for error!
Upgrade step restart_services failed. Check logs for more information.