"Create and start VM" task fails if clone takes too long #1

Open
opened 2026-08-06 16:56:24 +00:00 by julian · 0 comments
Owner

With ZFS on HDDs, the VM remained in "locked" state for about 16 seconds after the clone api call.

Error:

[ERROR]: Task failed: Module failed: 500 Server Error: VM is locked (clone) for url: https://pve-rzclub-hdd.holzmarkt-it.de:443/api2/json/nodes/pve-rzclub-hdd/qemu/100/config
Origin: /home/julian/ansible/roles/pve-vm/tasks/main.yml:1:3

1 - name: Create and start VM
    ^ column 3

fatal: [pbs-rzclub.holzmarkt-it.de -> 127.0.0.1]: FAILED! => {
    "changed": false
}

MSG:

Task failed: Module failed: 500 Server Error: VM is locked (clone) for url: https://pve-rzclub-hdd.holzmarkt-it.de:443/api2/json/nodes/pve-rzclub-hdd/qemu/100/config

Workaround: Restart the Ansible run after clone has finished

With ZFS on HDDs, the VM remained in "locked" state for about 16 seconds after the clone api call. Error: ``` [ERROR]: Task failed: Module failed: 500 Server Error: VM is locked (clone) for url: https://pve-rzclub-hdd.holzmarkt-it.de:443/api2/json/nodes/pve-rzclub-hdd/qemu/100/config Origin: /home/julian/ansible/roles/pve-vm/tasks/main.yml:1:3 1 - name: Create and start VM ^ column 3 fatal: [pbs-rzclub.holzmarkt-it.de -> 127.0.0.1]: FAILED! => { "changed": false } MSG: Task failed: Module failed: 500 Server Error: VM is locked (clone) for url: https://pve-rzclub-hdd.holzmarkt-it.de:443/api2/json/nodes/pve-rzclub-hdd/qemu/100/config ``` Workaround: Restart the Ansible run after clone has finished
Sign in to join this conversation.
No labels
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
infra/ansible-role-pve-vm#1
No description provided.