cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Implement Progress Bar + Estimated Time Remaining + Cancel Button for Volume Snapshots

Open btzq opened this issue 1 year ago • 3 comments

ISSUE TYPE
  • Improvement Request
COMPONENT NAME
Volume Snapshots
CLOUDSTACK VERSION
4.19.0
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Currently when taking Volume Snapshots, users have no idea how long the operation takes. Cloudstack will just show a circle loading animation, with no indication on progress or time left. As a result, user does not know if there is a bug in the snapshot process, or its actually in progress. This becomes even worse for large volumes (eg. 10TB) where it can take hours to complete. And if the user waits too long, they will think the system hanged and would then attempt to create a new Volume Snapshot, resulting in 2 on going copies, which will slow down the entire system.

Volume Snapshot seems to be a very intensive operation. In this case, user should be allowed to cancel an ongoing volume snapshot if desired, to save system resources from an unmeaningful operation.

My suggestion is to add a progress bar to the following UI for better user experience: Screenshot 2024-06-18 at 11 11 35 pm Screenshot 2024-06-18 at 11 10 25 pm Screenshot 2024-06-18 at 11 12 00 pm

This implementation should be neutral to the underlying storage, such as NFS, Object Storage, Ceph, Linstor etc

STEPS TO REPRODUCE

EXPECTED RESULTS
Better user experience for volume snapshots
ACTUAL RESULTS
- Cant tell if Volume Snapshot hanged, or is in progress (especially large Volumes)
- Cant monitor progress of snapshot
- Cant cancel Volume Snapshot

btzq avatar Jun 18 '24 15:06 btzq

This is a good idea, but who'll work on it @btzq - are you or any of your colleagues working on it?

rohityadavcloud avatar Jul 01 '24 06:07 rohityadavcloud

@rohityadavcloud unfortunately we dont have any members familiar with cloudstack development. Currently we use cloudstack as a user/operator, but not as developers. Would definetly do it if we had the means and technical skills to.

btzq avatar Jul 01 '24 06:07 btzq

@btzq @rohityadavcloud my opinion as someone who has been working with KVM snapshots a lot lately:

  • Adding a progress bar/ETA is somewhat feasible (with KVM at least), however, to me it seems too much work for "little" benefit.
  • Adding a cancel button is problematic, cancelling a snapshot might lead to data corruption/loss or inconsistencies with the VM's volumes, and should be avoided.

JoaoJandre avatar Aug 21 '24 12:08 JoaoJandre