Actions
Bug #25032
closedforeman-maintain can't authenticate 'hammer defaults' are invalid - upgrades and other commands fail
Difficulty:
Triaged:
No
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1632768
If the user has specified invalid values in .hammer/defaults.yml (via the hammer defaults command) foreman-maintain will fail to authenticate and error on most commands.
This can be difficult as a user to determine why it is failing as the user only sees:
- foreman-maintain health check
Running preparation steps required to run the next scenarios ================================================================================
Setup hammer:
Configuring Hammer CLI...
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?
this makes it look like the password is incorrect or the server is down, when in fact, there may be a setting in ~./.hammer/defauts.yml that is invalid or conflicting with foreman-maintain's usage of hammer.
This results in failed upgrades with difficulty determining why:
- satellite-installer --upgrade
...
Upgrade Step: Running installer...
Installing Done [100%] [...........................................................................]
The full log is at /var/log/foreman-installer/satellite.log
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:[FAIL]
Actions