Displaying 3 results from an estimated 3 matches for "virdomaineventlifecyclenewfromobj".
2014 Feb 19
1
Re: event-test.py cannot detects domain shutdown
...l_driver.c
>> @@ -383,6 +383,9 @@ libxlDomainShutdownThread(void *opaque)
>> VIR_DOMAIN_EVENT_STOPPED_CRASHED);
>> reason = VIR_DOMAIN_SHUTOFF_CRASHED;
>> } else {
>> + dom_event = virDomainEventLifecycleNewFromObj(vm,
>> + VIR_DOMAIN_EVENT_STOPPED,
>> + VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN);
>> reason = VIR_DOMAIN_SHUTOFF_SHUTDOWN;
>> }
>> libxlVmReap(drive...
2014 Feb 19
2
Re: event-test.py cannot detects domain shutdown
Cole Robinson wrote:
> On 02/18/2014 05:12 AM, Kim Larry wrote:
>
>> The thing I found today is that if libvirt uses xend driver, shutdown events
>> are delivered, but if libvirt uses libxl drvier, doesn't show up anything. It
>> seems there are bugs on shutdown event, so I did dig into the libvirt source
>> briefly, but I couldn't find where libxl driver
2014 Feb 19
0
Re: event-test.py cannot detects domain shutdown
...+++ b/src/libxl/libxl_driver.c
> @@ -383,6 +383,9 @@ libxlDomainShutdownThread(void *opaque)
> VIR_DOMAIN_EVENT_STOPPED_CRASHED);
> reason = VIR_DOMAIN_SHUTOFF_CRASHED;
> } else {
> + dom_event = virDomainEventLifecycleNewFromObj(vm,
> + VIR_DOMAIN_EVENT_STOPPED,
> + VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN);
> reason = VIR_DOMAIN_SHUTOFF_SHUTDOWN;
> }
> libxlVmReap(driver, vm, reason);
ACK...