bb-Ricardo / netbox-sync

Sync objects from VMware or redfish sources to NetBox
MIT License
282 stars 65 forks source link

2 same named VMs on two different clusters overwriting themselfes each run #395

Open Littlericket opened 4 months ago

Littlericket commented 4 months ago

Two same named VMs in different vCenter clusters, one being online and the other is offline.

Each run the online VM gets an IP assigned, and site changed to the one where the VM is running. Next run the VM is set as "offline", getting their site id changed again and gets the primary_ipv4 removed. The same applies with attached disks and vNICS. They get removed from the offline variant of the VM and get created again when the online variant VM from the other cluster is being used.

This repeats each run, obviously. Tags are interestingly not being changed (as I would suspect having the other vCenter name as an tag added, and using for filter the next run).

image image

I would expect to have two VMs in netbox, assigned to different sites/clusters instead of having one VM where each run the cluster information gets overwritten by the other VM. Tried running with v1.6.0 and latest development branch.

bb-Ricardo commented 4 months ago

Hi,

does this help?: https://github.com/bb-Ricardo/netbox-sync/issues/301