netdevopsbr / netbox-proxbox

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

AttributeError while running Proxmox Full Update for the first time #143

Open limachristian opened 10 months ago

limachristian commented 10 months ago

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

dennyreiter commented 7 months ago

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'
andyfsimon commented 4 months ago

Got the same as dennyreiter.