[GH-ISSUE #221] Can't get overrule-shutdown flag to work #125

Open
opened 2026-02-27 15:46:33 +03:00 by kerem · 0 comments
Owner

Originally created by @variable on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/221

I tried this on version PVE8.4.12

self.pointer.status('stop').post(**{'overrule-shutdown':1 if force else 0})

While the stop command was being executed, but it seems the overrule-shutdown flag had no effect.

I did the http logging on celery workers for requests and could see the flag being passed

[2026-02-27 13:22:49,264: WARNING/ForkPoolWorker-8] b'POST /api2/json/nodes/vmh01/qemu/3108/status/stop HTTP/1.1\r\nHost: <host>:<port>\r\nUser-Agent: python-requests/2.32.4\r\nAccept-Encoding: gzip, deflate\r\naccept: application/json, application/x-javascript, text/javascript, text/x-javascript, text/x-json\r\nConnection: keep-alive\r\nCookie: PVEAuthCookie=PVE:<...>@<....>\r\nContent-Length: 19\r\nContent-Type: application/x-www-form-urlencoded\r\nCSRFPreventionToken: <...>\r\n\r\n'
[2026-02-27 13:22:49,264: WARNING/ForkPoolWorker-8] send:
[2026-02-27 13:22:49,264: WARNING/ForkPoolWorker-8]  
[2026-02-27 13:22:49,265: WARNING/ForkPoolWorker-8] b'overrule-shutdown=1'
[2026-02-27 13:22:49,288: WARNING/ForkPoolWorker-8] reply:
...

We verified the overrule-shutdown works on the Proxmox WebUI, so I am unsure what I am missing here.

I also tried various ways to make the API request such as:

  1. replace dash with underscore, but this raises verification failure
self.pointer.status('stop').post(**{'overrule_shutdown':1 if force else 0})
400 Bad Request: Parameter verification failed. - b'{"data":null,"message":"Parameter verification failed.\\n","errors":{"overrule_shutdown":"property is not defined in schema and the schema does not allow additional properties"}}'
  1. this still executes command but flag had no effect
upid = self.pointer.status.stop.post(**{'overrule-shutdown':1 if force else 0})
Originally created by @variable on GitHub (Feb 27, 2026). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/221 I tried this on version PVE8.4.12 ```python self.pointer.status('stop').post(**{'overrule-shutdown':1 if force else 0}) ``` While the stop command was being executed, but it seems the `overrule-shutdown` flag had no effect. I did the http logging on celery workers for requests and could see the flag being passed ``` [2026-02-27 13:22:49,264: WARNING/ForkPoolWorker-8] b'POST /api2/json/nodes/vmh01/qemu/3108/status/stop HTTP/1.1\r\nHost: <host>:<port>\r\nUser-Agent: python-requests/2.32.4\r\nAccept-Encoding: gzip, deflate\r\naccept: application/json, application/x-javascript, text/javascript, text/x-javascript, text/x-json\r\nConnection: keep-alive\r\nCookie: PVEAuthCookie=PVE:<...>@<....>\r\nContent-Length: 19\r\nContent-Type: application/x-www-form-urlencoded\r\nCSRFPreventionToken: <...>\r\n\r\n' [2026-02-27 13:22:49,264: WARNING/ForkPoolWorker-8] send: [2026-02-27 13:22:49,264: WARNING/ForkPoolWorker-8] [2026-02-27 13:22:49,265: WARNING/ForkPoolWorker-8] b'overrule-shutdown=1' [2026-02-27 13:22:49,288: WARNING/ForkPoolWorker-8] reply: ... ``` We verified the overrule-shutdown works on the Proxmox WebUI, so I am unsure what I am missing here. I also tried various ways to make the API request such as: 1. replace dash with underscore, but this raises verification failure ``` self.pointer.status('stop').post(**{'overrule_shutdown':1 if force else 0}) ``` ``` 400 Bad Request: Parameter verification failed. - b'{"data":null,"message":"Parameter verification failed.\\n","errors":{"overrule_shutdown":"property is not defined in schema and the schema does not allow additional properties"}}' ``` 2. this still executes command but flag had no effect ``` upid = self.pointer.status.stop.post(**{'overrule-shutdown':1 if force else 0}) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#125
No description provided.