Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2388210

Summary: cephadm fails to build on RHEL 10 in Brew
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Justin Caratzas <jcaratza>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Vinayak Papnoi <vpapnoi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 9.0CC: cephqe-warriors, jmulligan, mobisht, sabose
Target Milestone: ---   
Target Release: 9.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-20.1.0-18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-29 06:57:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Justin Caratzas 2025-08-13 11:47:50 UTC
Description of problem:
When cephadm's build.py attempts to bundle python-jinja's RPM in RHEL 10, it errors on not finding top_level.txt.

python-jinja's RPM in RHEL 10 doesn't include Jinja2.egg-info/ directory, so it fails to find top_level.txt.

Version-Release number of selected component (if applicable):
cephadm 20.0.0 (tentacle-release branch from upstream)

How reproducible:
always

Steps to Reproduce:
1. Attempt to build ceph-20.0.0 on RHEL 10 in Brew

Actual results:
cephadm's build.py errors with:
[  9%] Generating ../../bin/cephadm
cd /builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm && /usr/bin/python3.12 build.py --set-version-var=CEPH_GIT_VER=3d911bce7d6557aa2d1826543a4a4e88981639da --set-version-var=CEPH_GIT_NICE_VER=20.0.0-pre.ibm-0-g3d911bce7d6 --set-version-var=CEPH_RELEASE=20 --set-version-var=CEPH_RELEASE_NAME=tentacle --set-version-var=CEPH_RELEASE_TYPE=dev --bundled-dependencies=rpm /builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/redhat-linux-build/bin/cephadm
cephadm/build.py: Python Version: 3.12.9
cephadm/build.py: Argument: dest='/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/redhat-linux-build/bin/cephadm'
cephadm/build.py: Argument: source=None
cephadm/build.py: Argument: python=None
cephadm/build.py: Argument: version_vars=[('CEPH_GIT_VER', '3d911bce7d6557aa2d1826543a4a4e88981639da'), ('CEPH_GIT_NICE_VER', '20.0.0-pre.ibm-0-g3d911bce7d6'), ('CEPH_RELEASE', '20'), ('CEPH_RELEASE_NAME', 'tentacle'), ('CEPH_RELEASE_TYPE', 'dev')]
cephadm/build.py: Argument: pip_use_venv='auto'
cephadm/build.py: Argument: bundled_dependencies='rpm'
cephadm/build.py: Source Dir: /builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm
cephadm/build.py: Destination Path: /builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/redhat-linux-build/bin/cephadm
cephadm/build.py: Installing dependencies using RPMs
cephadm/build.py: Looking for rpm package for: 'MarkupSafe'
cephadm/build.py: RPM Package: python3-markupsafe-2.1.3-6.el10.x86_64 (['2.1.3', '6.el10', '(none)'])
cephadm/build.py: Copying /usr/lib64/python3.12/site-packages/MarkupSafe-2.1.3.dist-info to /tmp/tmpbnofvvss.cephadm.build/deps/MarkupSafe-2.1.3.dist-info
cephadm/build.py: Copying /usr/lib64/python3.12/site-packages/markupsafe to /tmp/tmpbnofvvss.cephadm.build/deps/markupsafe
cephadm/build.py: Looking for rpm package for: 'Jinja2'
cephadm/build.py: RPM Package: python3-jinja2-3.1.6-1.el10_0.noarch (['3.1.6', '1.el10_0', '(none)'])
make[2]: Leaving directory '/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/redhat-linux-build'
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
Traceback (most recent call last):
  File "/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm/build.py", line 586, in <module>
    main()
  File "/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm/build.py", line 582, in main
    _build(dest, source, Config(args))
  File "/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm/build.py", line 248, in _build
    dinfo = _install_deps(depsdir, config)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm/build.py", line 335, in _install_deps
    return _install_rpm_deps(tempdir, config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm/build.py", line 433, in _install_rpm_deps
    _deps_from_rpm(tempdir, config, dinfo, pkg.name)
  File "/builddir/build/BUILD/ceph-20.0.0-pre.ibm-0-g3d911bce7d6/src/cephadm/build.py", line 480, in _deps_from_rpm
    raise ValueError('top_level not found')
ValueError: top_level not found
make[2]: *** [src/cephadm/CMakeFiles/cephadm.dir/build.make:74: bin/cephadm] Error 1

Expected results:
cephadm build.py runs successfully

Additional info:
Brew build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=68603823
build log: https://download-01.beak-001.prod.iad2.dc.redhat.com/brewroot/work/tasks/3823/68603823/build.log

Comment 1 Justin Caratzas 2025-08-13 11:52:01 UTC
this is the build of python-jinja2 used in RHEL 10: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=3576525

Comment 11 errata-xmlrpc 2026-01-29 06:57:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 9.0 Security and Enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2026:1536