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

Bug 1201765

Summary: [New] - Restoring snapshot from UI fails with Unexpected exception
Product: [Retired] oVirt Reporter: RamaKasturi <knarra>
Component: ovirt-engine-webadminAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED CURRENTRELEASE QA Contact: RamaKasturi <knarra>
Severity: high Docs Contact:
Priority: medium    
Version: 3.6CC: bugs, ecohen, gklein, lsurette, mgoldboi, rbalakri, 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:58:17 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-03-13 13:06:29 UTC
Description of problem:
When user tries to restore snapshot from UI, it gives a an error message saying "Error while executing action Restore volume snapshot: Unexpected exception"

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

How reproducible:
Always.

Steps to Reproduce:
1. Add a cluster to RHSC.
2. Create a snapshot by running the command "gluster snapshot create <snap> <vol_name>
3. Wait for 5 mins for the snapshot to get synced in UI.
4. Now activate the snapshot.
5. click on the restore button .
6. A popup comes saying "The volume will be brought down and restored to the state of the selected snapshot. Do you want to continue?"
7. Click ok.

Actual results:
It gives an error message saying "error while executing action restore volume snapshot: Unexpected exception" and an event message gets displayed saying "Failed to restore the volume <vol_name> to the state of gluster volume snapshot <UNKNOWN>"

Expected results:
Snapshot should be restored sucessfully.

Additional info:

Comment 1 RamaKasturi 2015-04-14 09:04:42 UTC
Verified and works fine with build ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764.el6.noarch.

User is able to restore a snapshot and following event message gets displayed during restore operation.

1) Gluster volume <vol1> stopped.
2) Detected brick <brick_name> removed from volume <vol_name> of cluster <cluster_name> and removed it from engine DB for all the bricks in the volume.
3) Detected new brick <new brick_name> on volume <vol_name> of cluster <cluster_name> and added it to engine DB.
4) Detected option features.barrier=disable reset on volume <vol_name> of cluster <cluster_name> and removed it from engine DB.
5) Gluster volume <vol_name> started.
6) Restored the volume <vol_name> to the state of gluster volume snapshot <snap_name>

Comment 2 Sandro Bonazzola 2015-11-04 13:58:17 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.