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
Can you please attach server.log and the console from the browser?
+ ui.log
Created attachment 1591925 [details] browser console output
Created attachment 1591926 [details] server log
Created attachment 1591927 [details] ui log
Hi all, please note that I have uploaded the logs from my check today. around - 2019-07-19 09:38 Best regards Christoph
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
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)
I forgot to mention the above is from UI.log. engine.log as initially said does not log any issue, it seems frontend related.
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.