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

[Bug] Issue with glibc version GLIBC_2.34 and GLIBC_2.32 not found in earlier operator tags #2272

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Jul 27, 2024

Why are these changes needed?

#2205 changes the base image of Dockerfile.buildx from registry.access.redhat.com/ubi9/ubi-minimal:9.3 to gcr.io/distroless/base-debian11:nonroot which uses GLIBC_2.31. However, KubeRay operator requires GLIBC_2.32 and GLIBC_2.34. KubeRay operator Pod will fail with the following logs:

/manager: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /manager)
/manager: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /manager)

This issue is similar to GoogleContainerTools/distroless#1342, so this PR upgrades the base image from debian11 to debian12.

I can reproduce the issue by pulling images that are built by GitHub Actions. However, when I build the image following the same steps as GitHub Actions and then publish it to Quay, the issue does not occur.

CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags strictfipsruntime -a -o manager-amd64 main.go
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -tags strictfipsruntime -a -o manager-arm64 main.go
docker buildx build --push --platform linux/amd64,linux/arm64 --attest type=provenance,disabled=true -t quay.io/kevin85421/kuberay:test --file Dockerfile.buildx .

In order to reproduce the issue, I used https://github.com/ray-project/kuberay/blob/master/.github/workflows/image-release.yaml to build multi-arch images and publish to my Quay account.

Related issue number

Closes #2270

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@kevin85421 kevin85421 marked this pull request as ready for review July 27, 2024 23:07
@kevin85421 kevin85421 added the P0 Critical issue that should be fixed ASAP label Jul 27, 2024
@kevin85421 kevin85421 merged commit cf41e24 into ray-project:master Jul 29, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Critical issue that should be fixed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Issue with glibc version GLIBC_2.34 and GLIBC_2.32 not found in earlier operator tags
3 participants