Tomas Jelinek has posted comments on this change.

Change subject: frontend: do not use AddVmFromScratch
......................................................................


Patch Set 4:

(3 comments)

http://gerrit.ovirt.org/#/c/33142/4/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java:

Line 2130:         {
Line 2131:             return;
Line 2132:         }
Line 2133: 
Line 2134:         if (model.getProvisioning().getEntity())
is this reliable? is the !model.getProvisioning().getEntity() guaranteed to be 
false when there is no template? Not sure but I can imagine a flow like: select 
template, set it to thin, than select blank or something. So to be on the safe 
side I'd enrich the check to also take into account the 
getcurrentVm().getVmtGuid().equals(Guid.Empty)
Line 2135:         {
Line 2136:             model.startProgress(null);
Line 2137: 
Line 2138:             AsyncQuery _asyncQuery = new AsyncQuery();


Line 2163:         }
Line 2164:         else
Line 2165:         {
Line 2166:             if (model.getProgress() != null)
Line 2167:             {
this has already been checked
Line 2168:                 return;
Line 2169:             }
Line 2170: 
Line 2171:             model.startProgress(null);


Line 2182:             
params.setVirtioScsiEnabled(model.getIsVirtioScsiEnabled().getEntity());
Line 2183:             setVmWatchdogToParams(model, params);
Line 2184:             setRngDeviceToParams(model, params);
Line 2185: 
Line 2186:             Frontend.getInstance().runAction(VdcActionType.AddVm, 
params, new UnitVmModelNetworkAsyncCallback(model, 
defaultNetworkCreatingManager), this);
the defaultNetworkCreatingManager does not launch the "guide" and you need to 
launch it when creating a new VM without a template.
Line 2187:         }
Line 2188:     }
Line 2189: 
Line 2190:     protected static void buildVmOnSave(UnitVmModel model, VM vm) {


-- 
To view, visit http://gerrit.ovirt.org/33142
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibd7f9cf4e6a9bcb2b336b34c785c09221068a915
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjeli...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to