Not a hook expert, but I looked at the code, and besides after_vm_destroy we 
also have:
before_vm_migrate_source
after_vm_migrate_source
before_vm_migrate_destination
after_vm_migrate_destination 

So, I guess you can put the relevant code in the after_vm_migrate_source for 
the migration use-case, and after_vm_destroy for the destroy use-case.

Oved

----- Original Message -----
> From: "Irena Berezovsky" <[email protected]>
> To: [email protected]
> Sent: Sunday, September 2, 2012 3:33:38 PM
> Subject: [Engine-devel] VM migration state in after_vm_destroy hook
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> Is there any way to know in context of VDSM ‘after_vm_destroy’ hook
> if VM is terminated (globally in the cluster) or migrated to other
> Host?
> 
> Is there some Environment parameter or other indication?
> 
> 
> 
> Thanks a lot,
> 
> Irena
> _______________________________________________
> Engine-devel mailing list
> [email protected]
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 
_______________________________________________
Engine-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-devel

Reply via email to