netbox-proxbox
netbox-proxbox copied to clipboard
AttributeError while running Proxmox Full Update for the first time
Greetings,
I'm getting this error when tried to run Proxmox Full update for the first time.
Netbox 3.5.4 Proxmox 7.4
I don't know if it helps at all, but this is from my logs. The Cluster gets added to Netbox, but fails after that.
Dec 13 19:40:41 Nurple gunicorn[825134]: File "/opt/netbox-3.6.4/venv/lib/python3.11/site-packages/netbox_proxbox/proxbox_api/update.py", line 392, in nodes
Dec 13 19:40:41 Nurple gunicorn[825134]: full_update = node_full_update(netbox_node, proxmox_json, proxmox_cluster)
Dec 13 19:40:41 Nurple gunicorn[825134]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 13 19:40:41 Nurple gunicorn[825134]: File "/opt/netbox-3.6.4/venv/lib/python3.11/site-packages/netbox_proxbox/proxbox_api/update.py", line 60, in node_full_update
Dec 13 19:40:41 Nurple gunicorn[825134]: cluster_updated = updates.node.cluster(netbox_node, proxmox_json, proxmox_cluster)
Dec 13 19:40:41 Nurple gunicorn[825134]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 13 19:40:41 Nurple gunicorn[825134]: File "/opt/netbox-3.6.4/venv/lib/python3.11/site-packages/netbox_proxbox/proxbox_api/updates/node.py", line 64, in cluster
Dec 13 19:40:41 Nurple gunicorn[825134]: if netbox_node.cluster.name != proxmox_cluster['name']:
Dec 13 19:40:41 Nurple gunicorn[825134]: ^^^^^^^^^^^^^^^^^^^^^^^^
Dec 13 19:40:41 Nurple gunicorn[825134]: AttributeError: 'NoneType' object has no attribute 'name'
Got the same as dennyreiter.