Skip to content

ceph.spec.in: only require c-ares >= 1.28 on el10+ - #69295

Merged
tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-c-ares
Jun 5, 2026
Merged

tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-c-ares

Conversation

@tchaikov

@tchaikov tchaikov commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

87e233b added an unconditional "Requires: c-ares >= 1.28.0" to ceph-osd-crimson: seastar links ares_query_dnsrec, which c-ares only grew in 1.28, and the libcares.so.2 SONAME doesn't carry the version so rpm can't infer the floor itself.

But the floor only earns its place where the build links the symbol against a newer c-ares than the runtime has, and that's an EL thing. el10's minors cross 1.28 under one $releasever (10.1 ships 1.25, 10.2 ships 1.34), so a builder rolls to 1.34 while a frozen 10.1 node stays on 1.25; without the floor the rpm installs there and the osd then crashes on the missing symbol. el9 builds the legacy ares_query path and doesn't need it at all.

Fedora and SUSE don't have the skew: one c-ares per release, built and run against the same one, so the auto libcares.so.2 dep covers them. So pin it only on el10+, arch-qualified with %{?_isa}.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

87e233b added an unconditional
"Requires: c-ares >= 1.28.0" to ceph-osd-crimson: seastar links
ares_query_dnsrec, which c-ares only grew in 1.28, and the libcares.so.2
SONAME doesn't carry the version so rpm can't infer the floor itself.

But the floor only earns its place where the build links the symbol
against a newer c-ares than the runtime has, and that's an EL thing.
el10's minors cross 1.28 under one $releasever (10.1 ships 1.25, 10.2
ships 1.34), so a builder rolls to 1.34 while a frozen 10.1 node stays on
1.25; without the floor the rpm installs there and the osd then crashes
on the missing symbol. el9 builds the legacy ares_query path and doesn't
need it at all.

Fedora and SUSE don't have the skew: one c-ares per release, built and
run against the same one, so the auto libcares.so.2 dep covers them. So
pin it only on el10+, arch-qualified with %{?_isa}.

Signed-off-by: Kefu Chai <[email protected]>
@tchaikov
tchaikov requested a review from a team as a code owner June 5, 2026 02:08
@tchaikov
tchaikov requested a review from knrt10 June 5, 2026 02:20
@tchaikov

tchaikov commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@knrt10 could you help review this change instead?

@tchaikov

tchaikov commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor Author

@knrt10

knrt10 commented Jun 5, 2026

Copy link
Copy Markdown
Member

@knrt10 knrt10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, thanks. qa should probably pass, let's wait till then.

@tchaikov
tchaikov merged commit ad2da1c into ceph:main Jun 5, 2026
16 of 19 checks passed
@tchaikov
tchaikov deleted the wip-c-ares branch June 5, 2026 10:45
@tchaikov

tchaikov commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author
2026-06-05T07:48:13.681 ERROR:teuthology.run_tasks:Manager failed: thrashosds
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/run_tasks.py", line 160, in run_tasks
    suppress = manager.__exit__(*exc_info)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/home/teuthworker/src/github.com_tchaikov_ceph_9070653768a363a9e557efac5feade5ea67e0498/qa/tasks/thrashosds.py", line 219, in task
    cluster_manager.flush_all_pg_stats()
  File "/home/teuthworker/src/github.com_tchaikov_ceph_9070653768a363a9e557efac5feade5ea67e0498/qa/tasks/ceph_manager.py", line 1845, in flush_all_pg_stats
    self.flush_pg_stats(range(len(self.get_osd_dump())))
  File "/home/teuthworker/src/github.com_tchaikov_ceph_9070653768a363a9e557efac5feade5ea67e0498/qa/tasks/ceph_manager.py", line 1840, in flush_pg_stats
    with parallel() as p:
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/parallel.py", line 84, in __exit__
    for result in self:
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/parallel.py", line 98, in __next__
    resurrect_traceback(result)
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/parallel.py", line 30, in resurrect_traceback
    raise exc.exc_info[1]
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/parallel.py", line 23, in capture_traceback
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/teuthworker/src/github.com_tchaikov_ceph_9070653768a363a9e557efac5feade5ea67e0498/qa/tasks/ceph_manager.py", line 1820, in flush_one_osd
    need = int(self.raw_cluster_cmd('tell', 'osd.%d' % osd, 'flush_pg_stats'))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/teuthworker/src/github.com_tchaikov_ceph_9070653768a363a9e557efac5feade5ea67e0498/qa/tasks/ceph_manager.py", line 1713, in raw_cluster_cmd
    return self.run_cluster_cmd(**kwargs).stdout.getvalue()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/teuthworker/src/github.com_tchaikov_ceph_9070653768a363a9e557efac5feade5ea67e0498/qa/tasks/ceph_manager.py", line 1704, in run_cluster_cmd
    return self.controller.run(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/orchestra/remote.py", line 596, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/orchestra/run.py", line 461, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_teuthology_2cdf45ce0cbb526f1d09d97e0ac900f15784b1b2/teuthology/orchestra/run.py", line 181, in _raise_for_status
    raise CommandFailedError(
teuthology.exceptions.CommandFailedError: Command failed on trial142 with status 6: 'sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph tell osd.0 flush_pg_stats'

the only failure is not relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants