-
Notifications
You must be signed in to change notification settings - Fork 95
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
ociruntime: fix blocking on unknown tar header #8017
Conversation
@@ -1369,7 +1369,7 @@ func downloadLayer(ctx context.Context, layer ctr.Layer, destDir string) error { | |||
return status.UnavailableErrorf("chown file: %s", err) | |||
} | |||
default: | |||
return status.UnavailableErrorf("unsupported tar entry type %q", header.Typeflag) | |||
log.CtxWarningf(ctx, "Ignoring unsupported tar header %q type %q in oci layer", header.Name, header.Typeflag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think these warnings will be spammy. Would it work to explicitly skip character and block devices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or alternatively just log at info level for now.
enterprise/server/remote_execution/containers/ociruntime/ociruntime.go
Outdated
Show resolved
Hide resolved
turning this to draft to do a bit more testing. We reverted the original PR instead. |
30405e1
to
9f4b3cd
Compare
Replacing this PR with #8023 |
It seems like our "executor-docker-default" image contains quite a few
/dev/*
entries in a layer on the image.These are either block or character devices that don't do much on the
container itself and should be safe to ignore.