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

AttributeError while running Proxmox Full Update for the first time

Open limachristian opened this issue 11 months ago • 2 comments

Greetings,

I'm getting this error when tried to run Proxmox Full update for the first time.

image

Netbox 3.5.4 Proxmox 7.4

limachristian avatar Aug 24 '23 15:08 limachristian

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'

dennyreiter avatar Dec 14 '23 01:12 dennyreiter

Got the same as dennyreiter.

andyfsimon avatar Mar 13 '24 10:03 andyfsimon