Automation · Proxmox Automation
Proxmox Automation Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5731
Answer
Troubleshoot Proxmox automation by checking API token privileges and paths, task logs in the UI or pvesh get /cluster/tasks, locked VMs (qm unlock), storage availability and cloud-init settings.
Remember
- Token privileges and paths cause many failures.
- VMs can be left locked after failed tasks.
- Task logs explain errors.
First checks
journalctl -u pveproxy -u pvedaemon --since -1h— API errorspvesh get /nodes/<node>/tasks --errors 1— failed tasks- Token privileges (pveum acl list) — permissions
Verify in this order
automation → API → task → error
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5731