gen_dwarf: run container as root, resolve deps via dnf, fix holder PID#127
Merged
Conversation
The refresh-embedded-dwarf workflow's manual dispatch failed for every version. Four issues in gen_dwarf_for_version.sh, fixed here: - Drop --userns=keep-id: it mapped the container process to the host's non-root UID, so dnf/rpm failed with "must be run as superuser". The rootless-podman default already maps container root back to the host user, so bind-mounted output stays host-owned. - Add --allowerasing to the build-deps install so dnf can swap the image's curl-minimal for the requested curl (they conflict). - Replace 'rpm -ivh --force' with a dnf install against the pinned per-release ceph repo + EPEL, so ceph-osd's full runtime dependency closure (ceph-base, libaio, thrift, tcmalloc, python3-rados, ...) is installed -- otherwise ceph-osd can't reach its entry point under gdb. - Locate the held ceph-osd via gdb's PID, not the gdb 'shell' command's PID: ceph-osd and the keep-alive shell are siblings (both children of gdb), so the old 'pgrep -P holder' never matched. Validated end-to-end locally for 19.2.2: both JSONs generated and the embedded-header re-aggregate + relink passes.
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.
The refresh-embedded-dwarf workflow's manual dispatch failed for every version. Four issues in gen_dwarf_for_version.sh, fixed here:
Validated end-to-end locally for 19.2.2: both JSONs generated and the embedded-header re-aggregate + relink passes.