Bug 1731049 - exception while adding user or group to quota consumer
Summary: exception while adding user or group to quota consumer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.3.4.3
Hardware: All
OS: All
unspecified
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: Andrej Krejcir
QA Contact: Ivana Saranova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-18 08:44 UTC by Christoph
Modified: 2020-05-20 19:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-20 19:57:53 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)
browser console output (6.54 KB, text/plain)
2019-07-19 07:42 UTC, Christoph
no flags Details
server log (1.61 MB, text/plain)
2019-07-19 07:44 UTC, Christoph
no flags Details
ui log (57.28 KB, text/plain)
2019-07-19 07:45 UTC, Christoph
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 102048 0 master MERGED webadmin: Fix ClassCastException when adding a consumer to quota 2020-06-17 09:11:43 UTC

Description Christoph 2019-07-18 08:44:26 UTC
Description of problem:
I receive the following exception on the web front end while adding a user or group to the consumer list of a quota.

"Uncaught exception occurred. Please try reloading the page."

The engine.log is not showing the exception from the browser:

2019-07-18 10:38:34,633+02 INFO  [org.ovirt.engine.core.bll.AddPermissionCommand] (EE-ManagedThreadFactory-engine-Thread-1056) [c9755ab2-d2e2-4f48-872e-77f4b51eb881] Running command: AddPermissionCommand internal: false. Entities affected :  ID: 8c628507-4e17-44a9-a924-079008c6b7dd Type: QuotaAction group MANIPULATE_PERMISSIONS with role type USER,  ID: 8c628507-4e17-44a9-a924-079008c6b7dd Type: QuotaAction group ADD_USERS_AND_GROUPS_FROM_DIRECTORY with role type USER
2019-07-18 10:38:34,651+02 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1056) [c9755ab2-d2e2-4f48-872e-77f4b51eb881] EVENT_ID: USER_ADD_PERMISSION(850), User/Group dev_group, Namespace *, Authorization provider: internal-authz was granted permission for Role QuotaConsumer on Quota Developer, by admin@internal-authz.


Version-Release number of selected component (if applicable): 4.3.4


How reproducible:


Steps to Reproduce:
1. add internal user or group to quota

Actual results:
Working but browser shows exception


Expected results:
No exception

Comment 1 Ryan Barry 2019-07-19 04:05:11 UTC
Can you please attach server.log and the console from the browser?

Comment 2 Michal Skrivanek 2019-07-19 06:40:28 UTC
+ ui.log

Comment 3 Christoph 2019-07-19 07:42:00 UTC
Created attachment 1591925 [details]
browser console output

Comment 4 Christoph 2019-07-19 07:44:59 UTC
Created attachment 1591926 [details]
server log

Comment 5 Christoph 2019-07-19 07:45:17 UTC
Created attachment 1591927 [details]
ui log

Comment 6 Christoph 2019-07-19 07:46:07 UTC
Hi all,

please note that I have uploaded the logs from my check today.

around - 2019-07-19 09:38

Best regards
Christoph

Comment 7 Ivana Saranova 2020-01-30 14:22:40 UTC
Steps:
1) Add user and group to the consumers list of a quota
2) Check that no exceptions occurred and user/group were added successfully

Result:
Both user and group were added successfully to the consumers list and no exceptions occurred.

Verified in:
ovirt-engine-webadmin-portal-4.4.0-0.17.master.el7.noarch
ovirt-engine-4.4.0-0.17.master.el7.noarch

Comment 8 Marko Vrgotic 2020-03-17 10:02:57 UTC
Same issue on ovirt 4.3.8:
Verified in:
ovirt-engine-webadmin-portal-4.3.8.2-1.el7.noarch
ovirt-engine-4.3.8.2-1.el7.noarch

Related logs:
2020-03-12 13:57:57,433Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-3597) [] Permutation name: 1AD871380C0F85A90CBF764A6CF6663F
2020-03-12 13:57:57,436Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-3597) [] Uncaught exception: java.lang.ClassCastException
        at java.lang.Throwable.Throwable(Throwable.java:59) [rt.jar:1.8.0_242]
        at java.lang.Exception.Exception(Exception.java:25) [rt.jar:1.8.0_242]
        at java.lang.RuntimeException.RuntimeException(RuntimeException.java:25) [rt.jar:1.8.0_242]
        at java.lang.ClassCastException.ClassCastException(ClassCastException.java:23) [rt.jar:1.8.0_242]
        at javaemul.internal.InternalPreconditions.checkCriticalType(InternalPreconditions.java:139) [gwt-servlet.jar:]
        at com.google.gwt.lang.Cast.castTo(Cast.java:74)
        at org.ovirt.engine.ui.uicommonweb.models.quota.QuotaUserListModel.$lambda$1(QuotaUserListModel.java:237)
        at org.ovirt.engine.ui.uicommonweb.models.quota.QuotaUserListModel$lambda$1$Type.executed(QuotaUserListModel.java:237)
        at org.ovirt.engine.ui.frontend.Frontend$4.$onSuccess(Frontend.java:552) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.Frontend$4.onSuccess(Frontend.java:552) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:170) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:170) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$6$1.$onSuccess(GWTRPCCommunicationProvider.java:384) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$6$1.onSuccess(GWTRPCCommunicationProvider.java:384) [frontend.jar:]
        at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198) [gwt-servlet.jar:]
        at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:233) [gwt-servlet.jar:]
        at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:]
        at Unknown.onreadystatechange<(https://ovirt-engine.avinity.tv/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:236) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:275) [gwt-servlet.jar:]
        at Unknown.Tu/<(https://ovirt-engine.avinity.tv/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at Unknown.anonymous(Unknown)

2020-03-12 16:55:29,491Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-3677) [] Permutation name: 1AD871380C0F85A90CBF764A6CF6663F
2020-03-12 16:55:29,491Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-3677) [] Uncaught exception: java.lang.ClassCastException
        at java.lang.Throwable.Throwable(Throwable.java:59) [rt.jar:1.8.0_242]
        at java.lang.Exception.Exception(Exception.java:25) [rt.jar:1.8.0_242]
        at java.lang.RuntimeException.RuntimeException(RuntimeException.java:25) [rt.jar:1.8.0_242]
        at java.lang.ClassCastException.ClassCastException(ClassCastException.java:23) [rt.jar:1.8.0_242]
        at javaemul.internal.InternalPreconditions.checkCriticalType(InternalPreconditions.java:139) [gwt-servlet.jar:]
        at com.google.gwt.lang.Cast.castTo(Cast.java:74)
        at org.ovirt.engine.ui.uicommonweb.models.quota.QuotaUserListModel.$lambda$1(QuotaUserListModel.java:237)
        at org.ovirt.engine.ui.uicommonweb.models.quota.QuotaUserListModel$lambda$1$Type.executed(QuotaUserListModel.java:237)
        at org.ovirt.engine.ui.frontend.Frontend$4.$onSuccess(Frontend.java:552) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.Frontend$4.onSuccess(Frontend.java:552) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:170) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:170) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$6$1.$onSuccess(GWTRPCCommunicationProvider.java:384) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$6$1.onSuccess(GWTRPCCommunicationProvider.java:384) [frontend.jar:]
        at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198) [gwt-servlet.jar:]
        at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:233) [gwt-servlet.jar:]
        at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:]
        at Unknown.onreadystatechange<(https://ovirt-engine.avinity.tv/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:236) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:275) [gwt-servlet.jar:]
        at Unknown.Tu/<(https://ovirt-engine.avinity.tv/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at Unknown.anonymous(Unknown)

Comment 9 Marko Vrgotic 2020-03-17 11:06:58 UTC
I forgot to mention the above is from UI.log. 
engine.log as initially said does not log any issue, it seems frontend related.

Comment 10 Sandro Bonazzola 2020-05-20 19:57:53 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 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.