Bug 988354

Summary: nic->network assignement not working for VM created from template with disk
Product: [Retired] oVirt Reporter: Tomas Jelinek <tjelinek>
Component: ovirt-engine-webadminAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3CC: abaron, acathrow, ecohen, iheim, masayag, mgoldboi, sbonazzo, yeylon
Target Milestone: ---   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-27 10:02:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Jelinek 2013-07-25 11:45:11 UTC
Create a VM from template with big disk and couple of nics. In
new vm dialog edit the nic->network assignment. Press OK.

It will fail with:
2013-07-25 13:16:45,715 WARN  [org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand] (http--0.0.0.0-8080-1) [70beffb3] CanDoAction of action UpdateVmInterface failed. Reasons:VAR__TYPE__INTERFACE,VAR__ACTION__UPDATE,NETWORK_CANNOT_CHANGE_STATUS_WHEN_NOT_DOWN_UP
  
The problem:
First the AddVmFromTemplate is called. After it returns the
UpdateVmInterfaceCommand is called to edit the nic->network
assignment.

The problem is that the VM status can be "image locked" which
prevents the nic editing.