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

Bug 1215876

Summary: [New] - Proper error message should be displayed when user tries to delete a volume which has snapshots.
Product: [Retired] oVirt Reporter: RamaKasturi <knarra>
Component: ovirt-engine-webadminAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED CURRENTRELEASE QA Contact: RamaKasturi <knarra>
Severity: low Docs Contact:
Priority: medium    
Version: 3.6CC: bugs, dpati, ecohen, gklein, lsurette, mgoldboi, rbalakri, shtripat, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: ovirt-engine-3.6.0-0.0.master.20150514172356.git1f1cc88 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 11:47:53 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:    
Bug Blocks: 1187461    

Description RamaKasturi 2015-04-28 04:34:05 UTC
Description of problem:
User will not be able to delete a volume which has snapshots. To delete the volume user must first delete the snapshots which are present for it.

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

How reproducible:
Always

Steps to Reproduce: 
1. create a volume.
2. Take some snapshots for that volume.
3. Now stop the volume.
4. Try deleting the volume.

Actual results:
UI says could not delete gluster volume for <vol_name>

Expected results:
Display a proper error message saying "cannot delete volume <vol_name> as it has <no.of snapshots> snapshots, To delete the volume, first delete all the snapshots under it.

Additional info:

Comment 1 RamaKasturi 2015-05-20 10:23:32 UTC
Verified and works fine with build ovirt-engine-3.6.0-0.0.master.20150519172219.git9a2e2b3.el6.noarch.

When there are snapshots present in a volume and if user tries deleting the volume  UI displays the following error message.

Error while executing action: cannot remove Gluster Volume. Gluster Volume <vol_name> has 2 snapshots. To delete the volume, first delete all the snapshots under it.

Comment 2 Sandro Bonazzola 2015-11-04 11:47:53 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.