Bug 1323696 - [dev env] running the engine-setup tool on a clean env. doesn't ask you to set the password of the admin user
Summary: [dev env] running the engine-setup tool on a clean env. doesn't ask you to se...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Setup.Engine
Version: 4.0.0
Hardware: Unspecified
OS: Linux
low
medium vote
Target Milestone: ovirt-4.0.0-rc
: ---
Assignee: Yedidyah Bar David
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-04 13:01 UTC by Sharon Gratch
Modified: 2017-05-11 09:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-24 13:25:52 UTC
oVirt Team: Integration
sbonazzo: ovirt-4.0.0?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
answer file created after running the engine-setup is attached (don't have the setup.log file). Please ignore the .backup extension. (2.06 KB, text/plain)
2016-04-04 13:01 UTC, Sharon Gratch
no flags Details

Description Sharon Gratch 2016-04-04 13:01:23 UTC
Created attachment 1143351 [details]
answer file created after running the engine-setup is attached (don't have the setup.log file). Please ignore the .backup extension.

Description of problem:
After build+install of ovirt-engine on a clean environment, running the engine-setup tool doesn't ask you to set the password of the admin user (the user for the admin portal).

 
Version-Release number of selected component (if applicable):
none

How reproducible:
see below

Steps to Reproduce:
1. run build and install of ovirt-engine from the master repository on a clean environment (i.e. no previous installation existed for the ovirt-engine).

2. run the bin/engine-setup and choose installation for a development environment.

3. the engine-setup won't ask you for the admin user password (for the admin portal).

4. Checking the the answer file after the installation completed, showed that the  property OVESETUP_CONFIG/adminPassword was set to "none:None".


Actual results:
Not sure which password is set for the admin user.

Expected results:
The the engine-setup should ask you to set the admin user password.

Additional info:
answer file created after running the engine-setup is attached (don't have the setup.log file). Please ignore the .backup extension.

Comment 1 Yedidyah Bar David 2016-04-04 13:12:43 UTC
Unless this is easily reproducible (didn't try yet), I don't think we can do much without the setup log.

Based on the attached answer file, specifically 'OVESETUP_CONFIG/engineDbBackupDir=str:/home/sgratch/ovirt-engine/var/lib/ovirt-engine/backups', I am guessing this is dev env, changing subject accordingly.

Comment 2 Sharon Gratch 2016-04-06 06:30:01 UTC
This bug occurred while running the engine-setup for a dev environment on my laptop (as mentioned in "Steps to Reproduce" - section 2).
 
It reproduced on my environment twice.
Each time I removed the engine installation folders to have a clean env, run the build and then the engine-setup for dev.

The problem was solved only after I run the bin/engine-cleanup utility and manually removed the answer file (the one attached to this bug) and only then run the engine-setup which asked for the admin password.

Comment 3 Yedidyah Bar David 2016-04-06 06:45:46 UTC
(In reply to Sharon Gratch from comment #2)
> It reproduced on my environment twice.

Please attach setup logs.

> The problem was solved only after I run the bin/engine-cleanup utility and
> manually removed the answer file (the one attached to this bug) and only
> then run the engine-setup which asked for the admin password.

Where did you remove it from?

How was it created in the first place?

How do you run setup?

Comment 4 Sharon Gratch 2016-04-10 07:57:11 UTC
(In reply to Yedidyah Bar David from comment #3)
> (In reply to Sharon Gratch from comment #2)
> > It reproduced on my environment twice.
> 
> Please attach setup logs.

I don't have the setup logs.
> 
> > The problem was solved only after I run the bin/engine-cleanup utility and
> > manually removed the answer file (the one attached to this bug) and only
> > then run the engine-setup which asked for the admin password.
> 
> Where did you remove it from? 
> How was it created in the first place?
> How do you run setup?
The scenario in details:
1. run the bin/engine-setup on my laptop where no previous engine installation existed (setup for dev, done after I build the engine from master..).

2. no admin password was asked to set during that setup.

3. I removed the engine installation and repeat steps 1-2 again and the problem was reproduced.

4. I run bin/engine-cleanup, removed the answer file under the var/lib/ovirt-engine/setup/answers folder (attached) and only then run the bin/engine-setup. 

5. this time I was asked to set the user admin password.

Comment 5 Yedidyah Bar David 2016-04-10 08:24:48 UTC
(In reply to Sharon Gratch from comment #4)
> (In reply to Yedidyah Bar David from comment #3)
> > (In reply to Sharon Gratch from comment #2)
> > > It reproduced on my environment twice.
> > 
> > Please attach setup logs.
> 
> I don't have the setup logs.

But you said you reproduced this twice. We can't do much without setup logs. You should be able to find them under var/log/ovirt-engine/setup .

Comment 6 Sandro Bonazzola 2016-05-02 09:51:01 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 7 Yaniv Lavi 2016-05-23 13:14:41 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 8 Yaniv Lavi 2016-05-23 13:18:39 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 9 Sharon Gratch 2016-05-24 13:18:12 UTC
As written above, I didn't have setup logs (don't remember why). Only answer file, which is already attached.

Comment 10 Yedidyah Bar David 2016-05-24 13:25:52 UTC
Very well. Please reopen if you manage to reproduce, and attach setup logs. Thanks.

Comment 11 Yedidyah Bar David 2016-05-25 13:22:38 UTC
Now happened also to me, so I think it's a reproduction:

1. install dev env to PREFIX
2. create empty db/user/etc
3. engine-setup in PREFIX, use this db/user
4. rm -rf PREFIX
5. install again dev env to PREFIX
6. engine-setup in PREFIX, use same db/user

engine-setup does not prompt for admin password, as the database is not empty, and the password is supposedly already set there.

see also bug 1259782.


Note You need to log in before you can comment on or make changes to this bug.