Skip to contentSkip to conversation

dump: introduce dump-cancel QMP command

PATCH Wangjing(Hogan) via 1 participant 1 message Jul 21, 2022

lore
Share & tools
lore
#0 lore raw
Quoted 26 lines
Quoted 14 lines · Daniel P. Berrangé
Quoted 9 lines · Hogan Wang via

There's no way to cancel the current executing dump process, lead to the virtual machine manager daemon((e.g. libvirtd) cannot restore the dump job after daemon restart.

Add the 'cancelling' and 'cancelled' dump states.

Use 'dump-cancel' qmp command Set the dump state as 'cancelling'. The dump process check the 'cancelling' state and break loops. The 'cancelled' state mark the dump process cancelled success.

On the one hand this patch is fairly simple which is obviously desirable.

Quoted 8 lines

On the other hand though, this feels like it is further re-inventing the jobs concept.

IMHO ideally the 'dump' command probably ought to get a 'job-id' parameter, and integrate with the generic background jobs framework. This would unlock the ability to use existing commands like 'job-cancel', 'job-pause', 'job-resume', 'queyr-jobs' to interact with it.

Quoted 3 lines

Seconded.

Hogan Wang, would you be interested in rebasing the dump feature onto the jobs infrastructure?

Yes! I'm glad to do this, but it'll take some time.