Bug 1422447

Summary: [TEXT] Moving an existing NIC from an oVirt network to one on an external provider does not require stopping a VM, unplug is fine too
Product: [oVirt] ovirt-engine Reporter: Simone Tiraboschi <stirabos>
Component: BLL.NetworkAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: low Docs Contact:
Priority: low    
Version: futureCC: bugs, danken, lveyde, mkalfon, ylavi
Target Milestone: ovirt-4.1.2Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-23 08:15:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Simone Tiraboschi 2017-02-15 11:18:02 UTC
Description of problem:
I have a VM on the management network, I add the new OVN provider as an external provider in oVirt and I create a new logical network there.

If I try to unplug the 'virtual cable' of the nic of my VM from the management network and plug it into the new logical network on the OVN external provider I get an error from the engine:
Cannot edit Interface. External network cannot be changed while the virtual machine is running.

So it seams that I've to reboot a VM if I just want to unplug a virtual cable and plug somewhere else.

Unplugging the previous nic and hot-plugging a new one seams instead to work but has an impact on the guest OS.

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

How reproducible:
100%

Steps to Reproduce:
1. add an external network
2. try changing an existing nic from an oVirt logical network to a logical network on an external provider without creating a new nic for that
3.

Actual results:
Error message: Cannot edit Interface. External network cannot be changed while the virtual machine is running.

Expected results:
Two options:
1. oVirt internally unplug the previous device and adds a new one with the same uuid pointing to the external network
2. we simply change the error message saying to the user that he has to hpt-unplug and hot-plug a new ic and not just the virtual cable

Additional info:

Comment 1 Dan Kenigsberg 2017-02-20 10:25:20 UTC
I suggest only a text change:

"""
Cannot edit Interface. External network cannot be changed while plugged into a running virtual machine. Stop the VM or unplug the vNIC before editing.
"""

Comment 2 Mor 2017-04-26 14:53:05 UTC
Verified on:
Red Hat Virtualization Manager Version: 4.1.2-0.1.el7

"Cannot edit Interface. External network cannot be changed while plugged into a running virtual machine. Stop the VM or unplug the vNIC before editing."