fix(ci): install openssl-devel on arm64 for fluentd openssl gem build#1740
Merged
Conversation
The arm64 Linux image build (ContainerInsights-MultiArch-MergedBranches) started failing when io-stream 0.13.2 (published 2026-07-12) added a runtime dependency on the openssl gem. fluentd 1.19.3 pulls io-stream transitively via async-http, so `gem install fluentd` now compiles the openssl gem's native extension, which needs the OpenSSL dev headers. The amd64 branch already installs openssl-devel; the arm64 branch did not, so the build failed with "openssl/ssl.h... no / OpenSSL library could not be found". Install openssl-devel in the arm64 branch to match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 78f1ddcc-0547-4854-bb56-799bc455a882
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
zanejohnson-azure
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
ContainerInsights-MultiArch-MergedBranchesLinux image build began failing on the linux/arm64 builder:The same commit (
15567a7e4) succeeded on Jul 11 (build 120799) and then failed on Jul 12 and Jul 13 (builds 120843, 120914) with no source change — so the trigger was external (rubygems.org), not this repo.Root cause
The Linux image resolves its Ruby gem tree fresh at build time (no lockfile). The dependency chain is:
fluentd 1.19.3 → async-http (~> 0.86) → io-stream → opensslio-stream 0.13.1(2026-06-13) had no runtime dependencies.io-stream 0.13.2(published 2026-07-12) addedopenssl >= 3.3as a runtime dependency.Once
io-stream 0.13.2shipped,gem install fluentd -v 1.19.3started pulling and compiling theopensslgem's native extension, which requires the OpenSSL development headers. The amd64 branch ofkubernetes/linux/setup.shalready installsopenssl-devel, but the arm64 branch installed onlyzlib-devel, so arm64 failed to findopenssl/ssl.h.Verified from the build logs:
Successfully installed fluentd-1.19.3on both arches, openssl gem never installed.Successfully installed openssl-4.0.2on amd64 (has headers), 3x native-extension failure on arm64 (no headers).Fix
Install
openssl-develin the arm64 branch ofkubernetes/linux/setup.sh, matching the amd64 branch.Notes