Bug 2121083 - Error changing cluster with default template
Summary: Error changing cluster with default template
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.5.2.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.5.3
: ---
Assignee: Arik
QA Contact: sshmulev
URL:
Whiteboard:
Depends On:
Blocks: 2134549
TreeView+ depends on / blocked
 
Reported: 2022-08-24 12:22 UTC by brad.breitenstein
Modified: 2022-11-16 06:45 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-4.5.3
Clone Of:
Environment:
Last Closed: 2022-11-16 06:45:33 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.5?
ahadas: blocker-


Attachments (Terms of Use)
Web error from the browser. (2.04 KB, text/plain)
2022-08-24 12:22 UTC, brad.breitenstein
brad.breitenstein: review?
Details


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 634 0 None open Fix error when changing cluster of diskless vms 2022-09-05 19:39:11 UTC
Red Hat Issue Tracker RHV-47858 0 None None None 2022-08-24 12:27:47 UTC

Description brad.breitenstein 2022-08-24 12:22:39 UTC
Created attachment 1907368 [details]
Web error from the browser.

Created attachment 1907368 [details]
Web error from the browser.

Description of problem:

Everytime I create a new vm and change the cluster in the background an error pops up.  If i change the cluster back to the original it reports an error again.  This only happens when the default template is selected.  If i change to a different template and change the cluster there is no error.  This all started when I added in a new host and created a new cluster.

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

4.5.2.2-1.el8

How reproducible:

Every single time

Steps to Reproduce:
1.Click on Virtual Machines
2.Click on New
3.Change the Cluster

Actual results:

Error pops up int the background behind the new VM window. 

Expected results:

No error

Additional info:

The web error I am getting is attached to this bug. "exception caught: (TypeError) : Cannot read properties of undefined (reading 'Kh')"

There are no errors in the engine.log

Here is what the ui.log reports.

2022-08-24 07:46:20,920-04 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-25) [] Permutation name: 872EE01DC49AC3F81586694F1584D19D
2022-08-24 07:46:20,920-04 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-25) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read properties of undefined (reading 'Kh')
        at java.lang.Throwable.Throwable(Throwable.java:72)
        at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32)
        at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:64)
        at Unknown.new t8(webadmin-0.js)
        at com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:117)
        at com.google.gwt.user.client.ui.Widget.$fireEvent(Widget.java:127)
        at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:127)
        at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:40)
        at org.ovirt.engine.ui.common.widget.editor.ListModelListBox.$lambda$2(ListModelListBox.java:246)
        at org.ovirt.engine.ui.common.widget.editor.ListModelListBox$lambda$2$Type.execute(ListModelListBox.java:246)
        at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:167)
        at com.google.gwt.core.client.impl.SchedulerImpl.$flushPostEventPumpCommands(SchedulerImpl.java:338)
        at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:76)
        at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:140)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:306)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:345)
        at Unknown.eval(webadmin-0.js)
        at Unknown.d(webadmin-0.js)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read properties of undefined (reading 'Kh')
        at org.ovirt.engine.ui.common.widget.uicommon.storage.DisksAllocationView.$addDiskList(DisksAllocationView.java:190)
        at org.ovirt.engine.ui.common.widget.uicommon.storage.DisksAllocationView.$lambda$0(DisksAllocationView.java:179)
        at org.ovirt.engine.ui.common.widget.uicommon.storage.DisksAllocationView$lambda$0$Type.eventRaised(DisksAllocationView.java:179)
        at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
        at org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.$onPropertyChanged(DisksAllocationModel.java:310)
        at org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.$setQuotaEnforcementType(DisksAllocationModel.java:121)
        at org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.$compatibilityVersionChanged(UnitVmModel.java:2384)
        at org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.eventRaised(UnitVmModel.java:2223)
        at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
        at org.ovirt.engine.ui.uicommonweb.models.ListModel.$setSelectedItem(ListModel.java:82)
        at org.ovirt.engine.ui.common.widget.uicommon.popup.AbstractVmPopupWidget_dataCenterWithClustersList_selectedItem_Context.$setInModel(AbstractVmPopupWidget_dataCenterWithClustersList_selectedItem_Context.java:19)
        at org.ovirt.engine.ui.common.widget.uicommon.popup.AbstractVmPopupWidget_dataCenterWithClustersList_selectedItem_Context.setInModel(AbstractVmPopupWidget_dataCenterWithClustersList_selectedItem_Context.java:19)
        at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$setInModel(UiCommonEditorVisitor.java:154)
        at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$lambda$0(UiCommonEditorVisitor.java:60)
        at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor$lambda$0$Type.onValueChange(UiCommonEditorVisitor.java:60)
        at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:127)
        at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:76)
        at com.google.web.bindery.event.shared.SimpleEventBus.$doFire(SimpleEventBus.java:173)

Comment 1 brad.breitenstein 2022-08-24 12:24:42 UTC
There is no issue actually adding a new VM there is just an error that pops up.  The vm still adds correctly even if I change clusters.

Comment 2 RHEL Program Management 2022-08-25 07:00:17 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 3 brad.breitenstein 2022-08-29 17:39:29 UTC
Is there something you need me to do?  I can provide more logs.  Please let me know what you need me to provide.

Comment 4 Lucia Jelinkova 2022-08-31 12:28:31 UTC
Looks like storage bug, maybe introduced in https://github.com/oVirt/ovirt-engine/pull/495

Comment 5 brad.breitenstein 2022-08-31 12:51:45 UTC
Just an FYI.  I just updated the Ovirt Mananger to Version 4.5.2.4-1.el8 and it is still happening.

Comment 6 RHEL Program Management 2022-09-05 14:14:32 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 7 Arik 2022-09-05 19:39:57 UTC
(In reply to Lucia Jelinkova from comment #4)
> Looks like storage bug, maybe introduced in
> https://github.com/oVirt/ovirt-engine/pull/495

That's right :)

Comment 10 sshmulev 2022-09-29 08:39:40 UTC
Verified.

Checked it on rhv-4.5.3-0.1-DS-nightly and could reproduce it.

Did the same steps as in the reproducible build and the issue is not seen there
Verified on version:
engine-4.5.3-0.2.el8ev
vdsm-4.50.3.1-1.el8ev


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