[pve-devel] Storage::Plugin::deactivate_volume not executed, when VM does shutdown

Dietmar Maurer dietmar at proxmox.com
Sun Dec 11 08:15:59 CET 2016


> It seems the storage plugin function "deactivate_volume" will be not executed,
> when the VM stops by issuing a "poweroff" command.
> Hint: It is executed, when you klick the Shutdown button from the GUI.

That is by design ...
 
> I have seen
>     pvedaemon[21622]: client closed connection
> in the log, but no further storage execution.
> 
> For my new storage plugin, it is essential that deactivate_volume will be
> executed, because it needs to free the resource.

You should not rely on such behavior, because you can never really know
exactly when a VM stops.

But it is hard to give advice without seeing any code...




More information about the pve-devel mailing list