Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170565

Monitor status of qemu migration using PVE API

$
0
0
Hi,

I need to monitor the status of migrations through PVE API. I'm using PVE 2.1 and the Java client. For long time, I've used libvirt, where the call to trigger a live migration was blocking. Here, that's different, I need to know when a migration is finished, so I can start the next one. Otherwise, and this may be a bug, subsequent migrations very likely fail as port 60000 is already used. Additionally, the KVM process is then gone on the source node too - very bad. I assume it is not necessary to fix the migration port to 60000, but thats the current behaviour.

However, the Java client to PVE API is not helpful either. I thought I'm gonna fetch the list of tasks (getTasks() IIRC), and look for a "running" "qmigrate" task, but no chance. There seem to be several bugs causing JSONExceptions, e.g., EndTime is not parsable. Not very astonishing for a task that is not finished yet, meh. Anyways, even Status is not parsable, so I'm completely stuck here.

Is there a better way to monitor the status of a KVM migration, has the API changed, or how can I achieve what I need to do? Even if multiple live migrations were possible (using port 60000+x or whatever), I need to know when all live migrations are finished.

Thank you!

Viewing all articles
Browse latest Browse all 170565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>