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

Error while updating Clusters without site

Open joachimBurket opened this issue 6 months ago • 5 comments

After upgrading NetBox in v4.2.9 and Netbox-sync in v1.8.0, the Clusters without Site (configured with cluster_site_relation: .* = <NONE>) can't be updated anymore. While parsing the Clusters, the synchro gives me the following error:

ERROR: This 'site' data structure does not contain the primary key 'name' got: {'name': None}

I think this is related to the scope_type field added to NetBox Cluster object in NetBox (https://github.com/bb-Ricardo/netbox-sync/commit/80ac276b7beaa4fd18d2b5437abab9c3037dc75b).

joachimBurket avatar Jul 03 '25 15:07 joachimBurket

Hello, I opened a discussion on the same error a few days ago. #466

steve-hbt avatar Jul 04 '25 07:07 steve-hbt

Oh thanks, I forgot to look in the discussions before opening the issue.

@steve-hbt for me the line added in #469 seems to have solved the issue. Can you try it to see if it also work for you?

joachimBurket avatar Jul 04 '25 07:07 joachimBurket

Oh thanks, I forgot to look in the discussions before opening the issue.

@steve-hbt for me the line added in #469 seems to have solved the issue. Can you try it to see if it also work for you?

Hello @joachimBurket I've just tested your modification, and in my environment, it seems to resolve the error!

Thanks for help!

steve-hbt avatar Jul 04 '25 14:07 steve-hbt

Thank you so much for figuring this out.

bb-Ricardo avatar Jul 04 '25 20:07 bb-Ricardo

please read: https://github.com/bb-Ricardo/netbox-sync/issues/474

bb-Ricardo avatar Jul 23 '25 21:07 bb-Ricardo