Description of problem: rhevm-setup completes correctly only if the engine DB names matches the engine username cause it inverts the database name and the username writing pg_hba.conf file. Version-Release number of selected component (if applicable): av11.1 How reproducible: 100%, automatically and manually Steps to Reproduce: 1. rhevm-setup --config-append=working 2. rhevm-cleanup --config-append=cleanup 3. rhevm-setup --config-append=setup Actual results: 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/create_schema.sh' failed to execute Expected results: rhevm-setup completes correctly Additional info: To reproduce please modify OVESETUP_CONFIG/fqdn and OVESETUP_PKI/organization in the attached files matching your hostname.
Created attachment 931493 [details] first answerfile
Created attachment 931494 [details] cleanup answerfile
Created attachment 931495 [details] third answerfile
Notes for QE: use different DB name in the answerfile.
failed on vt6 with engine DB name in answerfile set to engineDB, saying database engineDB does not exist (automatic DB provisioning was enabled)
Created attachment 949348 [details] failing answerfile
Unfortunately movciari found a new bug: it seams that we are not able to correctly handle DB names with mixed case as 'engineDB'. Using 'enginedb' for the DB name and 'engine' for the username works as expected while instead using 'enginE' for the DB and 'enginE' for the username doesn't.
i will wait for 1156114 to be ON_QA to verify it at once