Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1705727

Summary: Cannot read property 'a' of undefined when approving host
Product: [oVirt] ovirt-engine Reporter: scott
Component: Frontend.CoreAssignee: Dana <delfassy>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.6.6CC: bugs, lleistne, mperina, scott, sgratch
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:03:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description scott 2019-05-02 20:10:59 UTC
Description of problem:
when a host is added to the engine using vdsm-tool register, approving that host in the UI is throwing the following error

2019-05-02 14:34:16,771-05 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-8) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'a' of undefined
    at org.ovirt.engine.ui.common.presenter.PluginActionButtonHandler.$getButtons(PluginActionButtonHandler.java:45)
    at org.ovirt.engine.ui.common.presenter.AbstractTabPresenter.$lambda$0(AbstractTabPresenter.java:46)
    at org.ovirt.engine.ui.common.presenter.AbstractTabPresenter$lambda$0$Type.execute(AbstractTabPresenter.java:46)
    at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:167) [gwt-servlet.jar:]
    at com.google.gwt.core.client.impl.SchedulerImpl.$flushPostEventPumpCommands(SchedulerImpl.java:338) [gwt-servlet.jar:]
    at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:76) [gwt-servlet.jar:]
    at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:140) [gwt-servlet.jar:]
    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.eval(webadmin-0.js)
    at Unknown.d(webadmin-0.js)


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


How reproducible:
100%


Steps to Reproduce:
1. vdsm-tool register engine
2. navigate to the host tab in the administration portal
3. select the host in pending approval
4. click approve


Actual results:
Cannot read property 'a' of undefined is displayed


Expected results:
Host edit dialog box is displayed to select the cluster to add the host to


Additional info:

Comment 1 Sharon Gratch 2019-08-06 12:44:57 UTC
I think it is a RHV Host team issue so re-assigning.

Comment 2 Sandro Bonazzola 2019-08-07 13:01:14 UTC
Martin, any clue on this? Doesn't look like something done within node team.

Comment 3 Dana 2019-09-24 12:30:51 UTC
scott, I wasn't able to reproduce, Can you try to reproduce this with the latest 4.3.6 version?

Comment 4 scott 2019-09-24 13:32:12 UTC
I don't have a location that i can test an RC build at the moment, however, I can confirm that the issue does still occur on 4.3.5. As a note, the environment that this happens does not have gluster installed, we have seen similar behavior in the past steming from the assumption of having gluster.

Comment 8 scott 2019-10-07 12:42:19 UTC
I can confirm that this issue does indeed still exist on 4.3.6

Comment 11 scott 2019-10-17 22:19:32 UTC
engine.log does not emit any messages when this error occurs.

==> ui.log <==
2019-10-17 17:14:42,058-05 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-64) [] Permutation name: 627D5F92C40CC5045AA443D826D6E415
2019-10-17 17:14:42,058-05 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-64) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'n' of undefined
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel.$updateModelFromVds(HostModel.java:1186)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.$lambda$23(HostListModel.java:1302)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel$lambda$23$Type.onSuccess(HostListModel.java:1302)
	at org.ovirt.engine.ui.frontend.Frontend$1.$onSuccess(Frontend.java:227) [frontend.jar:]
	at org.ovirt.engine.ui.frontend.Frontend$1.onSuccess(Frontend.java:227) [frontend.jar:]
	at org.ovirt.engine.ui.frontend.communication.OperationProcessor$1.$onSuccess(OperationProcessor.java:133) [frontend.jar:]
	at org.ovirt.engine.ui.frontend.communication.OperationProcessor$1.onSuccess(OperationProcessor.java:133) [frontend.jar:]
	at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.$onSuccess(GWTRPCCommunicationProvider.java:270) [frontend.jar:]
	at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.onSuccess(GWTRPCCommunicationProvider.java:270) [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.eval(webadmin-0.js)
	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.eval(webadmin-0.js)

Comment 13 Sharon Gratch 2019-11-05 16:08:35 UTC
The patch was merged but I'm not sure if it solved the original exception problem since it's not reproduced for me.
I will mark the bug as MODIFIED and in case the issue will be reproduced then please re-open.

Comment 14 Pavel Novotny 2020-02-17 21:59:05 UTC
Verified with
ovirt-engine-4.4.0-0.20.master.el7.noarch
ovirt-engine-webadmin-portal-4.4.0-0.20.master.el7.noarch


Approving host in the Webadmin portal does not cause any UI exception.
Tried with a 4.3 host (vdsm-4.30.40-1.el7ev) and approving it to the Default (4.4) cluster as well as to a newly created 4.3 cluster.

Comment 15 Sandro Bonazzola 2020-05-20 20:03:56 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.