Bug 1184376

Summary: [New] - Creating a volume with a brick which is already part of another volume does not give a proper error message.
Product: [Retired] oVirt Reporter: RamaKasturi <knarra>
Component: ovirt-engine-webadminAssignee: Darshan <dnarayan>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5CC: bugs, ecohen, gklein, lsurette, mgoldboi, rbalakri, rhsc-qe-bugs, sabose, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 13:00:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1207150    
Bug Blocks: 1187461    
Attachments:
Description Flags
Attaching the screenshot for the correct message none

Description RamaKasturi 2015-01-21 09:07:26 UTC
Description of problem:
When user tries to create a volume with the bricks which are already part of another volume, ovirt does not display a proper error message.

Version-Release number of selected component (if applicable):
ovirt-engine-webadmin-portal-3.6.0-0.0.master.20150105124153.git669ddc1.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a volume with name "vol1" and bricks /rhs/brick1/b1 and /rhs/brick1/b2.
2. Delete the volume vol1.
3. Create another volume say vol2 with bricks used to create vol1. 

Actual results:
Error while executing action Create Gluster Volume: Unexpected exception

Expected results:
An error message should be displayed telling the user that "these bricks are already part of another volume".

Additional info:

Comment 1 Sahina Bose 2015-04-06 07:01:30 UTC
This issue id due to JSON RPC exception handling

Comment 2 RamaKasturi 2015-04-14 08:49:07 UTC
verified and works fine in the build ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764.el6.noarch.

The following error message gets displayed "Error while executing action: Cannot create Gluster Volume. Brick <brickname> is already used by the volume <vol_name>

Comment 3 RamaKasturi 2015-04-14 08:50:04 UTC
Created attachment 1014208 [details]
Attaching the screenshot for the correct message

Comment 4 Sandro Bonazzola 2015-11-04 13:00:07 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.