Bug 1192044 - admin is not authorized to log into webadmin after new db setup.
Summary: admin is not authorized to log into webadmin after new db setup.
Keywords:
Status: CLOSED DUPLICATE of bug 1191204
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.6
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Eli Mesika
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-12 13:54 UTC by Vered Volansky
Modified: 2015-02-12 16:32 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-02-12 16:32:44 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Vered Volansky 2015-02-12 13:54:42 UTC
Description of problem:
When trying to work with a clean DB, either after dropdb or engine_cleanup on everything - can't log into webadmin.
I also tried overriding the password in the db directly for AdminPassword and LocalAdminPassrod, but still no go.

Version-Release number of selected component (if applicable):
master. Current master for me is: 
b6b9993120c887645c81e1343fe3dcc300d9d559
But this started happening for me yesterday.
My last rebase + setup prior to that was a week ago, maybe two.
Tested again with 109ef459deece93575c3e5c3c5625a2da4f05219 and that's still OK.

How reproducible:
100%

Steps to Reproduce:
1. drop db / engine_cleanup including db
2. run engine setup
3. start engine and try to connect as admin

Actual results:
Red user alert in webadmin:
"User is not authorized to perform this action."

Engine log:
2015-02-12 15:55:56,724 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (http--0.0.0.0-8080-1) [] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: User admin@internal failed to log in.
2015-02-12 15:55:56,726 WARN  [org.ovirt.engine.core.bll.aaa.LoginAdminUserCommand] (http--0.0.0.0-8080-1) [] CanDoAction of action 'LoginAdminUser' failed for user admin@internal. Reasons: USER_NOT_AUTHORIZED_TO_PERFORM_ACTION

Comment 1 Allon Mureinik 2015-02-12 16:12:12 UTC
Eli, this seems like a possible duplicate of bug 1191204 which you are handling. Can you take a look at this one too please?

Comment 2 Alon Bar-Lev 2015-02-12 16:31:07 UTC
Root cause[1], 00100_insert_users.sql change.

[1] http://gerrit.ovirt.org/#/c/37668/

Comment 3 Alon Bar-Lev 2015-02-12 16:32:44 UTC

*** This bug has been marked as a duplicate of bug 1191204 ***


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