[GH-ISSUE #88] Can't clone template #46

Closed
opened 2026-02-27 15:46:09 +03:00 by kerem · 1 comment
Owner

Originally created by @packmad on GitHub (Feb 18, 2022).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/88

Originally assigned to: @jhollowe on GitHub.

I am trying to clone a template with the following code:


 proxmox_node = proxmox.nodes(NODE)

 proxmox_node.qemu(123).status.start.post()  # it works

 next_id = max([int(vm['vmid']) for vm in proxmox_node.qemu.get()]) + 1
 proxmox_node.qemu(142).clone.post(newid=next_id)  
 # fails: proxmoxer.core.ResourceException: 403 Forbidden: Permission check failed - b'{"data":null}'

What am I doing wrong? If I use the web interface to clone the template it works (obviously with the same user)

Originally created by @packmad on GitHub (Feb 18, 2022). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/88 Originally assigned to: @jhollowe on GitHub. I am trying to clone a template with the following code: ``` proxmox_node = proxmox.nodes(NODE) proxmox_node.qemu(123).status.start.post() # it works next_id = max([int(vm['vmid']) for vm in proxmox_node.qemu.get()]) + 1 proxmox_node.qemu(142).clone.post(newid=next_id) # fails: proxmoxer.core.ResourceException: 403 Forbidden: Permission check failed - b'{"data":null}' ``` What am I doing wrong? If I use the web interface to clone the template it works (obviously with the same user)
Author
Owner

@packmad commented on GitHub (Feb 19, 2022):

Problem solved. My bad: I had to specify the pool

proxmox_node.qemu(142).clone.post(newid=next_id, pool='MyPool')

<!-- gh-comment-id:1045975211 --> @packmad commented on GitHub (Feb 19, 2022): Problem solved. My bad: I had to specify the pool `proxmox_node.qemu(142).clone.post(newid=next_id, pool='MyPool')`
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#46
No description provided.