Skip to content

One server is not syncing #491

@SerhiiZahuba

Description

@SerhiiZahuba

Hello. Please help me find the problem. I added a new server, did everything as before,
new site
new server
added mapping to settings (network to site name).
I see a problem, a new device was not created and the logs say about a problem with Rack which is located in another site.

ip server 10.0.15.19

2026-01-24 16:21:11,256 - DEBUG2: Resolving dependency: IP address 2026-01-24 16:21:11,266 - INFO: Updating NetBox 'device' object '10.0.15.19' with data: {'name': '10.0.15.19', 'device_type': 110, 'platform': 96, 'serial': 'E497867X5B03784', 'asset_tag': 'Base Board Asset Tag', 'site': 50, 'primary_ip4': 1211, 'cluster': 86, 'custom_fields': {'DataCenterID': None, 'host_cpu_cores': '48 INTEL(R) XEON(R) GOLD 6542Y', 'host_memory': '256 GB', 'vcsa_host_cpu_cores': '12 Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz', 'vcsa_host_memory': '128 GB'}} 2026-01-24 16:21:11,267 - DEBUG2: Sending PATCH to 'https://netbox.:443/api/dcim/devices/59/' with data 'b'{"name": "10.0.15.19", "device_type": 110, "platform": 96, "serial": "E497867X5B03784", "asset_tag": "Base Board Asset Tag", "site": 50, "primary_ip4": 1211, "cluster": 86, "custom_fields": {"DataCenterID": null, "host_cpu_cores": "48 INTEL(R) XEON(R) GOLD 6542Y", "host_memory": "256 GB", "vcsa_host_cpu_cores": "12 Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz", "vcsa_host_memory": "128 GB"}}''. 2026-01-24 16:21:11,409 - DEBUG2: Received HTTP Status 400. 2026-01-24 16:21:11,409 - ERROR: NetBox returned: PATCH /api/dcim/devices/59/ Bad Request 2026-01-24 16:21:11,409 - ERROR: NetBox returned body: {'rack': ['Rack Rack GigaCenter_Rack_1 does not belong to site Serbia_DC2.']} 2026-01-24 16:21:11,409 - ERROR: Request Failed for device. Used data: {'name': '10.0.15.19', 'device_type': 110, 'platform': 96, 'serial': 'E497867X5B03784', 'asset_tag': 'Base Board Asset Tag', 'site': 50, 'primary_ip4': 1211, 'cluster': 86, 'custom_fields': {'DataCenterID': None, 'host_cpu_cores': '48 INTEL(R) XEON(R) GOLD 6542Y', 'host_memory': '256 GB', 'vcsa_host_cpu_cores': '12 Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz', 'vcsa_host_memory': '128 GB'}} 2026-01-24 16:21:11,417 - DEBUG2: Adding unresolved dependencies back to object: ['platform'] 2026-01-24 16:21:11,417 - DEBUG2: Parsing 'virtual machine' data structure: -HQ-VS-LNX-HA 2026-01-24 16:21:11,420 - DEBUG2: Resolving dependency: MAC address 2026-01-24 16:21:11,435 - INFO: Updating NetBox 'interface' object 'vmk0 (10.0.15.19)' with data: {'primary_mac_address': 490, 'description': 'Management Network (vSwitch0, vlan ID: 15)', 'untagged_vlan': 279} 2026-01-24 16:21:11,435 - DEBUG2: Sending PATCH to 'https://netbox.:443/api/dcim/interfaces/1114/' with data 'b'{"primary_mac_address": 490, "description": "Management Network (vSwitch0, vlan ID: 15)", "untagged_vlan": 279}''. 2026-01-24 16:21:11,534 - DEBUG2: Received HTTP Status 400. 2026-01-24 16:21:11,534 - ERROR: NetBox returned: PATCH /api/dcim/interfaces/1114/ Bad Request 2026-01-24 16:21:11,534 - ERROR: NetBox returned body: {'untagged_vlan': ["The untagged VLAN (Management Network (15)) must belong to the same site as the interface's parent device, or it must be global."]} 2026-01-24 16:21:11,534 - ERROR: Request Failed for interface. Used data: {'primary_mac_address': 490, 'description': 'Management Network (vSwitch0, vlan ID: 15)', 'untagged_vlan': 279} 2026-01-24 16:21:11,535 - INFO: Updating NetBox 'interface' object 'vmnic0 (10.0.15.19)' with data: {'primary_mac_address': 484, 'tagged_vlans': [279]} 2026-01-24 16:21:11,535 - DEBUG2: Sending PATCH to 'https://netbox.:443/api/dcim/interfaces/2496/' with data 'b'{"primary_mac_address": 484, "tagged_vlans": [279]}''. 2026-01-24 16:21:11,645 - DEBUG2: Received HTTP Status 400. 2026-01-24 16:21:11,645 - ERROR: NetBox returned: PATCH /api/dcim/interfaces/2496/ Bad Request 2026-01-24 16:21:11,645 - ERROR: NetBox returned body: {'tagged_vlans': ["VLAN Management Network (15) must belong to the same site as the interface's parent device, or it must be global."]} 2026-01-24 16:21:11,645 - ERROR: Request Failed for interface. Used data: {'primary_mac_address': 484, 'tagged_vlans': [279]} 2026-01-24 16:21:11,676 - INFO: Updating NetBox 'interface' object 'vmnic1 (10.0.15.19)' with data: {'primary_mac_address': 493} 2026-01-24 16:21:11,676 - DEBUG2: Sending PATCH to 'https://netbox.c:443/api/dcim/interfaces/1832/' with data 'b'{"primary_mac_address": 493}''. 2026-01-24 16:21:11,876 - DEBUG2: Received HTTP Status 200. 2026-01-24 16:21:11,898 - ERROR: Unfortunately updated item platform for object -HQ-VS-LNX-HA could not be fully resolved: <NBPlatform instance 'Linux 6.12.18-haos Home Assistant OS 15.0 (Open Virtual Appliance) 15.0 Home Assistant OS 15.0 cpe:2' at 140397396109968> 2026-01-24 16:21:11,903 - INFO: Pruning orphaned data in NetBox 2026-01-24 16:21:11,903 - DEBUG2: Object 'MAC address' '00:50:56:93:2E:1E' is Orphaned. Last time changed: 2026-01-24T15:31:22 2026-01-24 16:21:11,904 - DEBUG2: Object 'Virtual Disk' 'Hard disk 1' is Orphaned. Last time changed: 2026-01-24T15:31:23 2026-01-24 16:21:11,905 - DEBUG2: Object 'virtual machine interface' 'vNIC 1 (vmnic0_vlan15) (22)' is Orphaned. Last time changed: 2026-01-24T16:16:57 2026-01-24 16:21:11,906 - DEBUG2: Object 'virtual machine' '22' is Orphaned. Last time changed: 2026-01-24T15:31:22 2026-01-24 16:21:11,913 - INFO: Completed NetBox Sync in 1 minute, 8 seconds

ERROR: NetBox returned body: {'tagged_vlans': ["VLAN Management Network (15) must belong to the same site as the interface's parent device, or it must be global."]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions