Bug 1676443 - add more informative error when session limit exceeded for the user
Summary: add more informative error when session limit exceeded for the user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.3.2
: ---
Assignee: Dana
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-12 10:06 UTC by Lucie Leistnerova
Modified: 2019-03-19 10:05 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.3.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-19 10:05:20 UTC
oVirt Team: Infra
Embargoed:
aoconnor: ovirt-4.3+
lleistne: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 97897 0 master MERGED engine: add informative error when session limit is exceeded 2019-02-21 15:43:57 UTC

Description Lucie Leistnerova 2019-02-12 10:06:53 UTC
Description of problem:
When engine is set to limit user sessions, API returns only 'Unauthorized' when the limit has exceeded. Admin portal shows more informative error.

Version-Release number of selected component (if applicable):
ovirt-engine-restapi-4.3.0.4-0.1.el7.noarch

How reproducible: always


Steps to Reproduce:
1. set session limit in /etc/ovirt-engine/engine.conf.d/99-max-user-sessions.conf
ENGINE_MAX_USER_SESSIONS=2
2. restart engine
3. call api 3x
curl -k -v -u admin@internal:passwd -H "Prefer: persistent-auth" https://engine/ovirt-engine/api

Actual results: the last call returns
<html><head><title>Error</title></head><body>Unauthorized</body></html>


Expected results: 
<html><head><title>Error</title></head><body>Unable to login user admin@internal because the maximum number of allowed sessions 2 is exceeded </body></html>

Comment 1 Michael Burman 2019-03-07 07:47:00 UTC
Verified on - rhvm-4.3.2-0.1.el7.noarch

Comment 2 Sandro Bonazzola 2019-03-19 10:05:20 UTC
This bugzilla is included in oVirt 4.3.2 release, published on March 19th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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