During an unattended installation, if the CREATE_READONLY_USER parameter was specified in an answer file, the readonly user was not created. Now if CREATE_READONLY_USER is set to yes or true
it will be created using validated values from READONLY_SECURE, READONLY_USER, and READONLY_PASS.
Created attachment 834798[details]
dwh setup logs
Description of problem:
Using unattended installation, readonly user is not created:
# grep -i read 33.local.dwh.ansfile
CREATE_READONLY_USER=Yes
READONLY_SECURE=No
READONLY_USER=readonly
READONLY_PASS=123456
# cat /etc/ovirt-engine-dwh/engine-dwh.conf.d/10-setup-database-dwh.conf
DWH_USER=engine_history
DWH_PASSWORD=6095BIgZ
DWH_DATABASE=ovirt_engine_history
Version-Release number of selected component (if applicable):
is26
How reproducible:
100%
Steps to Reproduce:
1. create dwh answer file using rhevm-dwh-setup -g ansfile
2. fix te file to create readonly user
3. run rhevm-dwh-setup -a ansfile
Actual results:
readonly user is not created
Expected results:
readonly user is created, with the credentials specified in the answerfile
Additional info:
Alex, it seems that createReadUser is not set to True when options['CREATE_READONLY_USER'] is not None.
I'm not sure about implications in other parts of the setup.
I'll try to fix it tomorrow.
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.
http://rhn.redhat.com/errata/RHBA-2014-0036.html
Created attachment 834798 [details] dwh setup logs Description of problem: Using unattended installation, readonly user is not created: # grep -i read 33.local.dwh.ansfile CREATE_READONLY_USER=Yes READONLY_SECURE=No READONLY_USER=readonly READONLY_PASS=123456 # cat /etc/ovirt-engine-dwh/engine-dwh.conf.d/10-setup-database-dwh.conf DWH_USER=engine_history DWH_PASSWORD=6095BIgZ DWH_DATABASE=ovirt_engine_history Version-Release number of selected component (if applicable): is26 How reproducible: 100% Steps to Reproduce: 1. create dwh answer file using rhevm-dwh-setup -g ansfile 2. fix te file to create readonly user 3. run rhevm-dwh-setup -a ansfile Actual results: readonly user is not created Expected results: readonly user is created, with the credentials specified in the answerfile Additional info: