MitchDrage opened a new issue, #14531: URL: https://github.com/apache/cloudstack/issues/14531
### The required feature described as a wish ##### SUMMARY During a live migration the UI only shows the instance as `Migrating`, so admins have to run `virsh domjobinfo` on the source host to see how far along it is or whether it has stalled. This proposes showing migration progress for KVM first. The API field is hypervisor-neutral, so VMware, XenServer and others can add it later from their own task progress. ##### PROPOSAL - KVM agent: new command that returns the libvirt domain job info (disk and memory processed / remaining / total). - Management server: poll the source host every few seconds while the migrate work job runs, and store the result on the job with `updateAsyncJobStatus()`. - API: admin-only `migrationprogress` on the VM response while the state is `Migrating`, read from the pending `vm_work_job`. Percent is always set and the byte/rate figures are optional, since other hypervisors only report a percentage. - UI: progress bar under Status on the instance page with percentage, "x of y complete", estimated time remaining and transfer rate in MB/s. When volumes migrate with the VM, disks and memory get separate bars; libvirt already splits them in the same job info (`file*` / `mem*`). Mock-up attached. - Events: append a summary to the `VM.MIGRATE` Completed event description (data transferred, duration, average rate), and on Error - a record of how far it got and a short reason (e.g. timed out and not converging, destination unreachable). Sizes, rates and reason category only. I wouldn't include host or storage names, since the event can be visible to the VM owner. Happy to work on a PR if this approach is acceptable. Mock-up of the UI change below: Progress in an instance: <img width="1320" height="940" alt="Image" src="https://github.com/user-attachments/assets/be687153-8e57-4a75-bb22-372512458376" /> Event - Successful: <img width="1650" height="900" alt="Image" src="https://github.com/user-attachments/assets/6bece8fb-c421-4cd9-9ab4-f9f57fb53e43" /> Event - Failed: <img width="1650" height="930" alt="Image" src="https://github.com/user-attachments/assets/6bf138e4-b1f6-46c2-adae-cfdb778171d7" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
