Closed mcbenjemaa closed 8 months ago
Recreation: deploy cluster, delete cluster, deploy cluster
triggers this reliably (as this is about VMID reuse).
I couldn't reproduced it the whole time
The issue happens here, If the VM is not found, it will trigger the UpdateVMLocation. which will check the vmid in the other nodes. But since at the cloning time, Proxmox initializes the VM with its previous name. Therefore when a reconciliation happens in this case. it will throw this error state.
I improved this before by checking if the ProxmoxMachine has a task, so skipping:
The potential fix, can be to return just an error in this case, so the next reconciliation can succeed:
I don't know if it's okay, with this. CC @lubedacht
I found a workaround, Make a new call to fetch the updated VM config cause the cluster resources Call is lazy.
https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/config
What steps did you take and what happened: [A clear and concise description of what the bug is.]
What did you expect to happen:
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):