Bug 1286224 - Uncaught exception when creating new VM from template
Uncaught exception when creating new VM from template
Product: ovirt-engine
Classification: oVirt
Component: Frontend.Core (Show other bugs)
Unspecified Unspecified
unspecified Severity high (vote)
: ovirt-3.6.2
: 3.6.2
Assigned To: Tomas Jelinek
Petr Matyáš
Depends On:
Blocks: 1309082
  Show dependency treegraph
Reported: 2015-11-27 08:52 EST by Petr Matyáš
Modified: 2016-02-18 06:18 EST (History)
5 users (show)

See Also:
Fixed In Version: ovirt-3.6.2-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1309082 (view as bug list)
Last Closed: 2016-02-18 06:18:55 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Virt
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
tjelinek: ovirt‑3.6.z?
pmatyas: planning_ack?
tjelinek: devel_ack+
rule-engine: testing_ack+

Attachments (Terms of Use)
screenshot (163.44 KB, image/png)
2015-11-27 08:52 EST, Petr Matyáš
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 50591 master MERGED webadmin: instance images not working well with templates 2015-12-17 02:50 EST
oVirt gerrit 50646 ovirt-engine-3.6 MERGED webadmin: instance images not working well with templates 2015-12-20 04:06 EST

  None (edit)
Description Petr Matyáš 2015-11-27 08:52:33 EST
Created attachment 1099696 [details]

Description of problem:
There is an uncaught exception in browser console log when creating new VM from template.

13:51:41.075 Fri Nov 27 13:51:41 GMT+100 2015 
SEVERE: Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) 
 __gwt$exception: <skipped>: zab(...) is undefined
	at Unknown.k5q(Unknown Source)
	at Unknown.o5q(Unknown Source)
	at Unknown.A5q(Unknown Source)
	at Unknown.CMn(Unknown Source)
	at Unknown.FMn(Unknown Source)
	at Unknown.wQn(Unknown Source)
	at Unknown.zQn(Unknown Source)
	at Unknown.uPn(Unknown Source)
	at Unknown.xPn(Unknown Source)
	at Unknown.BHe(Unknown Source)
	at Unknown.Evk(Unknown Source)
	at Unknown.r3(Unknown Source)
	at Unknown.K3(Unknown Source)
	at Unknown.Duf/c.onreadystatechange<(Unknown Source)
	at Unknown.Yt(Unknown Source)
	at Unknown.au(Unknown Source)
	at Unknown._t/<(Unknown Source)
	at Unknown.anonymous(Unknown Source)
1 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:24007:11772
LCe() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:24007
UDe() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:22059
TDe() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:19639
iEe() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:9938
GIk() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:24049
gu() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:18278
au() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:21165
_t/<() 3D3715EC390EF8179A7EF851FB5EC9A5.cache.html:20528

The VM is created successfully, but an error shows up with this exception.

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

How reproducible:
always on my machines

Steps to Reproduce:
1. create new vm
2. select some template with disk as base
3. create the vm

Actual results:
error message

Expected results:
no error message

Additional info:
Comment 1 Tomas Jelinek 2015-12-16 04:38:29 EST
The actual exception is this:
java.lang.NullPointerException: null 	
org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesModel.findBecomeNonBoot(InstanceImagesModel.java:191) 	org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesModel.orderedDisksIterator(InstanceImagesModel.java:177) org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesModel.access$1(InstanceImagesModel.java:167) 	org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesModel$2.onSuccess(InstanceImagesModel.java:153)
Comment 2 Tomas Jelinek 2015-12-17 02:56:25 EST
not yet modified - needs a backport. Moving back to POST
Comment 3 Petr Matyáš 2016-01-06 04:11:52 EST
Verified on 3.6.2-3

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