search for: vir_domain_event_id_job_complet

Displaying 7 results from an estimated 7 matches for "vir_domain_event_id_job_complet".

2017 Feb 10
2
Determining domain job kind from job stats?
Hi, is there a reliable way to find out to what kind of job does the information returned from virDomainGetJobStats or provided in VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event callback belong to? I'm specifically interested in distinguishing host-to-host migration jobs (e.g. those started by virDomainMigrateToUri* functions) from other jobs. If there is no better way, I'm thinking about examining presence or values of certain fields in the stats. I'...
2017 Feb 17
2
Re: Determining domain job kind from job stats?
Jiri Denemark <jdenemar@redhat.com> writes: > On Fri, Feb 10, 2017 at 21:50:19 +0100, Milan Zamazal wrote: >> Hi, is there a reliable way to find out to what kind of job does the >> information returned from virDomainGetJobStats or provided in >> VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event callback belong to? > > No, libvirt expects that the caller knows what job it started. All jobs > currently reported using virDomainGetJobStats API or > VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event are internally implemented as > migration in QEMU driver (either to a file or to a...
2017 Feb 16
0
Re: Determining domain job kind from job stats?
On Fri, Feb 10, 2017 at 21:50:19 +0100, Milan Zamazal wrote: > Hi, is there a reliable way to find out to what kind of job does the > information returned from virDomainGetJobStats or provided in > VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event callback belong to? No, libvirt expects that the caller knows what job it started. All jobs currently reported using virDomainGetJobStats API or VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event are internally implemented as migration in QEMU driver (either to a file or to a network socket), which m...
2017 Feb 17
0
Re: Determining domain job kind from job stats?
...Jiri Denemark <jdenemar@redhat.com> writes: > > > On Fri, Feb 10, 2017 at 21:50:19 +0100, Milan Zamazal wrote: > >> Hi, is there a reliable way to find out to what kind of job does the > >> information returned from virDomainGetJobStats or provided in > >> VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event callback belong to? > > > > No, libvirt expects that the caller knows what job it started. All jobs > > currently reported using virDomainGetJobStats API or > > VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event are internally implemented as > > migration in QEMU driver (...
2017 Jan 10
3
Regarding Migration Statistics
Greetings, I am writing a code using libvirt API to migrate VM between two physical hosts *(QEMU/KVM) , *say some *n *number of times. *1)* I am using right now* virDomainPtr virDomainMigrate (.......) *and to calculate the total migration time I am using something like this: *clock_gettime(CLOCK_MONOTONIC_RAW,&begin); * *migrate*(domainToMigrate,nodeToMigrate);
2017 Feb 20
2
Re: Determining domain job kind from job stats?
...enemar@redhat.com> writes: >> >> > On Fri, Feb 10, 2017 at 21:50:19 +0100, Milan Zamazal wrote: >> >> Hi, is there a reliable way to find out to what kind of job does the >> >> information returned from virDomainGetJobStats or provided in >> >> VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event callback belong to? >> > >> > No, libvirt expects that the caller knows what job it started. All jobs >> > currently reported using virDomainGetJobStats API or >> > VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event are internally implemented as >> > migrat...
2017 Jan 10
0
Re: Regarding Migration Statistics
...erent for each type, although all migration statistics are unsigned long long so this one is all you need. BTW, you can call virDomainGetJobStats anytime while migration is running to monitor its progress. To check statistics of a completed migration it's easier to just register a callback for VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event. See http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/object-events/event-test.c;h=55c004f93f40de628ae76221bb8ef9a13b2acb3d;hb=HEAD#l940 for an example. Jirka