Skip to content

Update calico/base image to fix issue with pod2demon-flexvol image on s390x #670

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

Closed

Conversation

vivkong
Copy link

@vivkong vivkong commented Apr 7, 2025

The flexvol-driver container on s390x crashed with the following error:

kubectl logs calico-node-n4htr -n calico-system -c flexvol-driver
exec /usr/local/bin/flexvol.sh: no such file or directory

The problem seems to be that /lib/ld64.so.1 is missing from the s390x calico/base image which the calico/pod2daemon-flexvol image is based on. Once /lib/ld64.so.1 was added we were able to start Calico.

@@ -13,7 +13,7 @@ RUN cp /lib64/ld-2.28.so /rootfs/lib64/ld-2.28.so
RUN set -eux; \
cp -a /lib64/${LDSONAME} /rootfs/lib64/${LDSONAME}; \
if [ -f /lib/${LDSONAME} ]; then \
mkdir -p /rootfs/lib && cp -a /lib/${LDSONAME} /rootfs/lib/${LDSONAME}; \
mkdir -p /rootfs/lib && cp /lib/${LDSONAME} /rootfs/lib/${LDSONAME}; \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for identifying this issue. Updating the symlink at /lib/ld64.so.1 → /usr/lib64/ld64.so.1 to point to ../lib64/ld64.so.1 may help resolve the s390x problem. We use cp -a to preserve symbolic links, in order to avoid creating multiple copies of the dynamic loader.

@hjiawei
Copy link
Collaborator

hjiawei commented Apr 11, 2025

I have created #672 to address this s390x loading issue. If you encounter any further issues, please feel free to open an issue at projectcalico/calico and include me in the discussion. Thanks again for bringing this to our attention!

@hjiawei hjiawei closed this Apr 11, 2025
@vivkong
Copy link
Author

vivkong commented Apr 11, 2025

Thanks @hjiawei. Will try out the new image when it's available.

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

Successfully merging this pull request may close these issues.

2 participants