vNIC disabled for VM in FT after sync - VM looses its primary IP #457
Replies: 2 comments 4 replies
-
Hi, Would firstly recommend to upgrade to the latest 1.8.0 release. On the other hand I don't know how the FT feature works in VMware. May I suggest to test 1.8.0 and play around with the FT feature on said VM and report back on the findings. That would be highly appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
-
HI Ricardo, I upgraded to latest 1.8.0 release and made some tests. WARNING: Virtual machine 'TACP-BE-HDEM001' for cluster 'xxxxx' already parsed. Make sure to use unique VM names. Skipping and on NetBox the vm has any primary IP assigned. Then, I tested with FT disabled, so the VM is unique. In this case the netbox-sync script assigned correctly the primary IP to the VM. With FT enabled, two virtual machine with the same name exist: primary vm and secondary vm. The secondary VM is ready to start As a workaround I will exclude FT virtual machines from syncing. Maybe, to avoid this issue, it might be sufficient to test the FT status and if the role of the vm is secondary, skip that vm. Thanks Antonella |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Ricardo,
First of all, I really appreciate the netbox-sync tool — I'm using it to synchronize our VMware datacenters.
My current setup is NetBox v3.7.3 and netbox-sync 1.6.0.
Sometimes, after running a sync, a VM loses its primary IP address.
In some cases, I’ve noticed that simply restarting VMware Tools resolves the issue, and the primary IP is correctly restored during the next sync.
Recently, however, I’ve encountered this issue with a few VMs that are configured with Fault Tolerance (FT), where both a primary and a secondary VM exist.
After enabling debug logging, I see that the sync process correctly finds the device by MAC address, finds the VM, the NIC, and the VLAN — but the IP is not detected as assigned to the vNIC, and it gets removed.
2025-05-08 16:14:37,938 - DEBUG2: Trying to match current object interfaces in NetBox with discovered interfaces
2025-05-08 16:14:37,949 - DEBUG2: Found '1' NICs in NetBox for 'TACP-BE-HDEM001'
2025-05-08 16:14:37,949 - DEBUG2: Found 1:1 name match for NIC 'vNIC 1 (VL501_HRZ-BE)'
2025-05-08 16:14:37,949 - DEBUG2: Parsing 'virtual machine interface' data structure: vNIC 1 (VL501_HRZ-BE) (TACP-BE-HDEM001)
2025-05-08 16:14:37,969 - INFO: IP address is no longer assigned to vNIC 1 (VL501_HRZ-BE) (TACP-BE-HDEM001) and therefore removed from this interface
2025-05-08 16:14:37,969 - INFO: Setting attribute 'primary_ip4' for 'TACP-BE-HDEM001' to None
2025-05-08 16:14:37,969 - INFO: Setting attribute 'assigned_object_id' for '10.5.101.10/24' to None
2025-05-08 16:14:37,969 - INFO: Setting attribute 'assigned_object_type' for '10.5.101.10/24' to None
Could the FT setup be causing this behavior?
Any insight on how netbox-sync handles FT configurations and IP assignments in such cases would be greatly appreciated.
Thanks again for your work on this tool!
Antonella
Beta Was this translation helpful? Give feedback.
All reactions