[pve-devel] applied: [PATCH container v3 2/5] fix #4474: lxc api: add overrule-shutdown parameter to stop endpoint

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Apr 17 20:44:38 CEST 2024


Am 12/04/2024 um 16:15 schrieb Friedrich Weber:
> The new `overrule-shutdown` parameter is boolean and defaults to 0. If
> it is 1, all active `vzshutdown` tasks for the same CT (which are
> visible to the user/token) are aborted before attempting to stop the
> CT.
> 
> Passing `overrule-shutdown=1` is forbidden for HA resources.
> 
> Signed-off-by: Friedrich Weber <f.weber at proxmox.com>
> ---
> 
> Notes:
>     changes v2 -> v3:
>     - avoid printing empty list of overruled tasks
>     - rephrased parameter description/commit to reflect changed logic
>     - adapt to rename to `abort_guest_tasks`
>     
>     changes v1 -> v2:
>     - move overrule code into worker, as suggested by Wolfgang
>     - print to worker stdout instead of syslog
> 
>  src/PVE/API2/LXC/Status.pm | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
>

applied, thanks!




More information about the pve-devel mailing list