Bug #5228

snapshot_revert for VM snapshot is always called with the first snapshot in Sunstone

Added by Anton Todorov almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:07/11/2017
Priority:HighDue date:
Assignee:Abel Coronado% Done:


Target version:Release 5.4
Resolution:fixed Pull request:
Affected Versions:Development, OpenNebula 5.2


Reproduced with
Opera 45.0.2552.888
FirefoxESR 52.2.0 (64-bit)

How to reproduce:
1. Create two VM snapshots
2. Delete first VM snapshot (with ID 0)
3. Click "Revert" on the remaining snapshot (with ID 1)

You will receive error: "[one.vm.snapshotrevert] Could not revert VM 28 to snapshot 0, it does not exist."

Expected - snapshot with the correct name to be passed to vmm/snapshot_revert script

The following ugly patch against 5.2.x fixes the issue by reworking the passing of the snapshot ID to the popup warning.


Best Regards,
Anton Todorov

Associated revisions

Revision 2e8bfdc5
Added by Abel Coronado almost 4 years ago

B #5228 Solved bug revert snapshot (#390)


#1 Updated by Anton Todorov almost 4 years ago

the vmm/kvm/snapshot_* scripts could be altered to always return 0 (exit 0 at the beginning) to rise the issue on system that does not support VM snapshots

#2 Updated by Abel Coronado almost 4 years ago

  • Assignee set to Abel Coronado
  • Target version set to Release 5.4
  • % Done changed from 0 to 100

#3 Updated by Ruben S. Montero almost 4 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed


Also available in: Atom PDF