Bug 988354 - nic->network assignement not working for VM created from template with disk
Summary: nic->network assignement not working for VM created from template with disk
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3
Assignee: Tomas Jelinek
QA Contact:
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-25 11:45 UTC by Tomas Jelinek
Modified: 2013-11-27 10:02 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-27 10:02:38 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 18607 0 None None None Never

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.


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