Bug 1607131 - UI exception is thrown when trying to create a VM from template with CD-ROM from ISO attached to the template
Summary: UI exception is thrown when trying to create a VM from template with CD-ROM f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.6
: 4.2.6
Assignee: shani
QA Contact: Shir Fishbain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-22 10:04 UTC by Eyal Shenitzky
Modified: 2018-09-03 15:09 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.2.6
Clone Of:
Environment:
Last Closed: 2018-09-03 15:09:44 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 93336 0 master MERGED webadmin: Set CD images for a template with ISO 2018-07-29 08:47:12 UTC
oVirt gerrit 93356 0 ovirt-engine-4.2 MERGED webadmin: Set CD images for a template with ISO 2018-07-29 12:52:20 UTC

Description Eyal Shenitzky 2018-07-22 10:04:57 UTC
Description of problem:

When creating a VM from a template that contains CD-ROM from ISO, the window for creating the new VM in the UI doesn't load and an exception is thrown in the 
ui.log:

2018-07-17 15:44:33,621+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-53) [] Permutation name: 2BBBB4BF17231F5B4D2177B951873728
2018-07-17 15:44:33,621+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-53) [] Uncaught exception: com.google.gwt.core.client.Jav
aScriptException: (TypeError) : Cannot read property 'fh' of null
        at Unknown.SZp(webadmin-0.js)
        at Unknown.x0p(webadmin-0.js)
        at Unknown.lKp(webadmin-0.js)
        at Unknown.oKp(webadmin-0.js)
        at Unknown.LMp(webadmin-0.js)
        at Unknown.OMp(webadmin-0.js)
        at Unknown.FLp(webadmin-0.js)
        at Unknown.qMp(webadmin-0.js)
        at Unknown.e3e(webadmin-0.js)
        at Unknown.L0(webadmin-0.js)
        at Unknown.$0(webadmin-0.js)
        at Unknown.eval(webadmin-0.js)
        at Unknown.Pu(webadmin-0.js)
        at Unknown.Su(webadmin-0.js)
        at Unknown.eval(webadmin-0.js)

2018-07-17 15:45:23,659+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-8) [] Permutation name: 2BBBB4BF17231F5B4D2177B951873728
2018-07-17 15:45:23,659+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-8) [] Uncaught exception: com.google.gwt.core.client.Java
ScriptException: (TypeError) : Cannot read property 'fh' of null
        at Unknown.SZp(webadmin-0.js)
        at Unknown.x0p(webadmin-0.js)
        ...
2018-07-17 15:46:56,819+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-63) [] Permutation name: 2BBBB4BF17231F5B4D2177B951873728
2018-07-17 15:46:56,819+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-63) [] Uncaught exception: com.google.gwt.core.client.Jav
aScriptException: (TypeError) : Cannot read property 'fh' of null
        at Unknown.SZp(webadmin-0.js)
        at Unknown.x0p(webadmin-0.js)
        ...
