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

Bug 1184005

Summary: Incorrect error message when trying to approve SN about VM using logical network, when actually network not used by VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Burman <mburman>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: Michael Burman <mburman>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.0CC: ecohen, gklein, iheim, lpeer, lsurette, lvernia, mburman, michal.skrivanek, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 14:39:49 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:
Bug Depends On: 1183728    
Bug Blocks:    
Attachments:
Description Flags
Logs none

Description Michael Burman 2015-01-20 12:15:35 UTC
Created attachment 981809 [details]
Logs

Description of problem:
Incorrect error message when trying to approve SN about VM using logical network, when actually network not used by VM.
This issue happens and depends on BZ 1183728.
SN can't approve operation for network that isn't in use by any VM.

Error while executing action:

navy-vds1.qa.lab.tlv.redhat.com:

    Cannot setup Networks. The following VMs are actively using the Logical Network: Topo. Please stop the VMs and try again. 

Version-Release number of selected component (if applicable):
3.5.0-0.29.el6ev

How reproducible:
100

Steps to Reproduce:
1. Host with 4 NIC's. Create bond with 2 slaves(eth2+eth3). Create vm network(for this example let's call it 'net1'). 
2. Attach network to eth1. rhevm attached to eth0.
3. Run VM using 'net1'.
4. Edit VM's Network Interface and change vNIC profile to 'rhevm', press 'ok'
5. Unplug vNIC, press 'ok'. Then plug vNIC back and press 'ok'
6. Go to SN and move 'net1' from eth1 to bond and press 'ok'
7. Go to Networks main tab and edit 'net1' with custom MTU(let say 10000) taht is not supported by host.
- From this point we are in the stage of BZ 1183728.
Bond will break. 'net1' Detached from bond.
8. Edit 'net1' back to default MTU.
9. Try to attach 'net1' to NIC on host.


Actual results:
Operation canceled with incorrect error message:
 Error while executing action:

navy-vds1.qa.lab.tlv.redhat.com:

    Cannot setup Networks. The following VMs are actively using the Logical Network: Topo. Please stop the VMs and try again.

Expected results:
Relevant error message. No error message about a logical network that being used by VM, when actually the logical network is no longer used by any VM. 

Additional info:
Please see- https://bugzilla.redhat.com/show_bug.cgi?id=1183728

Comment 1 Lior Vernia 2015-01-25 12:16:49 UTC
Does this only happen after the MTU trials? Or is this reproduced independently?

Comment 2 Michael Burman 2015-01-25 12:23:20 UTC
Hi Lior,

At this point i only managed to reproduce this issue after the MTU trials.

Comment 3 Lior Vernia 2015-01-25 12:38:57 UTC
Then please close this as a duplicate or works for me - if it's the same bug as the MTU one, we don't need two.

Comment 4 Michael Burman 2015-01-25 12:43:58 UTC
But it's not the same bug, this bug is about the  Incorrect error message.
Message about logical network being in use by VM, when actually not. The SN operation fails for a different issue, but the message is Incorrect.

Comment 5 Lior Vernia 2015-01-26 14:32:50 UTC
Does this reproduce independently of the MTU bug? If not, then from my perspective it's not a different bug.

Comment 6 Lior Vernia 2015-01-26 14:39:49 UTC

*** This bug has been marked as a duplicate of bug 1183728 ***