Bug 1191204
Summary: | Logging in to admin@internal fails | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Dima Kuznetsov <dkuznets> |
Component: | ovirt-engine-core | Assignee: | Eli Mesika <emesika> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Karolína Hajná <khajna> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | alonbl, amureini, bugs, ecohen, emesika, gklein, lsurette, oourfali, pstehlik, rbalakri, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-04 11:46:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dima Kuznetsov
2015-02-10 16:55:49 UTC
Please note that the displayed message is: User is not authorized to perform this action Rather than: The user name or password is incorrect. that happens when password is invalid. (In reply to Dima Kuznetsov from comment #1) > Please note that the displayed message is: > User is not authorized to perform this action > > Rather than: > The user name or password is incorrect. > > that happens when password is invalid. So, basically this is not specific to user setup and can be reproduced by login to from webadmin/REST API with wrong password ??? No, it can only be reproduced by logging in with the correct password, when logging with a wrong password it displays a different message. (In reply to Dima Kuznetsov from comment #3) > No, it can only be reproduced by logging in with the correct password, when > logging with a wrong password it displays a different message. Please read again what you had wrote in comment 1 : ============================================== Please note that the displayed message is: User is not authorized to perform this action Rather than: The user name or password is incorrect. ============================================== So, if the user name and password is correct, why should it display that it is incorrect ??? Please explain ... I meant to say that password provided is correct and ovirt recognizes it as such. Root cause[1], 00100_insert_users.sql change. [1] http://gerrit.ovirt.org/#/c/37668/ *** Bug 1192044 has been marked as a duplicate of this bug. *** The problem is that the upgrade script 03_05_0220_update_user_ids.sql changes the default user is to something else This causes the default user id to be added again with 'fdfc627cd87511e090f083df133b58cc' as user_id , but now the permissions are set on the changed user_id and the new one has no permissions The upgrade script should not change 'fdfc627cd87511e090f083df133b58cc' which is used constantly in : --- start --- git grep "fdfc627c-d875-11e0-90f0-83df133b58cc" PredefinedUsers.java: ADMIN_USER(new Guid("fdfc627c-d875-11e0-90f0-83df133b58cc")); EngineExtensionsManager.java: dirConfig.put("config.authz.user.id", "fdfc627c-d875-11e0-90f0-83df data/00100_insert_users.sql:INSERT INTO users (user_id, name, surname, domain, username, groups, department, role, email, note, status, last_admin_check_status, group_ids data/00600_insert_permissions.sql:INSERT INTO permissions (id, role_id, ad_element_id, object_id, object_type_id) VALUES ('00000003-0003-0003-0003-000000000016', '0000000 data/00600_insert_permissions.sql:INSERT INTO permissions (id, role_id, ad_element_id, object_id, object_type_id) VALUES ('00000006-0006-0006-0006-00000000016d', '0000000 --- end --- Setting NEEDINFO on Yair that wrote this upgrade script (In reply to Alon Bar-Lev from comment #6) > Root cause[1], 00100_insert_users.sql change. > > [1] http://gerrit.ovirt.org/#/c/37668/ Agree, that;s the problem cause , please ignore comment 8 it changes the uuid psql type into a string. Verified on 3.6.0-0.0.master.20150427173543.git61dec8c.el6 oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue. If problems still persist, please open a new BZ and reference this one. |