Bug 1260166

Summary: Unable to log in as admin and unable to reset admin password after 3.6pre->3.6pre upgrade
Product: [Retired] oVirt Reporter: Neal Gompa <ngompa13>
Component: ovirt-engine-installerAssignee: Martin Perina <mperina>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6CC: alonbl, bugs, ecohen, gklein, lsurette, ngompa13, oourfali, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-11 12:21:15 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 Neal Gompa 2015-09-04 15:48:25 UTC
Description of problem:
After upgrading to 3.6pre earlier in the week, I upgraded again and ran engine-setup. Afterward, I was unable to log in using admin@internal user. I tried to run "engine-config -s AdminPassword=interactive", but it doesn't work, saying there's no such entry.

Version-Release number of selected component (if applicable):
3.6.0-0.0.master.20150901142419.git8df944a.el7.centos.noarch

How reproducible:
Always

Steps to Reproduce:
1. Upgrade from 3.5 to 3.6.0-0.0.master.20150819134454.gite6b79a7.el7.centos
2. Upgrade again to 3.6.0-0.0.master.20150901142419.git8df944a.el7.centos.noarch
3. Attempt to log in or set password

Actual results:
Unable to log in, getting message: "Cannot Login. User Password has expired, Please change your password."

"engine-config -s AdminPassword=interactive" returns "Error setting AdminPassword's value. No such entry."

Expected results:
I should be able to log in, and if I wanted to change my password, I should be able to.

Comment 1 Alon Bar-Lev 2015-09-05 17:52:23 UTC
FYI: engine-config is not used to set password any more, use ovirt-engine-extension-aaa-jdbc tool to do that.

not sure why the password expired though, leaving this for martin.

Comment 2 Martin Perina 2015-09-05 20:35:39 UTC
Hi Neal,

could you please attach your setup logs? They are located in /var/log/ovirt-engine/setup.

To fix 'password expired' issue, so you could log in using 'admin@internal', please execute following command:

  ovirt-aaa-jdbc-tool user password-reset admin --password-valid-to="<DATE>"

where <DATE> should be future date in the format "yyyy-MM-dd HH:mm:ssX" (more info can be found at [1]).

Thanks

Martin

[1] http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html

Comment 3 Martin Perina 2015-09-11 12:21:15 UTC
Closing as duplicate, because reproduce steps are the same as in BZ1260573

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