Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1142203

Summary: [Network label] RHEV does not allow adding label for a network being used by VMs
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engineAssignee: Martin Mucha <mmucha>
Status: CLOSED ERRATA QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: high    
Version: 3.4.0CC: ecohen, eedri, iheim, lbopf, lpeer, lvernia, masayag, mburman, mpavlik, nyechiel, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: network
Fixed In Version: org.ovirt.engine-root-3.4.3-2 Doc Type: Bug Fix
Doc Text:
Network labels can now be added to networks that are being used by running virtual machines.
Story Points: ---
Clone Of: 1134009 Environment:
Last Closed: 2014-10-23 12:30:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1134009    
Bug Blocks: 1126430    

Description rhev-integ 2014-09-16 10:59:07 UTC
+++ This bug is a RHEV-M zstream clone. The original bug is: +++
+++   https://bugzilla.redhat.com/show_bug.cgi?id=1134009. +++
+++ Requested by "lvernia" +++
======================================================================



----------------------------------------------------------------------
Following comment by akotov on August 26 at 15:43:57, 2014

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

rhevm-backend-3.4.1-0.31.el6ev.noarch

How reproducible:

Always

Steps to Reproduce:
1. Default cluster, 1 VM running, no labels attached to hosts NICs, default rhevm network
2.  Networks => Edit => Network label => type in test => press OK,OK

Actual results:

RHEV does not allow to add/edit label as network is in use by VMs
"Several virtual machines (1) are using this logical network"

Expected results:

RHEV should allow add/edit label with VMs running, as no network configuration is updated on the hosts. Behavior should be similar to editing description/comment for the network.


Additional info:

It should work at least if label is not currently in use by any hosts, not sure about possible implications if label is already used for some hosts.

----------------------------------------------------------------------
Following comment by nyechiel on August 27 at 12:07:17, 2014

This issue was already raised in the past. Moti, do we have any safe way to allow this?

Thanks,
Nir

----------------------------------------------------------------------
Following comment by akotov on August 27 at 12:58:58, 2014

I was able to workaround it BTW by hot-unplugging NIC from VM, doing what needs to be done with label, and plugging back NIC again.

----------------------------------------------------------------------
Following comment by masayag on August 31 at 07:21:53, 2014

(In reply to Nir Yechiel from comment #1)
> This issue was already raised in the past. Moti, do we have any safe way to
> allow this?
> 
> Thanks,
> Nir

Yes, currently the rename action is not supported.
Renaming a label of a network should behave as:
1. When network isn't used - allow it.
2. When network is provisioned on hosts via label - renaming the label will remove the network from the hosts. (If the user wish to preserve that label on the hosts, the user should label the hosts' interfaces with the new label)
2.1. If the network is being used by running vms, and renaming it will trigger its removal from hosts - it should be blocked.
2.1. The network should be configured on any host that is labeled with the new label, where the network hasn't been configured on that host.

Adding a label is simpler, since this action is currently supported
1. If the network is being used by vms, allow it: It implies the network is already configured on a host and adding a label will only provision it on hosts where that network hasn't been configured.

----------------------------------------------------------------------
Following comment by lvernia on September 02 at 12:50:44, 2014

Since Bug 1068626 already exists for renaming network labels, I'm limiting this to just the case of adding a new label for networks being used by VMs - should be easier to fix and solve a lot of issues for users/customers with existing deployments who are looking to adopt the feature.

----------------------------------------------------------------------
Following comment by lsurette on September 10 at 14:37:06, 2014

The logic that Moti explains above for adding new labels makes sense. We will add UX comments around editing network labels to Bug 1068626.

Comment 2 Martin Pavlik 2014-10-06 07:32:48 UTC
does not work in av12.1 (Red Hat Enterprise Virtualization Manager Version: 3.4.3-1.1.el6ev)

Error while executing action: Cannot edit Network. Several virtual machines (1) are using this logical network:
VM1
- Please remove it from all virtual machines that are using it and try again.

Comment 4 Michael Burman 2014-10-14 11:08:53 UTC
does not work in av12.2 (Red Hat Enterprise Virtualization Manager Version: 3.4.3-1.2.el6ev)

Error while executing action: Cannot edit Network. Several virtual machines (1) are using this logical network:
ku
- Please remove it from all virtual machines that are using it and try again.

- Can add label to network while VM using this network, but can't edit or change the label on this network.

Comment 5 Lior Vernia 2014-10-14 12:30:53 UTC
Michael, please see my quoted text in Comment #1 - this bug should only deal with adding a label, not editing it. In that case, is this verified?

Comment 6 Michael Burman 2014-10-14 14:14:11 UTC
Lior, in that case, if this bug should only deal with adding a label, so yes, he is verified.

Verified on - rhevm-3.4.3-1.2.el6ev.noarch

Comment 8 errata-xmlrpc 2014-10-23 12:30:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2014-1712.html