Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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.