Bug 1231750

Summary: [New] - User should not be allowed to remove glusternw from the interface if it is in use.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sahina Bose <sabose>
Component: rhscAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: high Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: knarra, nlevinki, rhs-bugs
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: rhsc-3.1.0-59 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1222503 Environment:
Last Closed: 2015-07-29 05:33:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1222503    
Bug Blocks: 1202842    
Attachments:
Description Flags
Attaching the screenshot with the error message none

Description Sahina Bose 2015-06-15 10:43:58 UTC
+++ This bug was initially created as a clone of Bug #1222503 +++

Description of problem:
when user adds brick to the volume using glusternw and if the volume is up and running, user should not be allowed to detach this glusternw from the host interfaces.

Version-Release number of selected component (if applicable):
ovirt-engine-3.6.0-0.0.master.20150513052215.gitf9a6de7.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. create a glusternw in UI
2. Now from the setup host networks dialog attach it to a bonded interface.
3. Create a volume using this network.

Actual results:
When user tries to detach the glusternw, UI allows the operation.

Expected results:
UI should not allow the user to detach the glusternw since some of the bricks are using this.

Additional info:

Comment 3 RamaKasturi 2015-06-16 13:48:58 UTC
Verified and works fine with the build rhsc-3.1.0-0.60.el6.noarch.

when user tries to detach glusternw from the interface to which bricks are attached UI displays an error which reads "Error while executing action: <hostname>. Cannot setup Networks. The following networks cannot be removed from the network interface since they are used by gluster volume bricks: glusternw. Please remove or replace the bricks in order to remove the network.

Comment 4 RamaKasturi 2015-06-16 13:50:36 UTC
Created attachment 1039501 [details]
Attaching the screenshot with the error message

Comment 5 errata-xmlrpc 2015-07-29 05:33:49 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/RHEA-2015-1494.html