netbox-proxbox icon indicating copy to clipboard operation
netbox-proxbox copied to clipboard

Interfaces from all VMs are deleted when executing Proxmox Full Update

Open lug-gh opened this issue 2 years ago • 7 comments

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 avatar Aug 10 '23 13:08 lug-gh

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 avatar Aug 11 '23 15:08 lug-gh

1st press:

image

2nd press: image

lug-gh avatar Aug 11 '23 15:08 lug-gh

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.

troycarpenter avatar Feb 07 '24 19:02 troycarpenter

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.

lug-gh avatar Feb 08 '24 12:02 lug-gh

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 avatar Feb 08 '24 14:02 troycarpenter

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 avatar Feb 08 '24 19:02 troycarpenter

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

troycarpenter avatar Feb 08 '24 19:02 troycarpenter