Bug 1445673

Summary: [ovirt] No error pops when logging with a locked ovirt user account
Product: Red Hat Enterprise Linux 8 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: cfergeau, elima, jjongsma, juzhou, mxie, mzhan, rbalakri, tzheng, uril, victortoso, xiaodwan
Target Milestone: rcKeywords: Triaged
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1445681 (view as bug list) Environment:
Last Closed: 2021-03-25 07:30:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1445681    
Bug Blocks:    
Attachments:
Description Flags
REST_DEBUG=proxy log none

Description Xiaodai Wang 2017-04-26 09:17:01 UTC
Description of problem:
No error pops when logging with a locked ovirt user account

Version-Release number of selected component (if applicable):
virt-viewer-5.0-2.el7.x86_64
libgovirt-0.3.3-5.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Open a ovirt session and type wrong password several times, the account will be locked.
$ remote-viewer --ovirt-ca-file=ca.crt ovirt://admin%40internal.com/asdfwerq
2. Open a new ovirt session again and type correct username and password.
3. Click OK button in 'Authentication required' dialog.

Actual results:
No any error display and the dialog is still there to waiting for a password.

Expected results:
Can display some error msg to let users know the account has problem now.
In web portal, error "Cannot Login. User Account is Disabled or Locked, Please contact your system administrator." displays.

Additional info:
the response of ok button delays about 3~5s, Uses have to wait about 3~5 seconds for continue opration like cancel.

Comment 2 Xiaodai Wang 2017-04-26 09:20:03 UTC
Created attachment 1274148 [details]
REST_DEBUG=proxy log

Comment 3 Christophe Fergeau 2017-04-26 09:28:35 UTC
I don't see anything in that log that we could use to inform the user that their account is locked. In order to solve this bug, we'd first need support for this in RHEV REST API.

Comment 4 Victor Toso 2019-04-09 14:17:40 UTC
Bug 1445681 was fixed, do we need something in libgovirt before fixing virt-viewer?

Comment 5 Eduardo Lima (Etrunko) 2019-04-10 16:22:29 UTC
(In reply to Victor Toso from comment #4)
> Bug 1445681 was fixed, do we need something in libgovirt before fixing
> virt-viewer?

I'll need to check with a RHV instance which has that fix implemented. Wang, can you provide?

Comment 7 Eduardo Lima (Etrunko) 2019-04-11 19:09:12 UTC
Confirmed that this requires some changes in either virt-viewer or libgovirt, maybe both. I tested with latest git master for both, and authentication errors are not handled properly currently.

Comment 16 RHEL Program Management 2021-03-25 07:30:52 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.