Open jamesfreeman959 opened 5 years ago
Had the same issue here with V9.0.1.0 of AWX. I reset the password to not contain special chars and was able to login with the default admin account after that.
This issue is also present in the Tower installer for Tower 3.6.3 (OpenShift).
The culprit appears to be this line (for initial install) and this line (for updates beyond initial install). In our case, a $
in the password caused the shell to think that a variable was present, and logging in with the evaluated string allowed me to successfully authenticate.
admin_password
is asdf$asdf(asdf
in the inventory, the set password will be asdf(asdf
.Overall, you can use special characters, just not ones that will be interpreted.
My understanding is it's the shell invoked by the shell
Ansible module shell (/bin/sh
according to this) as opposed to bash
.
ISSUE TYPE
SUMMARY
Unable to authenticate with a fresh install of AWX 8.0.0 using password defined in inventory file - special characters in filename.
ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
AWX installs and it is possible to log in using the admin user and associated password from the installation inventory.
ACTUAL RESULTS
AWX returns an authentication failure. No errors report in any of the container logs.
ADDITIONAL INFORMATION
Could do with a documented method to reset the admin password in this instance. All the documentation I can find on the Internet requires tools like
awx-manage
, or usestower-cli
(which implicitly assumes that authentication is already set up and working).tower-cli
tested and cannot authenticate either.