Bug #5228
snapshot_revert for VM snapshot is always called with the first snapshot in Sunstone
Status: | Closed | Start date: | 07/11/2017 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Abel Coronado | % Done: | 100% | |
Category: | Sunstone | |||
Target version: | Release 5.4 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | Development, OpenNebula 5.2 |
Description
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.
https://github.com/OpenNebula/addon-storpool/blob/master/patches/sunstone/5.2.0/F-5068-set-snapshot_id-for-warning-dialog-on-VMSnapshot-revert.patch
Best Regards,
Anton Todorov
Associated revisions
History
#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
Thanks!