Skip to content

possible bug: netbox sync stops after a few hundred elements #78

@FJuette

Description

@FJuette

Currently, we are testing Infrahub and the synchronization from NetBox to Infrahub (K8s deployment using Helm, 3 replicas, 3 worker).
We have a strange bug when running the sync process.
At some random point in time the sync process slows down (from > 1000 models/s to ~25 models/s) and stops with a 502 Bad Gateway error:

Image

Restarting the sync adds a few hundred more elements and stops again:
Image

And restarting the sync process:

Image

The Infrahub-UI and the Infrahub-Graph-QL-Playground is responsive all the time.
The root error comes from the infrahub-sdk:

Image

I am running the infrahub-sync-cli inside a docker container on my local machine (MacBook with latest Rancher Desktop version).
My Dockerfile:

FROM python:3.12-slim

RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends gcc libffi-dev libssl-dev && \
	pip install --upgrade pip && \
	pip install infrahub-sync pynetbox && \
	apt-get purge -y --auto-remove gcc libffi-dev libssl-dev && \
	rm -rf /var/lib/apt/lists/*
WORKDIR /sync
COPY config.yml ./netbox/config.yml
COPY schema.yml ./netbox/schema.yml
RUN infrahub-sync generate --name from-netbox --directory netbox

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions