-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Is this urgent?
No
How are you running netbox-ssot?
Podman
Which version of netbox are you using
v1.11.6
Which version of netbox-ssot are you running
Running version v1.11.6 built on 2025-04-06T15:09:34Z (commit b288ee3)
Which module has the issue?
Ovirt
Share your configuration
logger:
level: 0
dest: ""
netbox:
apiToken: "041............9b36d908"
hostname: "netbox-clone.eltex.loc"
httpScheme: https
port: 443
timeout: 30
sourcePriority: ["olvm"] # Not required, but recommended
removeOrphans: true
source:
- name: olvm
type: ovirt
hostname: "ovirt.eltex.loc"
httpScheme: https
port: 443
username: "netbox@internal"
password: "XXXXXXXX"
interfaceFilter: (cali|vxlan|flannel|docker|.*\.\d+)
caFile: "/EltexRootCA.crt"
hostSiteRelations:
- .* = ЭлтексWhat is the problem?
NetBox Community v4.3.2-Docker-3.3.0, Ovirt Software Version:4.5.6-1.el9
The data is partially loaded, but when it reaches a certain server, the application crashes while creating its environment.
2025/06/20 02:03:14 add_items.go:706 DEBUG (olvm): Manufacturer HPE already exists in Netbox and is up to date... 2025/06/20 02:03:14 add_items.go:764 DEBUG (olvm): Device type ProLiant DL160 G6 does not exist in Netbox. Creating it... 2025/06/20 02:03:14 rest.go:164 DEBUG (olvm): Creating objects.DeviceType with path /api/dcim/device-types/ with data: DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } 2025/06/20 02:03:14 rest.go:192 DEBUG (olvm): Successfully created objects.DeviceType: DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6} 2025/06/20 02:03:14 add_items.go:801 DEBUG (olvm): Platform RHEL 9 (64-bit) already exists in Netbox but is out of date. Patching it... 2025/06/20 02:03:14 rest.go:123 DEBUG (olvm): Patching objects.Platform with path /api/dcim/platforms/3/ with data: map[manufacturer:{9}] 2025/06/20 02:03:14 rest.go:152 DEBUG (olvm): Successfully patched objects.Platform: Platform{Name: RHEL 9 (64-bit), Manufacturer: Manufacturer{Name: HPE}} 2025/06/20 02:03:14 add_items.go:649 DEBUG (olvm): Device role Server already exists in Netbox and is up to date... 2025/06/20 02:03:14 add_items.go:876 DEBUG (olvm): Device v42.eltex.loc does not exist in Netbox. Creating it... 2025/06/20 02:03:14 rest.go:164 DEBUG (olvm): Creating objects.Device with path /api/dcim/devices/ with data: Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} 2025/06/20 02:03:14 main.go:117 ERROR (olvm): failed to add oVirt host Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} with error: unexpected status code: 400: {"device_type":["This field is required."]} 2025/06/20 02:03:14 main.go:136 INFO (main): Skipping removing orphaned objects because run failed... 2025/06/20 02:03:14 main.go:152 INFO (main): ⚠ syncing of source olvm failed with: failed to add oVirt host Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} with error: unexpected status code: 400: {"device_type":["This field is required."]}
Restarting results in another error
2025/06/20 02:07:29 add_items.go:119 DEBUG (olvm): Site Элтекс already exists in Netbox and is up to date... 2025/06/20 02:07:29 add_items.go:706 DEBUG (olvm): Manufacturer HPE already exists in Netbox and is up to date... 2025/06/20 02:07:29 add_items.go:764 DEBUG (olvm): Device type ProLiant DL160 G6 does not exist in Netbox. Creating it... 2025/06/20 02:07:29 rest.go:164 DEBUG (olvm): Creating objects.DeviceType with path /api/dcim/device-types/ with data: DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } 2025/06/20 02:07:29 main.go:117 ERROR (olvm): extract host data: failed adding oVirt DeviceType DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } with error: unexpected status code: 400: {"__all__":["Device type with this Manufacturer and Model already exists.","Device type with this Manufacturer and Slug already exists."]} 2025/06/20 02:07:29 main.go:136 INFO (main): Skipping removing orphaned objects because run failed... 2025/06/20 02:07:29 main.go:152 INFO (main): ⚠ syncing of source olvm failed with: extract host data: failed adding oVirt DeviceType DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } with error: unexpected status code: 400: {"__all__":["Device type with this Manufacturer and Model already exists.","Device type with this Manufacturer and Slug already exists."]}
Pay attention to the line: 2025/06/20 02:07:29 add_items.go:764 DEBUG (olvm): Device type ProLiant DL160 G6 does not exist in Netbox. Creating it...
In fact, such an object has already been created, but the application is trying to create it again. I think the reason is that the ProLiant DL160 G6__ string with two spaces at the end is read and compared, and Netbox clears the spaces at the input, so the strings are not equal.
Steps to reproduce
- Run
podman run -v /opt/pods/netbox-ssot/config.yaml:/app/config.yaml -v /opt/pods/netbox-ssot/EltexRootCA.crt:/EltexRootCA.crt ghcr.io/src-doo/netbox-ssot - Objects are created, the order is always random.
- Sometimes errors occur that are not considered now, but restarting the application helps to move forward.
- We reach one of the two servers v41 or v42 (the same) and the first crash occurs with the error
2025/06/20 02:03:14 rest.go:164 DEBUG (olvm): Creating objects.Device with path /api/dcim/devices/ with data: Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Eltex}} - We restart the application, after some time we get the error `2025/06/20 02:07:29 main.go:152 INFO (main): ⚠ syncing of source olvm failed with: extract host data: failed adding oVirt DeviceType DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } with error: unexpected status code: 400: {"all":["Device type with this Manufacturer and Model already exists.","Device type with this Manufacturer and Slug already exists."]}``
- There are no further options to bypass this error, you can delete Device Type, but then everything will repeat from point 4.
What did you expect to happen?
Import of Ovirt objects is successful
What actually happened?
The import stops at specific objects and does not proceed further. It is not possible to exclude erroneous objects manually.
Share DEBUG-level logs (remove sensitive information)
Log1
--------------------------
Running version v1.11.6 built on 2025-04-06T15:09:34Z (commit b288ee365066180b464bf53b130a6a0377b17cac)
Netbox-SSOT has started at 2025-06-20T02:30:13Z
2025/06/20 02:30:13 main.go:53 DEBUG (main): Parsed Logger config: LoggerConfig{Level: 0, Dest: stdout}
2025/06/20 02:30:13 main.go:54 DEBUG (main): Parsed Netbox config: NetboxConfig{ApiToken: 041b837b359cd372e6becc0541ebb8b29b36d908, Hostname: netbox-clone.eltex.loc, Port: 443, HTTPScheme: https, ValidateCert: false, Timeout: 30, Tag: netbox-ssot, TagColor: 00add8, RemoveOrphans: true, RemoveOrphansAfterDays: 0}
2025/06/20 02:30:13 main.go:55 DEBUG (main): Parsed Source config: [SourceConfig{Name: olvm, Type: ovirt, HTTPScheme: https, Hostname: ovirt.eltex.loc, Port: 443, Username: netbox@internal, Password: P6Fs267IR2, PermittedSubnets: [], ValidateCert: false, Tag: Source: olvm, TagColor: aa1409, AssignDomainName: , DatacenterClusterGroupRelations: map[], HostSiteRelations: map[.*:Элтекс], ClusterSiteRelations: map[], ClusterTenantRelations: map[], HostTenantRelations: map[], VmTenantRelations: map[], VlanGroupRelations: map[], VlanTenantRelations: map[], WlanTenantRelations: map[]}]
2025/06/20 02:30:13 main.go:64 DEBUG (main): Netbox inventory: NetBoxInventory{Logger: &{Logger:0xc000b01470 level:0}, NetboxConfig: NetboxConfig{ApiToken: 041b837b359cd372e6becc0541ebb8b29b36d908, Hostname: netbox-clone.eltex.loc, Port: 443, HTTPScheme: https, ValidateCert: false, Timeout: 30, Tag: netbox-ssot, TagColor: 00add8, RemoveOrphans: true, RemoveOrphansAfterDays: 0}...}
2025/06/20 02:30:13 main.go:66 INFO (main): Starting initializing netbox inventory
2025/06/20 02:30:13 inventory.go:248 DEBUG (inventory): Initializing Netbox API with baseURL: https://netbox-clone.eltex.loc:443
2025/06/20 02:30:13 rest.go:32 DEBUG (inventory): Getting netbox's version
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.CustomField from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.CustomField with limit=250 and offset=0
2025/06/20 02:30:13 rest.go:104 DEBUG (inventory): Successfully received all objects.CustomField: [CustomField{ID: 17, Name: arp_entry} CustomField{ID: 14, Name: host_cpu_cores} CustomField{ID: 15, Name: host_memory} CustomField{ID: 12, Name: orphan_last_seen} CustomField{ID: 11, Name: source} CustomField{ID: 13, Name: source_id} CustomField{ID: 16, Name: uuid} CustomField{ID: 9, Name: slurpit_devicetype} CustomField{ID: 6, Name: slurpit_fqdn} CustomField{ID: 5, Name: slurpit_hostname} CustomField{ID: 10, Name: slurpit_ipv4} CustomField{ID: 8, Name: slurpit_manufacturer} CustomField{ID: 7, Name: slurpit_platform} CustomField{ID: 1, Name: dhcp_lease} CustomField{ID: 2, Name: dhcp_option} CustomField{ID: 3, Name: dhcp_pool} CustomField{ID: 4, Name: hw_address}]
2025/06/20 02:30:13 init_items.go:440 DEBUG (inventory): Successfully collected custom fields from Netbox: map[arp_entry:CustomField{ID: 17, Name: arp_entry} dhcp_lease:CustomField{ID: 1, Name: dhcp_lease} dhcp_option:CustomField{ID: 2, Name: dhcp_option} dhcp_pool:CustomField{ID: 3, Name: dhcp_pool} host_cpu_cores:CustomField{ID: 14, Name: host_cpu_cores} host_memory:CustomField{ID: 15, Name: host_memory} hw_address:CustomField{ID: 4, Name: hw_address} orphan_last_seen:CustomField{ID: 12, Name: orphan_last_seen} slurpit_devicetype:CustomField{ID: 9, Name: slurpit_devicetype} slurpit_fqdn:CustomField{ID: 6, Name: slurpit_fqdn} slurpit_hostname:CustomField{ID: 5, Name: slurpit_hostname} slurpit_ipv4:CustomField{ID: 10, Name: slurpit_ipv4} slurpit_manufacturer:CustomField{ID: 8, Name: slurpit_manufacturer} slurpit_platform:CustomField{ID: 7, Name: slurpit_platform} source:CustomField{ID: 11, Name: source} source_id:CustomField{ID: 13, Name: source_id} uuid:CustomField{ID: 16, Name: uuid}]
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized CustomFields in 0.097132 seconds
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field source already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field orphan_last_seen already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field source_id already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field host_cpu_cores already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field host_memory already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field uuid already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:423 DEBUG (inventory): Custom field arp_entry already exists in Netbox and is up to date...
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized SsotCustomFields in 0.000623 seconds
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.Tag from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.Tag with limit=250 and offset=0
2025/06/20 02:30:13 rest.go:104 DEBUG (inventory): Successfully received all objects.Tag: [Tag{Name: Source: olvm} Tag{Name: netbox-ssot} Tag{Name: netbox-ssot-orphan} Tag{Name: ovirt} Tag{Name: slurpit}]
2025/06/20 02:30:13 init_items.go:29 DEBUG (inventory): Successfully collected tags from Netbox: map[Source: olvm:Tag{Name: Source: olvm} netbox-ssot:Tag{Name: netbox-ssot} netbox-ssot-orphan:Tag{Name: netbox-ssot-orphan} ovirt:Tag{Name: ovirt} slurpit:Tag{Name: slurpit}]
2025/06/20 02:30:13 add_items.go:36 DEBUG (inventory): Tag netbox-ssot already exists in Netbox and is up to date...
2025/06/20 02:30:13 add_items.go:36 DEBUG (inventory): Tag netbox-ssot-orphan already exists in Netbox and is up to date...
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized Tags in 0.076217 seconds
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.ContactGroup from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.ContactGroup with limit=250 and offset=0
2025/06/20 02:30:13 rest.go:104 DEBUG (inventory): Successfully received all objects.ContactGroup: []
2025/06/20 02:30:13 init_items.go:202 DEBUG (inventory): Successfully collected ContactGroups from Netbox: map[]
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized ContactGroups in 0.059900 seconds
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.ContactRole from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.ContactRole with limit=250 and offset=0
2025/06/20 02:30:13 rest.go:104 DEBUG (inventory): Successfully received all objects.ContactRole: [ContactRole{Name: Admin}]
2025/06/20 02:30:13 init_items.go:121 DEBUG (inventory): Successfully collected ContactRoles from Netbox: map[Admin:ContactRole{Name: Admin}]
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized ContactRoles in 0.064770 seconds
2025/06/20 02:30:13 add_items.go:218 DEBUG (inventory): Contact role Admin already exists in Netbox and is up to date...
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized AdminContactRole in 0.000155 seconds
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.Contact from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.Contact with limit=250 and offset=0
2025/06/20 02:30:13 rest.go:104 DEBUG (inventory): Successfully received all objects.Contact: []
2025/06/20 02:30:13 init_items.go:101 DEBUG (inventory): Successfully collected contacts from Netbox: map[]
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized Contacts in 0.051873 seconds
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.ContactAssignment from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.ContactAssignment with limit=250 and offset=0
2025/06/20 02:30:13 rest.go:104 DEBUG (inventory): Successfully received all objects.ContactAssignment: []
2025/06/20 02:30:13 init_items.go:167 DEBUG (inventory): Successfully collected contacts from Netbox: map[]
2025/06/20 02:30:13 inventory.go:308 INFO (inventory): Successfully initialized ContactAssignments in 0.043883 seconds
2025/06/20 02:30:13 rest.go:66 DEBUG (inventory): Getting all objects.Tenant from Netbox
2025/06/20 02:30:13 rest.go:69 DEBUG (inventory): Getting objects.Tenant with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.Tenant: []
2025/06/20 02:30:14 init_items.go:80 DEBUG (inventory): Successfully collected tenants from Netbox: map[]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized Tenants in 0.055233 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.SiteGroup from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.SiteGroup with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.SiteGroup: []
2025/06/20 02:30:14 init_items.go:246 DEBUG (inventory): Successfully collected SiteGroups from Netbox: map[]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized SiteGroups in 0.059944 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.Site from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.Site with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.Site: [Site{Name: DefaultSite} Site{Name: Элтекс}]
2025/06/20 02:30:14 init_items.go:226 DEBUG (inventory): Successfully collected sites from Netbox: map[DefaultSite:Site{Name: DefaultSite} Элтекс:Site{Name: Элтекс}]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized Sites in 0.111311 seconds
2025/06/20 02:30:14 add_items.go:119 DEBUG (inventory): Site DefaultSite already exists in Netbox and is up to date...
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized DefaultSite in 0.000150 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.Manufacturer from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.Manufacturer with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.Manufacturer: [Manufacturer{Name: ASUSTeK COMPUTER INC.} Manufacturer{Name: Eltex} Manufacturer{Name: GIGABYTE} Manufacturer{Name: Giga Computing} Manufacturer{Name: HP} Manufacturer{Name: HPE} Manufacturer{Name: Intel} Manufacturer{Name: Lenovo} Manufacturer{Name: Micro-Star International Co., Ltd.} Manufacturer{Name: OEM} Manufacturer{Name: Supermicro} Manufacturer{Name: other}]
2025/06/20 02:30:14 init_items.go:292 DEBUG (inventory): Successfully collected manufacturers from Netbox: map[ASUSTeK COMPUTER INC.:Manufacturer{Name: ASUSTeK COMPUTER INC.} Eltex:Manufacturer{Name: Eltex} GIGABYTE:Manufacturer{Name: GIGABYTE} Giga Computing:Manufacturer{Name: Giga Computing} HP:Manufacturer{Name: HP} HPE:Manufacturer{Name: HPE} Intel:Manufacturer{Name: Intel} Lenovo:Manufacturer{Name: Lenovo} Micro-Star International Co., Ltd.:Manufacturer{Name: Micro-Star International Co., Ltd.} OEM:Manufacturer{Name: OEM} Supermicro:Manufacturer{Name: Supermicro} other:Manufacturer{Name: other}]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized Manufacturers in 0.070229 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.Platform from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.Platform with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.Platform: [Platform{Name: RHEL 7 (64-bit), Manufacturer: Manufacturer{Name: Lenovo}} Platform{Name: RHEL 9 (64-bit), Manufacturer: Manufacturer{Name: Lenovo}} Platform{Name: switch, Manufacturer: Manufacturer{Name: Eltex}}]
2025/06/20 02:30:14 init_items.go:319 DEBUG (inventory): Successfully collected platforms from Netbox: map[RHEL 7 (64-bit):Platform{Name: RHEL 7 (64-bit), Manufacturer: Manufacturer{Name: Lenovo}} RHEL 9 (64-bit):Platform{Name: RHEL 9 (64-bit), Manufacturer: Manufacturer{Name: Lenovo}} switch:Platform{Name: switch, Manufacturer: Manufacturer{Name: Eltex}}]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized Platforms in 0.070196 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.VM from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.VM with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.VM: [VM{Name: dhcp1, Cluster: <nil>} VM{Name: nextcloud, Cluster: <nil>}]
2025/06/20 02:30:14 init_items.go:895 DEBUG (inventory): Successfully collected VMs from Netbox: map[dhcp1:map[-1:VM{Name: dhcp1, Cluster: <nil>}] nextcloud:map[-1:VM{Name: nextcloud, Cluster: <nil>}]]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized VMs in 0.245877 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.VirtualDisk from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.VirtualDisk with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.VirtualDisk: []
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized VirtualDisks in 0.047271 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.VMInterface from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.VMInterface with limit=250 and offset=0
2025/06/20 02:30:14 rest.go:104 DEBUG (inventory): Successfully received all objects.VMInterface: []
2025/06/20 02:30:14 init_items.go:927 DEBUG (inventory): Successfully collected VM interfaces from Netbox: map[]
2025/06/20 02:30:14 inventory.go:308 INFO (inventory): Successfully initialized VMInterfaces in 0.081003 seconds
2025/06/20 02:30:14 rest.go:66 DEBUG (inventory): Getting all objects.Device from Netbox
2025/06/20 02:30:14 rest.go:69 DEBUG (inventory): Getting objects.Device with limit=250 and offset=0
2025/06/20 02:30:15 rest.go:104 DEBUG (inventory): Successfully received all objects.Device: [Device{Name: dhcp3.eltex.loc, Type: DeviceType{Manufacturer: other, Model: 1U-baremetal}, Role: DeviceRole{Name: Стоечный сервер}, Site: Site{Name: Элтекс}} Device{Name: ovirt.eltex.loc, Type: DeviceType{Manufacturer: other, Model: MZ92-FS0-00}, Role: DeviceRole{Name: Стоечный сервер}, Site: Site{Name: Элтекс}} Device{Name: sw240-l3, Type: DeviceType{Manufacturer: Eltex, Model: MES5324}, Role: DeviceRole{Name: Коммутатор L3}, Site: Site{Name: Элтекс}} Device{Name: sw240-r8, Type: DeviceType{Manufacturer: Eltex, Model: MES2411X}, Role: DeviceRole{Name: Коммутатор L2}, Site: Site{Name: Элтекс}} Device{Name: v1.eltex.loc, Type: DeviceType{Manufacturer: Intel, Model: S5520HC}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v2.eltex.loc, Type: DeviceType{Manufacturer: Intel, Model: S5520HC}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v3.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR650 -[7X06CTO1WW]-}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v4.eltex.loc, Type: DeviceType{Manufacturer: Supermicro, Model: SYS-6019P-WTR}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v5.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: System x3650 M5: -[5462K5G]-}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v6.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR630 V2}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v7.eltex.loc, Type: DeviceType{Manufacturer: HPE, Model: ProLiant DL380 G7}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v8.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR630 V2}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v9.eltex.loc, Type: DeviceType{Manufacturer: Intel, Model: SandyBridge Platform}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v10.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR550 -[7X04CTO1WW]-},
.................................
2025/06/20 02:30:22 add_items.go:801 DEBUG (olvm): Platform RHEL 7 (64-bit) already exists in Netbox but is out of date. Patching it...
2025/06/20 02:30:22 rest.go:123 DEBUG (olvm): Patching objects.Platform with path /api/dcim/platforms/2/ with data: map[manufacturer:{7}]
2025/06/20 02:30:23 rest.go:152 DEBUG (olvm): Successfully patched objects.Platform: Platform{Name: RHEL 7 (64-bit), Manufacturer: Manufacturer{Name: Giga Computing}}
2025/06/20 02:30:23 add_items.go:649 DEBUG (olvm): Device role Server already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:873 DEBUG (olvm): Device v29.eltex.loc already exists in Netbox and is up to date...
2025/06/20 02:30:23 ovirt_sync.go:809 DEBUG (olvm): speed for oVirt nic with id 6dbd8fd8-6927-4bab-94ad-866a747ddf6e is empty
2025/06/20 02:30:23 ovirt_sync.go:809 DEBUG (olvm): speed for oVirt nic with id 12afd06c-af3d-4de4-98ce-69530eec0b86 is empty
2025/06/20 02:30:23 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f3.179 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:23 ovirt_sync.go:809 DEBUG (olvm): speed for oVirt nic with id 4aaad736-0102-480f-b393-6fe3dcb49ef4 is empty
2025/06/20 02:30:23 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f3.151 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/eno1 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1378 DEBUG (olvm): MAC address 74:56:3C:80:E4:17 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/eno1 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/eno2 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1378 DEBUG (olvm): MAC address 74:56:3C:80:E4:18 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/eno2 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f0 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1378 DEBUG (olvm): MAC address 6C:B3:11:98:95:68 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f0 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f3 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1378 DEBUG (olvm): MAC address 6C:B3:11:98:95:6E already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f3 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f1 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1378 DEBUG (olvm): MAC address 6C:B3:11:98:95:6A already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f1 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f2 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1378 DEBUG (olvm): MAC address 6C:B3:11:98:95:6C already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1103 DEBUG (olvm): Interface v29.eltex.loc/enp1s0f2 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1303 DEBUG (olvm): IP address 10.200.75.74/24 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1438 DEBUG (olvm): IP address 10.200.75.0/24 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1303 DEBUG (olvm): IP address 10.24.171.34/24 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:873 DEBUG (olvm): Device v29.eltex.loc already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1438 DEBUG (olvm): IP address 10.24.171.0/24 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1303 DEBUG (olvm): IP address 10.200.76.74/24 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:1438 DEBUG (olvm): IP address 10.200.76.0/24 already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:119 DEBUG (olvm): Site Элтекс already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:706 DEBUG (olvm): Manufacturer HPE already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:764 DEBUG (olvm): Device type ProLiant DL160 G6 does not exist in Netbox. Creating it...
2025/06/20 02:30:23 rest.go:164 DEBUG (olvm): Creating objects.DeviceType with path /api/dcim/device-types/ with data: DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 }
2025/06/20 02:30:23 rest.go:192 DEBUG (olvm): Successfully created objects.DeviceType: DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6}
2025/06/20 02:30:23 add_items.go:801 DEBUG (olvm): Platform RHEL 9 (64-bit) already exists in Netbox but is out of date. Patching it...
2025/06/20 02:30:23 rest.go:123 DEBUG (olvm): Patching objects.Platform with path /api/dcim/platforms/3/ with data: map[manufacturer:{9}]
2025/06/20 02:30:23 rest.go:152 DEBUG (olvm): Successfully patched objects.Platform: Platform{Name: RHEL 9 (64-bit), Manufacturer: Manufacturer{Name: HPE}}
2025/06/20 02:30:23 add_items.go:649 DEBUG (olvm): Device role Server already exists in Netbox and is up to date...
2025/06/20 02:30:23 add_items.go:876 DEBUG (olvm): Device v42.eltex.loc does not exist in Netbox. Creating it...
2025/06/20 02:30:23 rest.go:164 DEBUG (olvm): Creating objects.Device with path /api/dcim/devices/ with data: Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}}
2025/06/20 02:30:23 main.go:117 ERROR (olvm): failed to add oVirt host Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} with error: unexpected status code: 400: {"device_type":["This field is required."]}
2025/06/20 02:30:23 main.go:136 INFO (main): Skipping removing orphaned objects because run failed...
2025/06/20 02:30:23 main.go:152 INFO (main): ⚠ syncing of source olvm failed with: failed to add oVirt host Device{Name: v42.eltex.loc, Type: <nil>, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} with error: unexpected status code: 400: {"device_type":["This field is required."]}
Log2
--------------------
Running version v1.11.6 built on 2025-04-06T15:09:34Z (commit b288ee365066180b464bf53b130a6a0377b17cac)
Netbox-SSOT has started at 2025-06-20T02:30:45Z
2025/06/20 02:30:45 main.go:53 DEBUG (main): Parsed Logger config: LoggerConfig{Level: 0, Dest: stdout}
2025/06/20 02:30:45 main.go:54 DEBUG (main): Parsed Netbox config: NetboxConfig{ApiToken: 041b837b359cd372e6becc0541ebb8b29b36d908, Hostname: netbox-clone.eltex.loc, Port: 443, HTTPScheme: https, ValidateCert: false, Timeout: 30, Tag: netbox-ssot, TagColor: 00add8, RemoveOrphans: true, RemoveOrphansAfterDays: 0}
2025/06/20 02:30:45 main.go:55 DEBUG (main): Parsed Source config: [SourceConfig{Name: olvm, Type: ovirt, HTTPScheme: https, Hostname: ovirt.eltex.loc, Port: 443, Username: netbox@internal, Password: P6Fs267IR2, PermittedSubnets: [], ValidateCert: false, Tag: Source: olvm, TagColor: aa1409, AssignDomainName: , DatacenterClusterGroupRelations: map[], HostSiteRelations: map[.*:Элтекс], ClusterSiteRelations: map[], ClusterTenantRelations: map[], HostTenantRelations: map[], VmTenantRelations: map[], VlanGroupRelations: map[], VlanTenantRelations: map[], WlanTenantRelations: map[]}]
2025/06/20 02:30:45 main.go:64 DEBUG (main): Netbox inventory: NetBoxInventory{Logger: &{Logger:0xc000aed440 level:0}, NetboxConfig: NetboxConfig{ApiToken: 041b837b359cd372e6becc0541ebb8b29b36d908, Hostname: netbox-clone.eltex.loc, Port: 443, HTTPScheme: https, ValidateCert: false, Timeout: 30, Tag: netbox-ssot, TagColor: 00add8, RemoveOrphans: true, RemoveOrphansAfterDays: 0}...}
2025/06/20 02:30:45 main.go:66 INFO (main): Starting initializing netbox inventory
2025/06/20 02:30:45 inventory.go:248 DEBUG (inventory): Initializing Netbox API with baseURL: https://netbox-clone.eltex.loc:443
2025/06/20 02:30:45 rest.go:32 DEBUG (inventory): Getting netbox's version
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.CustomField from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.CustomField with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.CustomField: [CustomField{ID: 17, Name: arp_entry} CustomField{ID: 14, Name: host_cpu_cores} CustomField{ID: 15, Name: host_memory} CustomField{ID: 12, Name: orphan_last_seen} CustomField{ID: 11, Name: source} CustomField{ID: 13, Name: source_id} CustomField{ID: 16, Name: uuid} CustomField{ID: 9, Name: slurpit_devicetype} CustomField{ID: 6, Name: slurpit_fqdn} CustomField{ID: 5, Name: slurpit_hostname} CustomField{ID: 10, Name: slurpit_ipv4} CustomField{ID: 8, Name: slurpit_manufacturer} CustomField{ID: 7, Name: slurpit_platform} CustomField{ID: 1, Name: dhcp_lease} CustomField{ID: 2, Name: dhcp_option} CustomField{ID: 3, Name: dhcp_pool} CustomField{ID: 4, Name: hw_address}]
2025/06/20 02:30:45 init_items.go:440 DEBUG (inventory): Successfully collected custom fields from Netbox: map[arp_entry:CustomField{ID: 17, Name: arp_entry} dhcp_lease:CustomField{ID: 1, Name: dhcp_lease} dhcp_option:CustomField{ID: 2, Name: dhcp_option} dhcp_pool:CustomField{ID: 3, Name: dhcp_pool} host_cpu_cores:CustomField{ID: 14, Name: host_cpu_cores} host_memory:CustomField{ID: 15, Name: host_memory} hw_address:CustomField{ID: 4, Name: hw_address} orphan_last_seen:CustomField{ID: 12, Name: orphan_last_seen} slurpit_devicetype:CustomField{ID: 9, Name: slurpit_devicetype} slurpit_fqdn:CustomField{ID: 6, Name: slurpit_fqdn} slurpit_hostname:CustomField{ID: 5, Name: slurpit_hostname} slurpit_ipv4:CustomField{ID: 10, Name: slurpit_ipv4} slurpit_manufacturer:CustomField{ID: 8, Name: slurpit_manufacturer} slurpit_platform:CustomField{ID: 7, Name: slurpit_platform} source:CustomField{ID: 11, Name: source} source_id:CustomField{ID: 13, Name: source_id} uuid:CustomField{ID: 16, Name: uuid}]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized CustomFields in 0.083125 seconds
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field source already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field orphan_last_seen already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field source_id already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field host_cpu_cores already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field host_memory already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field uuid already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:423 DEBUG (inventory): Custom field arp_entry already exists in Netbox and is up to date...
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized SsotCustomFields in 0.001150 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.Tag from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.Tag with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.Tag: [Tag{Name: Source: olvm} Tag{Name: netbox-ssot} Tag{Name: netbox-ssot-orphan} Tag{Name: ovirt} Tag{Name: slurpit}]
2025/06/20 02:30:45 init_items.go:29 DEBUG (inventory): Successfully collected tags from Netbox: map[Source: olvm:Tag{Name: Source: olvm} netbox-ssot:Tag{Name: netbox-ssot} netbox-ssot-orphan:Tag{Name: netbox-ssot-orphan} ovirt:Tag{Name: ovirt} slurpit:Tag{Name: slurpit}]
2025/06/20 02:30:45 add_items.go:36 DEBUG (inventory): Tag netbox-ssot already exists in Netbox and is up to date...
2025/06/20 02:30:45 add_items.go:36 DEBUG (inventory): Tag netbox-ssot-orphan already exists in Netbox and is up to date...
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized Tags in 0.040656 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.ContactGroup from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.ContactGroup with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.ContactGroup: []
2025/06/20 02:30:45 init_items.go:202 DEBUG (inventory): Successfully collected ContactGroups from Netbox: map[]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized ContactGroups in 0.046345 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.ContactRole from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.ContactRole with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.ContactRole: [ContactRole{Name: Admin}]
2025/06/20 02:30:45 init_items.go:121 DEBUG (inventory): Successfully collected ContactRoles from Netbox: map[Admin:ContactRole{Name: Admin}]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized ContactRoles in 0.056140 seconds
2025/06/20 02:30:45 add_items.go:218 DEBUG (inventory): Contact role Admin already exists in Netbox and is up to date...
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized AdminContactRole in 0.000132 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.Contact from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.Contact with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.Contact: []
2025/06/20 02:30:45 init_items.go:101 DEBUG (inventory): Successfully collected contacts from Netbox: map[]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized Contacts in 0.054002 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.ContactAssignment from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.ContactAssignment with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.ContactAssignment: []
2025/06/20 02:30:45 init_items.go:167 DEBUG (inventory): Successfully collected contacts from Netbox: map[]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized ContactAssignments in 0.039251 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.Tenant from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.Tenant with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.Tenant: []
2025/06/20 02:30:45 init_items.go:80 DEBUG (inventory): Successfully collected tenants from Netbox: map[]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized Tenants in 0.047208 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.SiteGroup from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.SiteGroup with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.SiteGroup: []
2025/06/20 02:30:45 init_items.go:246 DEBUG (inventory): Successfully collected SiteGroups from Netbox: map[]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized SiteGroups in 0.055255 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.Site from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.Site with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.Site: [Site{Name: DefaultSite} Site{Name: Элтекс}]
2025/06/20 02:30:45 init_items.go:226 DEBUG (inventory): Successfully collected sites from Netbox: map[DefaultSite:Site{Name: DefaultSite} Элтекс:Site{Name: Элтекс}]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized Sites in 0.100791 seconds
2025/06/20 02:30:45 add_items.go:119 DEBUG (inventory): Site DefaultSite already exists in Netbox and is up to date...
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized DefaultSite in 0.000206 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.Manufacturer from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.Manufacturer with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.Manufacturer: [Manufacturer{Name: ASUSTeK COMPUTER INC.} Manufacturer{Name: Eltex} Manufacturer{Name: GIGABYTE} Manufacturer{Name: Giga Computing} Manufacturer{Name: HP} Manufacturer{Name: HPE} Manufacturer{Name: Intel} Manufacturer{Name: Lenovo} Manufacturer{Name: Micro-Star International Co., Ltd.} Manufacturer{Name: OEM} Manufacturer{Name: Supermicro} Manufacturer{Name: other}]
2025/06/20 02:30:45 init_items.go:292 DEBUG (inventory): Successfully collected manufacturers from Netbox: map[ASUSTeK COMPUTER INC.:Manufacturer{Name: ASUSTeK COMPUTER INC.} Eltex:Manufacturer{Name: Eltex} GIGABYTE:Manufacturer{Name: GIGABYTE} Giga Computing:Manufacturer{Name: Giga Computing} HP:Manufacturer{Name: HP} HPE:Manufacturer{Name: HPE} Intel:Manufacturer{Name: Intel} Lenovo:Manufacturer{Name: Lenovo} Micro-Star International Co., Ltd.:Manufacturer{Name: Micro-Star International Co., Ltd.} OEM:Manufacturer{Name: OEM} Supermicro:Manufacturer{Name: Supermicro} other:Manufacturer{Name: other}]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized Manufacturers in 0.061395 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.Platform from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.Platform with limit=250 and offset=0
2025/06/20 02:30:45 rest.go:104 DEBUG (inventory): Successfully received all objects.Platform: [Platform{Name: RHEL 7 (64-bit), Manufacturer: Manufacturer{Name: Giga Computing}} Platform{Name: RHEL 9 (64-bit), Manufacturer: Manufacturer{Name: HPE}} Platform{Name: switch, Manufacturer: Manufacturer{Name: Eltex}}]
2025/06/20 02:30:45 init_items.go:319 DEBUG (inventory): Successfully collected platforms from Netbox: map[RHEL 7 (64-bit):Platform{Name: RHEL 7 (64-bit), Manufacturer: Manufacturer{Name: Giga Computing}} RHEL 9 (64-bit):Platform{Name: RHEL 9 (64-bit), Manufacturer: Manufacturer{Name: HPE}} switch:Platform{Name: switch, Manufacturer: Manufacturer{Name: Eltex}}]
2025/06/20 02:30:45 inventory.go:308 INFO (inventory): Successfully initialized Platforms in 0.063701 seconds
2025/06/20 02:30:45 rest.go:66 DEBUG (inventory): Getting all objects.VM from Netbox
2025/06/20 02:30:45 rest.go:69 DEBUG (inventory): Getting objects.VM with limit=250 and offset=0
2025/06/20 02:30:46 rest.go:104 DEBUG (inventory): Successfully received all objects.VM: [VM{Name: dhcp1, Cluster: <nil>} VM{Name: nextcloud, Cluster: <nil>}]
2025/06/20 02:30:46 init_items.go:895 DEBUG (inventory): Successfully collected VMs from Netbox: map[dhcp1:map[-1:VM{Name: dhcp1, Cluster: <nil>}] nextcloud:map[-1:VM{Name: nextcloud, Cluster: <nil>}]]
2025/06/20 02:30:46 inventory.go:308 INFO (inventory): Successfully initialized VMs in 0.217547 seconds
2025/06/20 02:30:46 rest.go:66 DEBUG (inventory): Getting all objects.VirtualDisk from Netbox
2025/06/20 02:30:46 rest.go:69 DEBUG (inventory): Getting objects.VirtualDisk with limit=250 and offset=0
2025/06/20 02:30:46 rest.go:104 DEBUG (inventory): Successfully received all objects.VirtualDisk: []
2025/06/20 02:30:46 inventory.go:308 INFO (inventory): Successfully initialized VirtualDisks in 0.043146 seconds
2025/06/20 02:30:46 rest.go:66 DEBUG (inventory): Getting all objects.VMInterface from Netbox
2025/06/20 02:30:46 rest.go:69 DEBUG (inventory): Getting objects.VMInterface with limit=250 and offset=0
2025/06/20 02:30:46 rest.go:104 DEBUG (inventory): Successfully received all objects.VMInterface: []
2025/06/20 02:30:46 init_items.go:927 DEBUG (inventory): Successfully collected VM interfaces from Netbox: map[]
2025/06/20 02:30:46 inventory.go:308 INFO (inventory): Successfully initialized VMInterfaces in 0.089362 seconds
2025/06/20 02:30:46 rest.go:66 DEBUG (inventory): Getting all objects.Device from Netbox
2025/06/20 02:30:46 rest.go:69 DEBUG (inventory): Getting objects.Device with limit=250 and offset=0
2025/06/20 02:30:46 rest.go:104 DEBUG (inventory): Successfully received all objects.Device: [Device{Name: dhcp3.eltex.loc, Type: DeviceType{Manufacturer: other, Model: 1U-baremetal}, Role: DeviceRole{Name: Стоечный сервер}, Site: Site{Name: Элтекс}} Device{Name: ovirt.eltex.loc, Type: DeviceType{Manufacturer: other, Model: MZ92-FS0-00}, Role: DeviceRole{Name: Стоечный сервер}, Site: Site{Name: Элтекс}} Device{Name: sw240-l3, Type: DeviceType{Manufacturer: Eltex, Model: MES5324}, Role: DeviceRole{Name: Коммутатор L3}, Site: Site{Name: Элтекс}} Device{Name: sw240-r8, Type: DeviceType{Manufacturer: Eltex, Model: MES2411X}, Role: DeviceRole{Name: Коммутатор L2}, Site: Site{Name: Элтекс}} Device{Name: v1.eltex.loc, Type: DeviceType{Manufacturer: Intel, Model: S5520HC}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v2.eltex.loc, Type: DeviceType{Manufacturer: Intel, Model: S5520HC}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v3.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR650 -[7X06CTO1WW]-}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v4.eltex.loc, Type: DeviceType{Manufacturer: Supermicro, Model: SYS-6019P-WTR}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v5.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: System x3650 M5: -[5462K5G]-}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v6.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR630 V2}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v7.eltex.loc, Type: DeviceType{Manufacturer: HPE, Model: ProLiant DL380 G7}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v8.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR630 V2}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v9.eltex.loc, Type: DeviceType{Manufacturer: Intel, Model: SandyBridge Platform}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v10.eltex.loc, Type: DeviceType{Manufacturer: Lenovo, Model: ThinkSystem SR550 -[7X04CTO1WW]-}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v11.eltex.loc, Type: DeviceType{Manufacturer: Giga Computing, Model: R283-Z90-AAD2-000}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v12.eltex.loc, Type: DeviceType{Manufacturer: ASUSTeK COMPUTER INC., Model: RS720A-E12-RS12}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v21.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z96-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v22.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z96-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v23.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z96-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v24.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z96-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v25.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z96-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v26.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z93-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v27.eltex.loc, Type: DeviceType{Manufacturer: GIGABYTE, Model: R282-Z93-00}, Role: DeviceRole{Name: Server}, Site: Site{Name: Элтекс}} Device{Name: v28.eltex.loc, Type:
...........................................
2025/06/20 02:30:55 rest.go:152 DEBUG (olvm): Successfully patched objects.Platform: Platform{Name: RHEL 7 (64-bit), Manufacturer: Manufacturer{Name: Intel}}
2025/06/20 02:30:55 add_items.go:649 DEBUG (olvm): Device role Server already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:873 DEBUG (olvm): Device v2.eltex.loc already exists in Netbox and is up to date...
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3438 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f0.610 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3424 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f0.150 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3421 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3436 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f0.151 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f0.127 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3423 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3420 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f0.152 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f0.98 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 ovirt_sync.go:797 DEBUG (olvm): interface enp1s0f1.3422 is filtered out with interfaceFilter (cali|vxlan|flannel|docker|.*\.\d+)
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/enp1s0f1 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1378 DEBUG (olvm): MAC address 00:1E:67:26:F8:27 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/enp1s0f1 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/enp1s0f0 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1378 DEBUG (olvm): MAC address 00:1E:67:26:F8:26 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/enp1s0f0 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/ens6f0 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1378 DEBUG (olvm): MAC address 68:05:CA:3E:79:74 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/ens6f0 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/ens6f1 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1378 DEBUG (olvm): MAC address 68:05:CA:3E:79:75 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1103 DEBUG (olvm): Interface v2.eltex.loc/ens6f1 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1303 DEBUG (olvm): IP address 10.200.75.52/24 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1438 DEBUG (olvm): IP address 10.200.75.0/24 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1303 DEBUG (olvm): IP address 10.24.171.12/24 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:873 DEBUG (olvm): Device v2.eltex.loc already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1438 DEBUG (olvm): IP address 10.24.171.0/24 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1303 DEBUG (olvm): IP address 10.200.76.52/24 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:1438 DEBUG (olvm): IP address 10.200.76.0/24 already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:119 DEBUG (olvm): Site Элтекс already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:706 DEBUG (olvm): Manufacturer HPE already exists in Netbox and is up to date...
2025/06/20 02:30:55 add_items.go:764 DEBUG (olvm): Device type ProLiant DL160 G6 does not exist in Netbox. Creating it...
2025/06/20 02:30:55 rest.go:164 DEBUG (olvm): Creating objects.DeviceType with path /api/dcim/device-types/ with data: DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 }
2025/06/20 02:30:55 main.go:117 ERROR (olvm): extract host data: failed adding oVirt DeviceType DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } with error: unexpected status code: 400: {"__all__":["Device type with this Manufacturer and Model already exists.","Device type with this Manufacturer and Slug already exists."]}
2025/06/20 02:30:55 main.go:136 INFO (main): Skipping removing orphaned objects because run failed...
2025/06/20 02:30:55 main.go:152 INFO (main): ⚠ syncing of source olvm failed with: extract host data: failed adding oVirt DeviceType DeviceType{Manufacturer: HPE, Model: ProLiant DL160 G6 } with error: unexpected status code: 400: {"__all__":["Device type with this Manufacturer and Model already exists.","Device type with this Manufacturer and Slug already exists."]}
Share your environment details
root@netbox netbox-ssot]# podman info
host:
arch: amd64
buildahVersion: 1.37.6
cgroupControllers:
- cpuset
- cpu
- io
- memory
- hugetlb
- pids
- rdma
- misc
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.12-1.el9.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.12, commit: 5859d6167f22954414ce804d3f2ae9cf6208f929'
cpuUtilization:
idlePercent: 98.32
systemPercent: 0.7
userPercent: 0.98
cpus: 4
databaseBackend: boltdb
distribution:
distribution: rocky
version: "9.5"
eventLogger: journald
freeLocks: 1795
hostname: netbox
idMappings:
gidmap: null
uidmap: null
kernel: 5.14.0-503.40.1.el9_5.x86_64
linkmode: dynamic
logDriver: journald
memFree: 291459072
memTotal: 3814764544
networkBackend: netavark
networkBackendInfo:
backend: netavark
dns:
package: aardvark-dns-1.12.2-1.el9_5.x86_64
path: /usr/libexec/podman/aardvark-dns
version: aardvark-dns 1.12.2
package: netavark-1.12.2-1.el9.x86_64
path: /usr/libexec/podman/netavark
version: netavark 1.12.2
ociRuntime:
name: crun
package: crun-1.16.1-1.el9.x86_64
path: /usr/bin/crun
version: |-
crun version 1.16.1
commit: afa829ca0122bd5e1d67f1f38e6cc348027e3c32
rundir: /run/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
pasta:
executable: /bin/pasta
package: passt-0^20240806.gee36266-7.el9_5.x86_64
version: |
pasta 0^20240806.gee36266-7.el9_5.x86_64-pasta
Copyright Red Hat
GNU General Public License, version 2 or later
https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
remoteSocket:
exists: false
path: /run/podman/podman.sock
rootlessNetworkCmd: pasta
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: false
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: false
slirp4netns:
executable: /bin/slirp4netns
package: slirp4netns-1.3.1-1.el9.x86_64
version: |-
slirp4netns version 1.3.1
commit: e5e368c4f5db6ae75c2fce786e31eef9da6bf236
libslirp: 4.4.0
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.2
swapFree: 0
swapTotal: 0
uptime: 164h 6m 22.00s (Approximately 6.83 days)
variant: ""
plugins:
authorization: null
log: - k8s-file
- none
- passthrough
- journald
network: - bridge
- macvlan
- ipvlan
volume: - local
registries:
search: - registry.access.redhat.com
- registry.redhat.io
- docker.io
store:
configFile: /etc/containers/storage.conf
containerStore:
number: 238
paused: 0
running: 8
stopped: 230
graphDriverName: overlay
graphOptions:
overlay.mountopt: nodev,metacopy=on
graphRoot: /var/lib/containers/storage
graphRootAllocated: 50437033984
graphRootUsed: 14215159808
graphStatus:
Backing Filesystem: xfs
Native Overlay Diff: "false"
Supports d_type: "true"
Supports shifting: "false"
Supports volatile: "true"
Using metacopy: "true"
imageCopyTmpDir: /var/tmp
imageStore:
number: 186
runRoot: /run/containers/storage
transientStore: false
volumePath: /var/lib/containers/storage/volumes
version:
APIVersion: 5.2.2
Built: 1746548935
BuiltTime: Tue May 6 23:28:55 2025
GitCommit: ""
GoVersion: go1.23.2 (Red Hat 1.23.2-1.el9)
Os: linux
OsArch: linux/amd64
Version: 5.2.2