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
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.