Skip to content

[v0.13] OTEL socket mount requires new volumes when containerd is run in separate container #4764

@georgethebeatle

Description

@georgethebeatle

Steps to reproduce

  1. Create and target a kind cluster:
kind create cluster
  1. Clone gist
gh gist clone https://gist.github.com/georgethebeatle/487a6e99ab5f9dfc6be493729e0f426c
  1. From the root dir of the gist run:
kbld -f kbld.yaml -f manifest.yaml

What is expected to happen

The kbld command succeeds

What actually happens

The command fails with the follwing output:

repro | starting build (using kubectl buildkit): . -> kbld:rand-1710510549453549629-17512815236153-repro
repro | #1 [internal] booting buildkit
repro | #1 waiting for 1 pods to be ready for buildkit
repro | #1 0.537 Normal         buildkit-6dd8f4bc7d     SuccessfulCreate        Created pod: buildkit-6dd8f4bc7d-z8swt
repro | #1 0.542 Normal         buildkit-6dd8f4bc7d-z8swt       Scheduled       Successfully assigned default/buildkit-6dd8f4bc7d-z8swt to kind-control-plane
repro | #1 0.542 Warning        buildkit-6dd8f4bc7d-z8swt       FailedMount     MountVolume.SetUp failed for volume "docker-sock" : hostPath type check failed: /var/run/docker.sock is not a socket file
repro | #1 0.542 Warning        initial attempt to deploy configured for the docker runtime failed, retrying with containerd
repro | #1 1.730 Normal         buildkit-6f5667d48      SuccessfulCreate        Created pod: buildkit-6f5667d48-nwhvn
repro | #1 1.735 Normal         buildkit-6f5667d48-nwhvn        Scheduled       Successfully assigned default/buildkit-6f5667d48-nwhvn to kind-control-plane
repro | #1 1.735 Normal         buildkit-6f5667d48-nwhvn        Pulled  Container image "docker.io/moby/buildkit:buildx-stable-1" already present on machine
repro | #1 1.735 Normal         buildkit-6f5667d48-nwhvn        Created         Created container buildkitd
repro | #1 1.735 Normal         buildkit-6f5667d48-nwhvn        Started         Started container buildkitd
repro | #1 waiting for 1 pods to be ready for buildkit 11.0s done
repro | #1 11.04 All 1 replicas for buildkit online
repro | #1 DONE 11.0s
repro |
repro | #2 [internal] load build definition from Dockerfile
repro | #2 transferring dockerfile: 470B done
repro | #2 DONE 0.0s
repro |
repro | #3 resolve image config for docker-image://docker.io/docker/dockerfile:experimental
repro | #3 DONE 0.7s
repro |
repro | #4 docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5
repro | #4 resolve docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s done
repro | #4 CACHED
repro | Error: failed to solve: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/buildkit/otel-grpc.sock" to rootfs at "/dev/otel-grpc.sock": stat /run/buildkit/otel-grpc.sock: no such file or directory: unknown
repro | error: exit status 1
repro | finished build (using kubectl buildkit)
kbld: Error:
- Resolving image 'repro': exit status 1

Debugging

We were able to bisect that this PR is introducing the failure

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions