Created attachment 1200537 [details] ui.log, showing the exception Description of problem: When trying to edit a host I get an exception: "Uncaught exception occurred. Please try reloading the page. Details: For input string: "rhvh01" Please have your administrator check the UI logs" Restarting engine or even the whole hosted engine Vm does not solve the issue. Version-Release number of selected component (if applicable): Red Hat Virtualization Manager Version: 4.0.3-0.1.el7ev How reproducible: Steps to Reproduce: 1. Log in to Web UI 2. Goto Tab Hosts 3. Mark host to edit 4. Either press "Edit" in heading or right klich and choose "Edit" -> exception Actual results: Exception shown in Browser UI, so unable to edit the host atm Expected results: Being able to edit the host Additional info: - Following https://www.ovirt.org/develop/developer-guide/engine/engine-debug-obfuscated-ui/ shows the following: SEVERE: Uncaught exceptionjava.lang.NumberFormatException: For input string: "rhvh01" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) webadmin:1:12869 [root@manager ovirt-engine]# grep ^Bv, /usr/share/ovirt-engine/gwt-symbols/webadmin/symbolMaps/3CE1853FC83710B56120CE90AA643DC9.symbolMap Bv,java.lang.Throwable::fillInStackTrace()Ljava/lang/Throwable;,java.lang.Throwable,fillInStackTrace,com/google/gwt/emul/java/lang/Throwable.java,114,0 [root@manager ovirt-engine]#
Created attachment 1200538 [details] screenshot showing the error
Created attachment 1200539 [details] logcollector from the engine
Daniel, how frequently does it reproduce? Can we access your environment?
Daniel - I thought you've had a much better stack available using the debuginfo?
@Oved, it happens every time since the first time, in other words, I am not able to edit the host at the moment. The env is running at home, so sorry, no access for you. I've shut down the whole env, but will start it again tonight and see if the problem is gone. Again, I was not able to edit my hosts yesterday even after rebooting the HE. @Yaniv, this one: in web console: manager.local Tue Sep 13 16:23:48 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [redhat_support_plugin_rhev] has registered the event handler objectwebadmin:1:12954 Tue Sep 13 16:23:48 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [redhat_support_plugin_rhev] reports in as readywebadmin:1:12954 Tue Sep 13 16:23:48 GMT+200 2016 org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager INFO: Context-sensitive help is installed on the server. The following locales are available: [en-US]webadmin:1:12954 Tue Sep 13 16:23:48 GMT+200 2016 org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager INFO: Context-sensitive help for your locale, en-US, is installed and loaded.webadmin:1:12954 Tue Sep 13 16:23:48 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [dashboard] has registered the event handler objectwebadmin:1:12954 Tue Sep 13 16:23:48 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [dashboard] reports in as readywebadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Initializing plugin [dashboard]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UiInit] for plugin [dashboard]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [dashboard] is initialized and in use nowwebadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UserLogin] for plugin [dashboard]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Initializing plugin [redhat_support_plugin_rhev]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UiInit] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [redhat_support_plugin_rhev] is initialized and in use nowwebadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UserLogin] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [VirtualMachineSelectionChange] for plugin [dashboard]webadmin:1:12954 Tue Sep 13 16:23:51 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [VirtualMachineSelectionChange] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Tue Sep 13 16:23:56 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [HostSelectionChange] for plugin [dashboard]webadmin:1:12954 Tue Sep 13 16:23:56 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [HostSelectionChange] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Tue Sep 13 16:23:57 GMT+200 2016 SEVERE: Uncaught exceptionjava.lang.NumberFormatException: For input string: "rhvh01" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) webadmin:1:12869 Tue Sep 13 16:23:57 GMT+200 2016 remote SEVERE: Uncaught exceptionjava.lang.NumberFormatException: For input string: "rhvh01" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source)
Without having a better stack trace (by installing the symbol maps) I can't tell that well what is going on. But it appears you have rhvh01 in a number field. There are only 3 integer fields in the entire object: ssh port (unlikely, its an integer in the database), vdsm port (unlikely, its an integer in the database), spm priority (unlikely, traced the type as integer all the way to backend). So not entirely sure why or where we are trying to convert 'rhvh01' to a Number. Can you install the symbol maps using this: yum install ovirt-engine-webadmin-portal-debuginfo ovirt-engine-userportal-debuginfo And do it again. The browser console will look the same, but on the engine machine in /var/log/ovirt-engine/ui.log it should now have a deobfuscated stack trace that can point us in the direction of what is actually going on.
From the mailing list: 2016-09-13 16:24:00,390 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-8) [] Uncaught exception: java.lang.NumberFormatException: For input string: "rhvh01" at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_101] at java.lang.Throwable.Throwable(Throwable.java:54) [rt.jar:1.8.0_101] at java.lang.Exception.Exception(Exception.java:28) [rt.jar:1.8.0_101] at java.lang.RuntimeException.RuntimeException(RuntimeException.java:28) [rt.jar:1.8.0_101] at java.lang.IllegalArgumentException.IllegalArgumentException(IllegalArgumentException.java:28) [rt.jar:1.8.0_101] at java.lang.NumberFormatException.NumberFormatException(NumberFormatException.java:32) [rt.jar:1.8.0_101] at java.lang.Number.__parseAndValidateInt(Number.java:202) [rt.jar:1.8.0_101] at org.ovirt.engine.ui.uicommonweb.models.hosts.FenceAgentModel.$setPmOptionsMapInternal(FenceAgentModel.java:220) at org.ovirt.engine.ui.uicommonweb.models.hosts.FenceAgentModel.$setPmOptionsMap(FenceAgentModel.java:216) at org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel.$updateModelFromVds(HostModel.java:1097) at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel$9.onSuccess(HostListModel.java:766) at org.ovirt.engine.ui.frontend.Frontend$2.$onSuccess(Frontend.java:238) [frontend.jar:] at org.ovirt.engine.ui.frontend.Frontend$2.onSuccess(Frontend.java:238) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:139) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:139) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$3$1.$onSuccess(GWTRPCCommunicationProvider.java:160) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$3$1.onSuccess(GWTRPCCommunicationProvider.java:160) [frontend.jar:] at com.google.gwt.rpc.client.impl.RpcCallbackAdapter.onResponseReceived(RpcCallbackAdapter.java:72) [gwt-servlet.jar:] at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:237) [gwt-servlet.jar:] at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:] at Unknown.lyf/c.onreadystatechange<(Unknown Source) 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.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source)
Alex, I have already installed these packages and attached the ui.log to this case when opened. Thought there is sufficient information in there if not, I'm happy to collect more information. Anyhow, I have rebooted the whole env and still get this error for both host, i.e. I connot edit any host atm. Before this issue happened the first time I was able to edit hosts (in fact I added fencing) but at some point this issue started and since that time I always get this error and I am not able to edit the host anymore via UI. Another trace when I try to edit: * web console : ~~~ manager.local Thu Sep 15 08:52:25 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [redhat_support_plugin_rhev] has registered the event handler objectwebadmin:1:12954 Thu Sep 15 08:52:25 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [redhat_support_plugin_rhev] reports in as readywebadmin:1:12954 Thu Sep 15 08:52:25 GMT+200 2016 org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager INFO: Context-sensitive help is installed on the server. The following locales are available: [en-US]webadmin:1:12954 Thu Sep 15 08:52:25 GMT+200 2016 org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager INFO: Context-sensitive help for your locale, en-US, is installed and loaded.webadmin:1:12954 Thu Sep 15 08:52:26 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [dashboard] has registered the event handler objectwebadmin:1:12954 Thu Sep 15 08:52:26 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [dashboard] reports in as readywebadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Initializing plugin [dashboard]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UiInit] for plugin [dashboard]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [dashboard] is initialized and in use nowwebadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UserLogin] for plugin [dashboard]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Initializing plugin [redhat_support_plugin_rhev]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UiInit] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Plugin [redhat_support_plugin_rhev] is initialized and in use nowwebadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [UserLogin] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [VirtualMachineSelectionChange] for plugin [dashboard]webadmin:1:12954 Thu Sep 15 08:52:29 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [VirtualMachineSelectionChange] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Thu Sep 15 08:52:37 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [HostSelectionChange] for plugin [dashboard]webadmin:1:12954 Thu Sep 15 08:52:37 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [HostSelectionChange] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Thu Sep 15 08:52:42 GMT+200 2016 SEVERE: Uncaught exceptionjava.lang.NumberFormatException: For input string: "rhvh01" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) webadmin:1:12869 Thu Sep 15 08:52:42 GMT+200 2016 remote SEVERE: Uncaught exceptionjava.lang.NumberFormatException: For input string: "rhvh01" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) webadmin:1:12869 Thu Sep 15 08:53:08 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [HostSelectionChange] for plugin [dashboard]webadmin:1:12954 Thu Sep 15 08:53:08 GMT+200 2016 org.ovirt.engine.ui.webadmin.plugin.PluginManager INFO: Invoking event handler function [HostSelectionChange] for plugin [redhat_support_plugin_rhev]webadmin:1:12954 Thu Sep 15 08:53:10 GMT+200 2016 SEVERE: Uncaught exception (2x)java.lang.NumberFormatException: For input string: "rhvh02" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) webadmin:1:12869 TypeError: c is null webadmin:31:43 Thu Sep 15 08:53:17 GMT+200 2016 SEVERE: Uncaught exception (3x)java.lang.NumberFormatException: For input string: "rhvh02" at Unknown.Bv(Unknown Source) at Unknown.Av(Unknown Source) at Unknown.Gv(Unknown Source) at Unknown.Iv(Unknown Source) at Unknown.eLf(Unknown Source) at Unknown.vMf(Unknown Source) at Unknown.IJf(Unknown Source) at Unknown.mQp(Unknown Source) at Unknown.lQp(Unknown Source) at Unknown.fPp(Unknown Source) at Unknown.XVp(Unknown Source) at Unknown.p$n(Unknown Source) at Unknown.s$n(Unknown Source) at Unknown.m1n(Unknown Source) at Unknown.p1n(Unknown Source) at Unknown.w0n(Unknown Source) at Unknown.z0n(Unknown Source) at Unknown.kLe(Unknown Source) at Unknown.Q7(Unknown Source) at Unknown.f8(Unknown Source) at Unknown.lyf/c.onreadystatechange<(Unknown Source) at Unknown.Px(Unknown Source) at Unknown.Tx(Unknown Source) at Unknown.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) webadmin:1:12869 uncaught exception: java.lang.IllegalStateException: This widget's parent does not implement HasWidgets ~~~ and ui.log ~~~ 2016-09-15 08:52:43,029 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-5) [] Permutation name: 3CE1853FC83710B56120CE90AA643DC9 2016-09-15 08:52:43,030 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-5) [] Uncaught exception: java.lang.NumberFormatException: For input string: "rhvh01" at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_101] at java.lang.Throwable.Throwable(Throwable.java:54) [rt.jar:1.8.0_101] at java.lang.Exception.Exception(Exception.java:28) [rt.jar:1.8.0_101] at java.lang.RuntimeException.RuntimeException(RuntimeException.java:28) [rt.jar:1.8.0_101] at java.lang.IllegalArgumentException.IllegalArgumentException(IllegalArgumentException.java:28) [rt.jar:1.8.0_101] at java.lang.NumberFormatException.NumberFormatException(NumberFormatException.java:32) [rt.jar:1.8.0_101] at java.lang.Number.__parseAndValidateInt(Number.java:202) [rt.jar:1.8.0_101] at org.ovirt.engine.ui.uicommonweb.models.hosts.FenceAgentModel.$setPmOptionsMapInternal(FenceAgentModel.java:220) at org.ovirt.engine.ui.uicommonweb.models.hosts.FenceAgentModel.$setPmOptionsMap(FenceAgentModel.java:216) at org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel.$updateModelFromVds(HostModel.java:1097) at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel$9.onSuccess(HostListModel.java:766) at org.ovirt.engine.ui.frontend.Frontend$2.$onSuccess(Frontend.java:238) [frontend.jar:] at org.ovirt.engine.ui.frontend.Frontend$2.onSuccess(Frontend.java:238) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:139) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:139) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$3$1.$onSuccess(GWTRPCCommunicationProvider.java:160) [frontend.jar:] at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$3$1.onSuccess(GWTRPCCommunicationProvider.java:160) [frontend.jar:] at com.google.gwt.rpc.client.impl.RpcCallbackAdapter.onResponseReceived(RpcCallbackAdapter.java:72) [gwt-servlet.jar:] at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:237) [gwt-servlet.jar:] at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:] at Unknown.lyf/c.onreadystatechange<(Unknown Source) 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.Sx/<(Unknown Source) at Unknown.anonymous(Unknown Source) ~~~
The unobfuscated stack trace helps a lot. Question, do you have any fence agents configured on your hosts? Looking at the stack trace it appears it is trying to parse rhvh01(2) into the port value of the options field. Since the options field is a string this is possible. If you are willing to run some SQL queries we can look up what is in your database. I suspect we will find something like: port=rhvh01 or port=rhvh02 in there. Let me know if you are able to do that, and I can give you the sql statements to look up values in the database.
exactly, thinking what I have done before that happened brought me to exact this conclusion. After I have added the fence agent this happened. Please note, as this is a virt env, I have configured a cusom fence agent like so: engine-config -s CustomVdsFenceType="xvm" engine-config -s CustomVdsFenceOptionMapping="xvm:" systemctl restart ovirt-engine and the fence_vxm needs port= to fence the domain After I add the fence agent the problem starts. I have removed and readded rhvh01 which works perfectly. After adding fencing in a separate step, problems start again, so I can confirm you're right, the port= in the options field seems to be the problem. (I thought this was working with 3.6)
So you used engine config to configure the fencing agents on the hosts? I wasn't aware that was possible. Or you defined a fencing agent using the engine-config and then used the fencing agents in the host edit dialog?
Alexander, I followed: https://www.ovirt.org/develop/developer-guide/engine/custom-fencing/ so I did the following on command line (on the engine): $ engine-config -s CustomVdsFenceType="xvm" $ engine-config -s CustomVdsFenceOptionMapping="xvm:" $ systemctl restart ovirt-engine After that I do have a new fencing agent in UI (kvm) which I configured and tested, which was successful but after that I was no longer able to edit the host (although fencing worked). just another remark on this: - If I add the port= as an option to e.g. apc fence agent, the same issue is shown, i.e. I cannot edit that host any more. Could it be possible that port= is preserved internally ? (using domain= instead of port= works for my problem)
So I am not the right person to ask about the fence agents. I can however fix the immediate problem that the UI is throwing an exception. The question is really how did you manage to get port=rhvh01/02 into the options field. I added the custom fence agent to my setup as well, then I added a fence agent to a host, and the dialog would not let me save the new fence agent if I left the port blank. Can you post a screenshot of what you put in the options field in the fence agent dialog?
Created attachment 1205600 [details] fence agent showing it is not allowing me to save.
Daniel, can you post a screenshot (or video) of exactly what you do, like I commented above I was unable to save the fencing agent if I didn't fill out the options field appropriately. I have posted a patch that fixes the exception, but it doesn't solve the underlying cause. Namely somehow something bad entered the database and I would really like to understand what happened.
@Daniel, Thanks for the video, its quite clear the problem is that it is allowing port=rvh01 as a value in the options. And then tries to parse that value back to an integer. I will make a patch to validate that port=rvh01 won't be accepted (it needs to be an integer). Thanks, Alexander
I updated the patch to include a check for port value being integer before the UI allows you to save the 'options' field.
FailedQA in rhevm-4.0.5.5-0.1.el7ev.noarch ovirt-engine-webadmin-portal-4.0.5.5-0.1.el7ev.noarch Reproduced in Firefox 45.4 ESR Firefox 49 Chromium 53 Verification steps: 1. Set up custom fencing (*optional, it actually doesn't affect the result as I've found out): engine-config -s CustomVdsFenceType="xvm" engine-config -s CustomVdsFenceOptionMapping="xvm:" systemctl restart ovirt-engine 2. In webadmin, select a host and click Edit -> go to Power Management side-tab. 3. Enable PM and click '+' to add a PM agent. 4. Enter: Address: 1.1.1.1 User Name: admin Password: ****** Type: xvm Options: port=rhv01 5. Click OK -> Dialog is not submitted, Options field tooltip says "This field must contains an integer..." (correct behaviour). 6. Change Options value from 'port=rhv01' to 'port=1'. 7. Click OK -> No validation error, but 'Edit fence agent' dialog is not submitted. But - in the 'Edit Host' dialog in the background, the PM agent has been added. 8. Click OK again -> Dialog is not submitted and UI exception is thrown: ui.log: 2016-11-11 18:41:27,323 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-50) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) __gwt$exception: <skipped>: Cannot read property 'i' of null at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_111] at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_111] 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:] ... ... Attaching ui.log with complete traceback...
Created attachment 1219844 [details] ui.log with exception (verification#1)
Fixed the issues found by pavel for 4.0.6
Verified in ovirt-engine-webadmin-portal-4.1.0.3-0.1.el7.noarch rhevm-4.1.0.3-0.1.el7.noarch Verification steps: 1. In webadmin, select a host and click Edit -> go to Power Management side-tab. 3. Enable PM and click '+' to add a PM agent. 4. Enter: Address: 1.1.1.1 User Name: admin Password: ****** Type: ipmilan Options: port=rhv01 5. Click OK -> Dialog is not submitted, Options field tooltip says "This field must contains an integer..." (correct behaviour). 6. Change Options value from 'port=rhv01' to 'port=1'. 7. Click OK -> Dialog is submitted, no UI exception is thrown.