Proxmox auto-sync creates duplicate hosts and misses running VMs
What happened?
I'm experiencing issues with the automatic synchronization feature of the Proxmox plugin.
My setup consists of 1 Proxmox cluster with 4 nodes, all configured in Termix.
The automatic synchronization is not working correctly:
- Duplicate Termix hosts are created for the same VM within the same Proxmox cluster.
- Some VMs are missing after synchronization.
- Sometimes, only stopped VMs are synchronized, while running VMs are not detected or imported correctly.
- The synchronization does not consistently maintain a single Termix host per Proxmox VM.
It appears that the plugin may not correctly identify and match existing VMs when multiple nodes from the same cluster are configured.
Expected behavior: Each VM should appear exactly once in Termix, regardless of which Proxmox node it is running on. Running and stopped VMs should both be detected, and subsequent synchronizations should update existing hosts without creating duplicates.
Actual behavior: Duplicate hosts appear
Steps to reproduce
- Set up a Proxmox cluster with 4 nodes.
- Add all 4 Proxmox nodes to Termix and configure the Proxmox plugin.
- Enable automatic guest synchronization for multiple nodes within the same cluster.
- Allow the automatic synchronization to run.
- Check the synchronized hosts in Termix.
- Observe that some VMs appear multiple times, while others are missing.
- In some cases, only stopped VMs are synchronized, while running VMs are not imported.
Expected result: One unique Termix host per Proxmox VM, with all VMs correctly detected.
Actual result: Duplicate hosts and incomplete VM synchronization.
Termix version
26.11.1 / plugins 1.3.0
Platform
Termix Web UI – Proxmox Plugin
[!NOTE] Submitted via the Termix Discord Support Bot Reported by aurelien23 on Discord View Discord thread
Auto-triage
Proxmox auto-sync creates duplicate hosts and misses running VMs when multiple cluster nodes are configured.
| Field | Value |
|---|---|
| Type | Bug |
| Difficulty | 3/5 (Moderate) |
| Priority | Medium |
More info needed: The maintainer needs to know if 'Discover' shows the missing VMs and if there are sync errors.
A maintainer will take a look. If anything above looks wrong, just say so.
Thanks. The duplicates came from auto sync running on all four nodes at the same time: each node read the host list while another was still adding guests to it. Proxmox 1.3.1 runs them one after another, so each guest is made once.
For the missing running VMs I need a bit more: when you press Discover on one node in the Proxmox host settings, do those VMs show up in the list? And does the sync status on that host show any errors?
@termix-github-bot[bot] this issue still needs the info asked for above. If nothing is added in the next 7 days it will be closed. You can always reopen it by replying.
Closing this since there was no reply to the question above. Reply any time and the issue will be reopened.