As discussed, we should also refrain from writing to the answer file the randomly-generated password. This way, mere use of setup-generated answer file will keep the existing behavior (generate a new password), while special cases will still be able to supply their own password even if auto provisioning.
Verified with rhevm-setup-3.4.3-1.1.el6ev.noarch. generated an answer file with db credentials (username, database name, self defined password) and: OVESETUP_PROVISIONING/postgresProvisioningEnabled=bool:True ran engine-setup with this answer file, setup was successful, tried to connect to DB with my defined password was successful as well: export PGPASSWORD=mypass; psql -d engine -U engine -h localhost -t -A -c '--'
Julie, not sure the doctext as-is is good enough. engine-setup was also changed to not keep the password in the answer file if automatic provisioning was selected. This means that by default, we keep the previous behavior: running engine-setup with automatic provisioning creates a random password, and creates an answer file. If this answer file is used to run engine-setup, it will create another random password. The way this works: Before this bug/fix - because if setup does auto provisioning, a password in the answer file is ignored After this bug/fix - because setup does not write the password to the generated answer file. The flow that changed is - running setup with an answer file that asks for auto provisioning and supplies a password. This flow can happen by either using an answer file generated by an older setup (not containing this fix) or by manually editing the answer file and adding a password.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2014-1712.html