Could not deploy Virt-who configuration on Red Hat Satellite using hammer.
Environment
- Red Hat Satellite 6
Issue
-
Created virt-who configuration on Satellite UI but getting below error while trying to deploy the file on Satellite using hammer
# hammer virt-who-config deploy --id 3 ----------------------------------------------------- Could not deploy the Virt Who configuration: Invalid username or password -----------------------------------------------------
Resolution
-
Corrected hammer password in the
/root/.hammer/cli.modules.d/foreman.ymlfile:# vi /root/.hammer/cli.modules.d/foreman.yml
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
For more KB articles/solutions related to Virt-who and Virtual Datacenter (VDC) Subscriptions Issues, please refer to the Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues
Root Cause
-
Password mentioned under file
foreman.ymlwas incorrect# vi /root/.hammer/cli.modules.d/foreman.yml :foreman: # Credentials. You'll be asked for the interactively if you leave them blank here :username: 'admin' :password: 'redhat'
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.