Bug 1398898 - [z-stream clone - 4.0.7] cannot edit host: Uncaught exception occurred
Summary: [z-stream clone - 4.0.7] cannot edit host: Uncaught exception occurred
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.0.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.0.7
: ---
Assignee: Alexander Wels
QA Contact: Pavel Novotny
URL:
Whiteboard:
: 1404337 1411231 (view as bug list)
Depends On: 1375646
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-27 06:58 UTC by rhev-integ
Modified: 2020-04-15 14:54 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1375646
Environment:
Last Closed: 2017-03-16 15:29:30 UTC
oVirt Team: UX
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2806281 0 None None None 2016-12-14 15:26:51 UTC
Red Hat Product Errata RHBA-2017:0542 0 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0.7 2017-03-16 19:25:04 UTC
oVirt gerrit 64938 0 master MERGED webadmin: Fix Number format exception 2020-02-13 18:13:29 UTC
oVirt gerrit 65330 0 None MERGED webadmin: Fix Number format exception 2020-02-13 18:13:29 UTC

Comment 1 rhev-integ 2016-11-27 06:58:33 UTC
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]#

This comment was originaly posted by dmoessne

Comment 3 rhev-integ 2016-11-27 06:58:39 UTC
Created attachment 1200538 [details]
screenshot showing the error

This comment was originaly posted by dmoessne

Comment 4 rhev-integ 2016-11-27 06:58:44 UTC
Created attachment 1200539 [details]
logcollector from the engine

This comment was originaly posted by dmoessne

Comment 5 rhev-integ 2016-11-27 06:58:50 UTC
Daniel, how frequently does it reproduce? 
Can we access your environment?

This comment was originaly posted by oourfali

Comment 6 rhev-integ 2016-11-27 06:58:55 UTC
Daniel - I thought you've had a much better stack available using the debuginfo?

This comment was originaly posted by ykaul

Comment 7 rhev-integ 2016-11-27 06:59:00 UTC
@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)

This comment was originaly posted by dmoessne

Comment 8 rhev-integ 2016-11-27 06:59:06 UTC
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.

This comment was originaly posted by awels

Comment 9 rhev-integ 2016-11-27 06:59:10 UTC
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)

This comment was originaly posted by ykaul

Comment 10 rhev-integ 2016-11-27 06:59:16 UTC
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)

~~~

This comment was originaly posted by dmoessne

Comment 11 rhev-integ 2016-11-27 06:59:22 UTC
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.

This comment was originaly posted by awels

Comment 12 rhev-integ 2016-11-27 06:59:27 UTC
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)

This comment was originaly posted by dmoessne

Comment 13 rhev-integ 2016-11-27 06:59:33 UTC
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?

This comment was originaly posted by awels

Comment 14 rhev-integ 2016-11-27 06:59:38 UTC
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)

This comment was originaly posted by dmoessne

Comment 15 rhev-integ 2016-11-27 06:59:44 UTC
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?

This comment was originaly posted by awels

Comment 16 rhev-integ 2016-11-27 06:59:50 UTC
Created attachment 1205600 [details]
fence agent showing it is not allowing me to save.

This comment was originaly posted by awels

Comment 17 rhev-integ 2016-11-27 06:59:55 UTC
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.

This comment was originaly posted by awels

Comment 19 rhev-integ 2016-11-27 07:00:06 UTC
@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

This comment was originaly posted by awels

Comment 20 rhev-integ 2016-11-27 07:00:11 UTC
I updated the patch to include a check for port value being integer before the UI allows you to save the 'options' field.

This comment was originaly posted by awels

Comment 21 rhev-integ 2016-11-27 07:00:17 UTC
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...

This comment was originaly posted by pnovotny

Comment 22 rhev-integ 2016-11-27 07:00:23 UTC
Created attachment 1219844 [details]
ui.log with exception (verification#1)

This comment was originaly posted by pnovotny

Comment 23 rhev-integ 2016-11-27 07:00:28 UTC
Fixed the issues found by pavel for 4.0.6

This comment was originaly posted by awels

Comment 26 Sandro Bonazzola 2016-12-12 11:03:09 UTC
This bug is targeted 4.0.7 but it appears that the fix has been included in ovirt-engine-4.0.6.3. Please crosscheck and re-target if it's fixed in 4.0.6.

Comment 27 Oved Ourfali 2016-12-14 15:22:54 UTC
(In reply to Sandro Bonazzola from comment #26)
> This bug is targeted 4.0.7 but it appears that the fix has been included in
> ovirt-engine-4.0.6.3. Please crosscheck and re-target if it's fixed in 4.0.6.

We found another issue with it, that's why it didn't get officially in, and now there is another issue found that we'll fix in 4.0.7.

To avoid confusion I suggest to close the new one as a duplicate of this one, and fix the new issue here as well.

Comment 28 Oved Ourfali 2016-12-14 15:24:43 UTC
*** Bug 1404337 has been marked as a duplicate of this bug. ***

Comment 31 Oved Ourfali 2017-01-09 13:27:47 UTC
*** Bug 1411231 has been marked as a duplicate of this bug. ***

Comment 33 Pavel Novotny 2017-02-03 15:14:26 UTC
Verified in
rhevm-4.0.7-0.1.el7ev.noarch
ovirt-engine-webadmin-portal-4.0.7-0.1.el7ev.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.

Comment 35 errata-xmlrpc 2017-03-16 15:29:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://rhn.redhat.com/errata/RHBA-2017-0542.html


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