netdevopsbr / netbox-proxbox

Netbox Plugin for integration between Proxmox and Netbox
Apache License 2.0
321 stars 45 forks source link

Interfaces from all VMs are deleted when executing Proxmox Full Update #140

Open lug-gh opened 11 months ago

lug-gh commented 11 months ago

Hi, when press the Proxmox Full Update button all interfaces and IPs from the VMs are deleted, when I press the button a second time after that, they are restored (created again).

Is this normal behaviour?

proxmox: 8.0.3 netbox: 3.5.7 proxbox: 0.0.5

lug-gh commented 11 months ago

Ok this is definitely not the default behavior.

I have now created a few more VMs in Proxmox, pressed the button in netbox, and now the IPs of all existing VMs in netbox have been deleted, and those of the new VMs created. If I press the button again it is the other way around, the old VMs get IPs again, the IPs of the new VMs are deleted.

lug-gh commented 11 months ago

1st press:

image

2nd press: image

troycarpenter commented 5 months ago

1st press:

2nd press:

I'm not sure I understand what you are getting at. Where is that screen you showed? Is this related to the "Proxmox Keep Interface" field? Should that be set to true for all VMs?

I'm having the same problem as in the OP. I did take a backup before trying the update so I was able to restore once all the interfaces disappeared.

lug-gh commented 5 months ago

1st press: 2nd press:

I'm not sure I understand what you are getting at. Where is that screen you showed? Is this related to the "Proxmox Keep Interface" field? Should that be set to true for all VMs?

I'm having the same problem as in the OP. I did take a backup before trying the update so I was able to restore once all the interfaces disappeared.

I think this was the default screen after pressing "Proxmox Full Update" (https://github.com/netdevopsbr/netbox-proxbox?tab=readme-ov-file#4-usage) I'm not sure about that though, I don't use the plugin anymore and have switched my workflow to terraform.

troycarpenter commented 5 months ago

Ah, I see. I'm not sure I've ever seen that screen. My full update times out during the operation, so I never see those screens if they still exist. I'm still wondering if that's what the "proxmox_keep_interface" does, but I've not wanted to run a full update again since it wiped out all my prior interface data.

troycarpenter commented 5 months ago

Setting the "proxmox_keep_interface" setting to true did NOT help. Subsequent "Full Update" runs after the initial one deletes all the interfaces on the VMs, along with any IP address information that had been added (and the primary IP indicators).

troycarpenter commented 5 months ago

I also had to make the changes listed in issue https://github.com/netdevopsbr/netbox-proxbox/issues/167 before the full update would run.