netbox-community / netbox-chart

A Helm chart for NetBox
https://netbox.readthedocs.io/
Apache License 2.0
261 stars 153 forks source link

Invalid header in gzip format #356

Closed rhizoet closed 1 month ago

rhizoet commented 1 month ago

We deploy netbox with flux and an OCI repository. flux requires a tar+gzip file to unpack the files correctly: https://fluxcd.io/flux/components/source/ocirepositories/#layer-selector

I have seen that the last 4 version still has tar.gz. However, the current beta versions do not. Can tar.gz be uploaded there as well, please, so that flux can work with it?

rhizoet commented 1 month ago

Forget it again. I was looking the wrong way.

LeoColomb commented 1 month ago

Thanks for opening this issue @rhizoet. The OCI registry already follows all requirements by standards. In fact, I personally use FluxCD as well and everything is working as expected.

Can you please provide the log of the integration?

rhizoet commented 1 month ago

For sure, here we go:

failed to extract layer contents from artifact: requires gzip-compressed body: gzip: invalid header

I get this message at the ocirepo resource

LeoColomb commented 1 month ago

Forget it again. I was looking the wrong way.

I'm confused, have you found the problem?

The content layer is well-defined with application/vnd.cncf.helm.chart.content.v1.tar+gzip type.

rhizoet commented 1 month ago

Sorry, I don't have found the problem yet. Do you have a clue, what the error can be?

LeoColomb commented 1 month ago

What are the version of everything?

rhizoet commented 1 month ago

Ok, the problem has been solved. I had mistakenly used OCIRepository instead of a HelmRepository with type: “oci”. As a result, it couldn't pull anything and the error occurred.

Now that I have changed it, the process continues.

Sorry for the false alarm :D