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

Bug 908248

Summary: [RHEVM] [Network Tab] [TEXT] Improve error message on network with active VNIC removal
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engine-webadmin-portalAssignee: lpeer <lpeer>
Status: CLOSED DUPLICATE QA Contact: Martin Pavlik <mpavlik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dyasny, ecohen, gklein, iheim, masayag, Rhev-m-bugs, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-07 10:24:21 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:
Attachments:
Description Flags
screenshot 1
none
engine.log none

Description Martin Pavlik 2013-02-06 09:05:24 UTC
Created attachment 693803 [details]
screenshot 1

Description of problem:
Ugly, not very user friendly error message appears when user is trying to remove network which is used by running VM (see screenshot)

Error while executing action: ACTION_TYPE_FAILED_CANNOT_REMOVE_ACTIVE_DEVICE

Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.2.0-6.el6ev

How reproducible:
100%

Steps to Reproduce:
1. Create logical netwrok 
2. Attach the network to cluster and host
3. Create VM with VNIC attached to the network, start it
4. Network -> select network created above -> Virtual Machines -> select VM created above  -> remove
  
Actual results:
Error while executing action: ACTION_TYPE_FAILED_CANNOT_REMOVE_ACTIVE_DEVICE

Expected results:
Human readable error message which clearly explains what is what is the problem
e.g. 

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

Additional info:

engine.log

2013-02-06 09:51:47,222 WARN  [org.ovirt.engine.core.bll.network.vm.RemoveVmInterfaceCommand] (ajp-/127.0.0.1:8702-5) CanDoAction of action RemoveVmInterface failed. Reasons:ACTION_TYPE_FAILED_CANNOT_REMOVE_ACTIVE_DEVICE

Comment 1 Martin Pavlik 2013-02-06 09:07:00 UTC
Created attachment 693804 [details]
engine.log

Comment 2 Moti Asayag 2013-02-07 10:24:21 UTC

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