Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporter: workaround containerd client issue with grpc size limits #5785

Closed

Conversation

jsternberg
Copy link
Collaborator

@jsternberg jsternberg commented Feb 26, 2025

The grpc client for containerd won't properly break up the writes for a
file when used in combination with bytes.NewReader and
content.WriteBlob.

To workaround the issue, this wraps the container image exporter for
containerd with a bytes reader that will chunk the Write calls instead
of relying on the client to do the chunking.

See containerd/containerd#11440 for the
upstream containerd issue.

closes #5327

@thompson-shaun thompson-shaun added this to the v0.20.1 milestone Feb 26, 2025
@jsternberg jsternberg force-pushed the containerd-grpc-size-limits branch from 8d99faf to 1caf5b4 Compare February 26, 2025 21:47
The grpc client for containerd won't properly break up the writes for a
file when used in combination with `bytes.NewReader` and
`content.WriteBlob`.

To workaround the issue, this wraps the container image exporter for
containerd with a bytes reader that will chunk the `Write` calls instead
of relying on the client to do the chunking.

See containerd/containerd#11440 for the
upstream containerd issue.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@jsternberg jsternberg force-pushed the containerd-grpc-size-limits branch from 1caf5b4 to 69d69b4 Compare February 27, 2025 15:30
@tonistiigi
Copy link
Member

@jsternberg I guess we don't need this and can just update containerd to v2.0.3

@jsternberg
Copy link
Collaborator Author

Going to close this in favor of just upgrading containerd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adding SBOM fails with trying to send message larger than max (25286341 vs. 16777216): unknown
3 participants