Actions
Bug #24784
closedForeman-maintain doesn't check if the server is up before hammer setup
Difficulty:
Triaged:
No
Bugzilla link:
Description
The procedure to setup hammer configuration tests the connection. If the service is down it fail. It could tell earlier if the server is running and suggest to turn on if not.
It may be good to consider how to behave when the services are down during various tasks. We could either skip some checks/procs or require them up.
Reproducer:
# rm /etc/foreman-maintain/foreman-maintain-hammer.ym # foreman-maintain health check Running preparation steps required to run the next scenarios ================================================================================ Setup hammer: Hammer admin password: [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"
Actions