2018-07-22 11:52:02,491+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-50) [] Permutation name: 21D77CA17B5F6E93EBCD764B0CD559F7
2018-07-22 11:52:02,492+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-50) [] Uncaught exception: com.google.gwt.core.client.Jav
aScriptException: (TypeError) : Cannot read property 'wh' of undefined
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior.$lambda$1(NewVmModelBehavior.java:112)
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior$lambda$1$Type.finished(NewVmModelBehavior.java:112)
        at org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor$BuilderExecutionFinishedCaller.build(BuilderExecutor.java:80)
        at org.ovirt.engine.ui.uicommonweb.builders.BaseSyncBuilder.build(BaseSyncBuilder.java:13)
        at org.ovirt.engine.ui.uicommonweb.builders.CompositeBuilder$LastBuilder.build(CompositeBuilder.java:45)
        at org.ovirt.engine.ui.uicommonweb.builders.vm.IconVmBaseToUnitBuilder.lambda$0(IconVmBaseToUnitBuilder.java:23)
        at org.ovirt.engine.ui.uicommonweb.builders.vm.IconVmBaseToUnitBuilder$lambda$0$Type.onSuccess(IconVmBaseToUnitBuilder.java:23)
        at org.ovirt.engine.ui.uicommonweb.models.vms.IconCache.$getOrFetchIcons(IconCache.java:50)
        at org.ovirt.engine.ui.uicommonweb.builders.vm.IconVmBaseToUnitBuilder.$build(IconVmBaseToUnitBuilder.java:18)
        at org.ovirt.engine.ui.uicommonweb.builders.vm.IconVmBaseToUnitBuilder.build(IconVmBaseToUnitBuilder.java:18)
        at org.ovirt.engine.ui.uicommonweb.builders.BaseSyncBuilder.build(BaseSyncBuilder.java:13)
        at org.ovirt.engine.ui.uicommonweb.builders.BaseSyncBuilder.build(BaseSyncBuilder.java:13)
        at org.ovirt.engine.ui.uicommonweb.builders.CompositeBuilder.build(CompositeBuilder.java:21)
        at org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.$build(BuilderExecutor.java:61)
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior.$buildModel(NewVmModelBehavior.java:189)
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior.templateWithVersion_SelectedItemChanged(NewVmModelBehavior.java:102)
        at org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.eventRaised(UnitVmModel.java:1949)
        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.uicommonweb.models.ListModel.setSelectedItem(ListModel.java:78)
        at org.ovirt.engine.ui.uicommonweb.models.ListModel.$itemsChanged(ListModel.java:224)
        at org.ovirt.engine.ui.uicommonweb.models.ListModel.$setItems(ListModel.java:102)
        at org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase.$initTemplateWithVersion(VmModelBehaviorBase.java:282)
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmFromTemplateModelBehavior.postInitTemplate(NewVmFromTemplateModelBehavior.java:25)
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior.$lambda$3(NewVmModelBehavior.java:276)
        at org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior$lambda$3$Type.onSuccess(NewVmModelBehavior.java:276)
        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)


Version-Release number of selected component (if applicable):
master - 4.3 , commit - d856dcde5ab840800b9301441bbb76633d86784d

How reproducible:
100%

Steps to Reproduce:
1. Create a VM and attach a CD-ROM from the ISO domain
2. Create a template from the VM
3. Try to create a VM from the template

Actual results:
New VM window failed to load and an exception is thrown in the UI.
(If the window is shown for the first try press cancel and try again -> it will fail)

Expected results:
New VM window should load

Additional info:

Comment 1 shani 2018-07-25 07:16:35 UTC
This one happens on ovirt-engine-4.2 as well.

Comment 2 Eyal Shenitzky 2018-07-26 13:30:32 UTC
I think that this bug should be targeted to 4.2.6, it prevents from creating VMs from a template via the UI in case of a template that has cd attached.

Comment 3 Ala Hino 2018-07-26 13:31:48 UTC
(In reply to Eyal Shenitzky from comment #2)
> I think that this bug should be targeted to 4.2.6, it prevents from creating
> VMs from a template via the UI in case of a template that has cd attached.

Agreed

Comment 4 Shir Fishbain 2018-08-12 14:55:02 UTC
The status is 409 conflict.
Response:
<fault>
  <detail>[Cannot add Virtual Disk. Disk configuration (COW Preallocated) is incompatible with the storage domain type.]</detail>
  <reason>Operation Failed</reason>
</fault>

ovirt-engine-4.2.6-0.1.el7ev.noarch

Comment 5 Shir Fishbain 2018-08-12 15:24:32 UTC
Oops, the last comment isn't relevant for this bug.
I tested the scenario of this bug and it's fixed.
Steps I did (according to the bug description):
1. Create a VM and attach a CD-ROM from the ISO domain
2. Create a template from the VM
3. Try to create a VM from the template

ovirt-engine-4.2.6-0.1.el7ev.noarch


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