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

peer-list is broken on image 8.0.37-29.1 #1855

Closed
a-haurylau opened this issue Oct 30, 2024 · 3 comments
Closed

peer-list is broken on image 8.0.37-29.1 #1855

a-haurylau opened this issue Oct 30, 2024 · 3 comments
Labels

Comments

@a-haurylau
Copy link

Report

It seems that every percona image starting from 8.0.37 (including operator itself) has peer-list broken. e.g.

docker run --network host --user 0:0 --rm -it --entrypoint /bin/bash percona/percona-xtradb-cluster:8.0.37-29.1 
[root@barzog /]# /usr/local/bin/peer-list 
/usr/local/bin/peer-list: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/bin/peer-list)
/usr/local/bin/peer-list: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /usr/local/bin/peer-list)

And it seems that was caused by switching default golang image from bullseye to bookworm as noted here: docker-library/golang#466

So if we put to Dockerfile
FROM golang:1.22-bullseye AS go_builder instead of FROM golang:1.22 AS go_builder and build peer-list everything is working as expected again.

More about the problem

[root@barzog /]# /usr/local/bin/peer-list
/usr/local/bin/peer-list: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/bin/peer-list)

Steps to reproduce

Just run peer-list inside latest image

Versions

  1. Kubernetes
  2. Operator
  3. Database - 8.0.37

Anything else?

No response

@a-haurylau a-haurylau added the bug label Oct 30, 2024
@a-haurylau
Copy link
Author

It seems that 8.0.36-28.1 - is affected as well. Moreover that tag is not consistent, i.e. that image was rebuild with that tag on 2024-08-28. Previos image with that tag (and its working) was built on 2024-04-01.
So to receive 8.0.36-28.1 with working peer-list we need to pull by sha-hash instead of version tag: docker.io/percona/percona-xtradb-cluster@sha256:ed99f585a27257726a985fee5f50c
d957f94f5b9ae70a5d2f0fa1e68336f3abe
or use 8.0.35-27.1, it was built before those go-lang changes.

@hors
Copy link
Collaborator

hors commented Dec 19, 2024

@a-haurylau I need to know the ver of your operator because starting from 1.14.0 /var/lib/mysql/peer-list is used. In the latest images /usr/local/bin/peer-list was removed at all.

@a-haurylau
Copy link
Author

I see that peer-list was removed from percona-xtradb-cluster-8.0 image from on 15.12.2024, so this is no longer relevant for this image. For operator image - peer-list is built using CGO_ENABLED=0 so that problem is not occurs with operator.

So I think we may close this one. Thanks.

@hors hors closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants