Bug 1705727 - Cannot read property 'a' of undefined when approving host
Summary: Cannot read property 'a' of undefined when approving host
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.Core
Version: 4.3.6.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: Dana
QA Contact: Pavel Novotny
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-02 20:10 UTC by scott
Modified: 2020-05-20 20:03 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:03:56 UTC
oVirt Team: Infra
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 104309 0 master MERGED webadmin: Set the cluster for "approve host" model 2020-09-29 07:10:28 UTC

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.


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