Skip to content

Conversation

@mgfritch
Copy link
Contributor

@mgfritch mgfritch commented Nov 14, 2024

The sriovdp binary is dynamically linked by default when built against the upstream v3.8.0 release, where prior versions of the upstream binary were statically linked.

The downstream rancher binary is built against Alpine Linux and then copied into a target BCI container image that is not able to provide the needed musl libc library.

@mgfritch
Copy link
Contributor Author

mgfritch commented Nov 14, 2024

This causes the container entrypoint script to fail at startup:

# kubectl logs sriov-device-plugin-sdtqh  
/entrypoint.sh: line 80: /usr/bin//sriovdp: No such file or directory

---

# file /usr/bin/sriovdp
/usr/bin/sriovdp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, Go BuildID=If7cxLxyNL245aDKOfe4/c3PUZ31o1WyWUDcS_lEt/rUcVMwx8G7tqGTBjGvhO/Yjmiks0NUanY9Jv4P3Qs, with debug_info, not stripped

# ldd /usr/bin/sriovdp
        linux-vdso.so.1 (0x00007ff4a10c0000)
        libc.musl-x86_64.so.1 => not found

@mgfritch mgfritch merged commit 7f9e9d6 into rancher:main Nov 14, 2024
3 checks passed
@mgfritch mgfritch deleted the make-static branch November 14, 2024 15:33
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.

3 participants