=============================================================================
Issue: Unable to update/change the vm Pool Configuration. Below error is received on the portal.
" Uncaught exception occurred. Please try reloading the page. Details: Exception caught: (TypeError)__gw$exception:.....
Please have your administrator check the UI logs. "
-- Sometimes after reloading the page it works fine.
-- ui.logs show below error
2016-10-24 08:16:37,745 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-444) [] Permutation name: B9EF0FC1CAA0EFB1185DD4689D0EF52F
2016-10-24 08:16:37,745 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-444) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError)
__gwt$exception: <skipped>: e.reb(...) is undefined
at Unknown.Bv(Unknown Source)
at Unknown.Jv(Unknown Source)
at Unknown.D7(Unknown Source)
at Unknown.G7(Unknown Source)
at Unknown.Q6(Unknown Source)
at Unknown.nq(Unknown Source)
at Unknown.xq(Unknown Source)
at Unknown.E2(Unknown Source)
at Unknown.pq(Unknown Source)
at Unknown.y9e(Unknown Source)
at Unknown.anonymous(Unknown Source)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError)
__gwt$exception: <skipped>: e.reb(...) is undefined
=============================================================================
+++ This bug was initially created as a clone of Bug #1364152 +++
I don't have exact steps to reproduce. I just installed the engine from master, logged in and randomly clicked on stuff in the user portal just to check it was responding
# rpm -qa |grep userportal
ovirt-engine-userportal-debuginfo-4.1.0-0.0.master.20160802181918.gitd8decfe.fc24.noarch
ovirt-engine-userportal-4.1.0-0.0.master.20160802181918.gitd8decfe.fc24.noarch
client side:
Thu Aug 04 13:18:47 GMT+200 2016 org.ovirt.engine.ui.frontend.Frontend
WARNING: Failure while invoking runQuery [Query execution failed due to insufficient permissions., Query execution failed due to insufficient permissions_]
userportal-0.js:5832 Thu Aug 04 13:18:52 GMT+200 2016
SEVERE: Uncaught exceptioncom.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at Unknown.Ur(userportal-0.js@17729)
at Unknown.as(userportal-0.js@41)
at Unknown.wX(userportal-0.js@19)
at Unknown.zX(userportal-0.js@19)
at Unknown.KW(userportal-0.js@116)
at Unknown.Q$c(userportal-0.js@27)
at Unknown.$$c(userportal-0.js@13141)
at Unknown._S(userportal-0.js@147)
at Unknown.S$c(userportal-0.js@113)
at Unknown.Yhd(userportal-0.js@21707)
at Unknown.G6c(userportal-0.js@85)
at Unknown.D8c(userportal-0.js@46)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
at Unknown.Sy(userportal-0.js@20)
at Unknown.Chd(userportal-0.js@98)
at Unknown.dMi(userportal-28.js@147517)
at Unknown.Yhd(userportal-0.js@21325)
at Unknown.G6c(userportal-0.js@85)
at Unknown.F6c(userportal-0.js@60)
at Unknown.B8c(userportal-0.js@52)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at Unknown.BSm(userportal-28.js@58)
at Unknown.PSm(userportal-28.js@506365)
at Unknown.GLi(userportal-0.js@101)
at Unknown.Cyj(userportal-28.js@218011)
at Unknown.uT(userportal-0.js@27451)
at Unknown.UW(userportal-0.js@209)
at Unknown.KW(userportal-0.js@59)
at Unknown.Q$c(userportal-0.js@27)
at Unknown.$$c(userportal-0.js@13141)
at Unknown._S(userportal-0.js@147)
at Unknown.S$c(userportal-0.js@113)
at Unknown.Yhd(userportal-0.js@21707)
at Unknown.G6c(userportal-0.js@85)
at Unknown.D8c(userportal-0.js@46)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
at Unknown.Sy(userportal-0.js@20)
at Unknown.Chd(userportal-0.js@98)
at Unknown.dMi(userportal-28.js@147517)
at Unknown.Yhd(userportal-0.js@21325)
at Unknown.G6c(userportal-0.js@85)
at Unknown.F6c(userportal-0.js@60)
at Unknown.B8c(userportal-0.js@52)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
dRc @ userportal-0.js:5832
userportal-0.js:5832 Thu Aug 04 13:18:52 GMT+200 2016 remote
SEVERE: Uncaught exceptioncom.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at Unknown.Ur(userportal-0.js@17729)
at Unknown.as(userportal-0.js@41)
at Unknown.wX(userportal-0.js@19)
at Unknown.zX(userportal-0.js@19)
at Unknown.KW(userportal-0.js@116)
at Unknown.Q$c(userportal-0.js@27)
at Unknown.$$c(userportal-0.js@13141)
at Unknown._S(userportal-0.js@147)
at Unknown.S$c(userportal-0.js@113)
at Unknown.Yhd(userportal-0.js@21707)
at Unknown.G6c(userportal-0.js@85)
at Unknown.D8c(userportal-0.js@46)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
at Unknown.Sy(userportal-0.js@20)
at Unknown.Chd(userportal-0.js@98)
at Unknown.dMi(userportal-28.js@147517)
at Unknown.Yhd(userportal-0.js@21325)
at Unknown.G6c(userportal-0.js@85)
at Unknown.F6c(userportal-0.js@60)
at Unknown.B8c(userportal-0.js@52)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at Unknown.BSm(userportal-28.js@58)
at Unknown.PSm(userportal-28.js@506365)
at Unknown.GLi(userportal-0.js@101)
at Unknown.Cyj(userportal-28.js@218011)
at Unknown.uT(userportal-0.js@27451)
at Unknown.UW(userportal-0.js@209)
at Unknown.KW(userportal-0.js@59)
at Unknown.Q$c(userportal-0.js@27)
at Unknown.$$c(userportal-0.js@13141)
at Unknown._S(userportal-0.js@147)
at Unknown.S$c(userportal-0.js@113)
at Unknown.Yhd(userportal-0.js@21707)
at Unknown.G6c(userportal-0.js@85)
at Unknown.D8c(userportal-0.js@46)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
at Unknown.Sy(userportal-0.js@20)
at Unknown.Chd(userportal-0.js@98)
at Unknown.dMi(userportal-28.js@147517)
at Unknown.Yhd(userportal-0.js@21325)
at Unknown.G6c(userportal-0.js@85)
at Unknown.F6c(userportal-0.js@60)
at Unknown.B8c(userportal-0.js@52)
at Unknown._t(userportal-0.js@29)
at Unknown.du(userportal-0.js@57)
at Unknown.eval(userportal-0.js@54)
Server side:
2016-08-04 13:18:52,548 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-1) [] Permutation name: 75D1AC128862E90B608B8BD81303B1CE
2016-08-04 13:18:52,548 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-1) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_101]
at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_101]
at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:70) [gwt-servlet.jar:]
at com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:25) [gwt-servlet.jar:]
at com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:117) [gwt-servlet.jar:]
at com.google.gwt.user.client.ui.Widget.$fireEvent(Widget.java:127) [gwt-servlet.jar:]
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:127) [gwt-servlet.jar:]
at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:110) [gwt-servlet.jar:]
at com.google.gwt.user.client.ui.Widget.$onBrowserEvent(Widget.java:163) [gwt-servlet.jar:]
at com.google.gwt.user.client.ui.CustomButton.onBrowserEvent(CustomButton.java:631) [gwt-servlet.jar:]
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1648) [gwt-servlet.jar:]
at com.google.gwt.user.client.impl.DOMImplStandard.dispatchEvent(DOMImplStandard.java:320) [gwt-servlet.jar:]
at com.google.gwt.core.client.impl.Impl.apply(Impl.java:296) [gwt-servlet.jar:]
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) [gwt-servlet.jar:]
at Unknown.eval(userportal-0.js@54)
at com.google.gwt.dom.client.DOMImplStandard.$dispatchEvent(DOMImplStandard.java:68) [gwt-servlet.jar:]
at com.google.gwt.user.client.ui.CustomButton.$onClick(CustomButton.java:822) [gwt-servlet.jar:]
at org.ovirt.engine.ui.common.widget.dialog.AbstractDialogButton.onClick(AbstractDialogButton.java:45)
at com.google.gwt.user.client.ui.CustomButton.onBrowserEvent(CustomButton.java:631) [gwt-servlet.jar:]
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1648) [gwt-servlet.jar:]
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1666) [gwt-servlet.jar:]
at com.google.gwt.user.client.impl.DOMImplStandard.dispatchCapturedMouseEvent(DOMImplStandard.java:352) [gwt-servlet.jar:]
at com.google.gwt.core.client.impl.Impl.apply(Impl.java:296) [gwt-servlet.jar:]
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) [gwt-servlet.jar:]
at Unknown.eval(userportal-0.js@54)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel.$attachDisk(InstanceImageLineModel.java:169)
at org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel.executeCommand(InstanceImageLineModel.java:359)
at org.ovirt.engine.ui.uicommonweb.UICommand.$execute(UICommand.java:163)
at org.ovirt.engine.ui.common.widget.uicommon.instanceimages.InstanceImageLineEditor$2.onClick(InstanceImageLineEditor.java:87)
at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:55) [gwt-servlet.jar:]
at com.google.web.bindery.event.shared.SimpleEventBus.$doFire(SimpleEventBus.java:173) [gwt-servlet.jar:]
... 21 more
--- Additional comment from Yaniv Kaul on 2016-08-04 12:40:05 EDT ---
Based on:
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError)
__gwt$exception: <skipped>: Cannot read property 'k' of null
at org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel.$attachDisk(InstanceImageLineModel.java:169)
Assuming it is storage.
--- Additional comment from Tal Nisan on 2016-08-08 06:09:30 EDT ---
Looking at the frontend code I don't see a reason why the query should fail, Sandro, can you please reproduce somehow and attach and Engine log as well?
It seems like the exception should pop around the new/edit VM dialog in the instance images part of the dialog
--- Additional comment from Allon Mureinik on 2016-08-08 06:35:06 EDT ---
The error seems like a user portal widget is attempting to call an admin query. Has anything changed there in the recent future?
--- Additional comment from Tal Nisan on 2016-08-08 09:09:19 EDT ---
Not that I recall, tried to do some actions around that area to trigger something but didn't manage to reproduce and as I mentioned looking around the frontend code I didn't see any query that should fail.
Best course of action is to get the Engine log since the frontend failure doesn't list which exact query failed.
--- Additional comment from Sandro Bonazzola on 2016-08-09 03:21:47 EDT ---
Steps to reproduce:
Access User Portal with admin@internal user
Go to extended tab
Go to new VM
You'll see Instance images enabled with both Attach and Create buttons enabled even if no datacenter is active.
Hit Attach -> exception raised.