Open dmembibre opened 1 year ago
i had a similar problem to this. It ended up being caused by my first failed attempt. I had to delete a few entires that were brought in from an incomplete sync.
The problem is that the plugin dose not create vlans. My proxmox host has vlan tagaded interfaces so first I had to create the vlans in netbox. This slowed my problem.
I get the same error, but for me I noticed that is happens whenever the MTU on the interface is set to 1 (match the MTU of the bridge). Removing the MTU of one (letting it be the default value of 1500) resolves the issue.
Netbox V3.6.4 Proxbox V0.0.5 Proxmox 8.0.4
Nov 20 13:43:30 netbox NetBox[287696]: level=ERROR,logger=django.request,msg=Internal Server Error: /plugins/proxbox/full_update/
Traceback (most recent call last):
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_proxbox/views.py", line 93, in get
"virtualmachines_table": VMUpdateResult(proxbox_api.update.all(remove_unused = True)["virtualmachines"]),
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/update.py", line 448, in all
vm_updated = virtual_machine(proxmox_json = px_vm_each)
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/update.py", line 312, in virtual_machine
full_update = vm_full_update(netbox_vm, proxmox_json)
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/update.py", line 36, in vm_full_update
interfaces_updated = updates.virtual_machine.interfaces(netbox_vm, proxmox_vm)
File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/updates/virtual_machine.py", line 318, in interfaces
brg = nb.dcim.interfaces.get(device_id=node.id, name=_bridge)
AttributeError: 'NoneType' object has no attribute 'id'
When attempting to retrieve data from the cluster, the following error is displayed
And de logs says