Repository navigation
Conversation
The workunit task merges the client's and client.admin's keyrings into the cluster keyring with the host's ceph-authtool. In rados/thrash-old-clients that tool comes from reef, which cannot decode the aes256k client.admin key already in /etc/ceph/ceph.keyring, so the first import fails with "error reading file" and every reef rbd_cls job fails before the workunit runs. Only the client.admin import was allowed to fail. Allow either import to fail; the client then finds its own key in /etc/ceph/ceph.client.N.keyring, as it did before the merge was added. Fixes: https://tracker.ceph.com/issues/79948 Assisted-by: Claude Code
|
How this relates to Patrick's comment on https://tracker.ceph.com/issues/79948: Patrick describes the general problem: workunits should run as the client the job asks for ( It fixes one step. In Evidence (reef client pinned to v18.2.8, because the current reef build has no package metadata on shaman):
Not fixed here:
Patrick warned that changes in this area can break other suites (e.g. rbd) in non-obvious ways, so a review from someone who knows it would be valuable before this goes further. |
| ) | ||
| except CommandFailedError: | ||
| log.info("could not import %s into %s", | ||
| src, tmp_keyring) |
There was a problem hiding this comment.
If the client_keyring which contains only the key we want to use for the workunit cannot be imported, isn't that already a show-stopping bug? I don't understand how this will fix anything.
|
Since #69406 (merged 2026-11-06), rados/thrash-old-clients on main no longer installs reef, so main batches from 11-07 on don't hit this. Every reef rbd_cls job on tentacle and umbrella still fails this way: reef's ceph-authtool can't decode the aes256k client.admin key in /etc/ceph/ceph.keyring. PR 72743 is closed and won't be backported. |
Warning
This PR was generated with AI assistance (Claude Code) to aid the productivity of the PR owner. It has not been reviewed by a human yet, which is why the commits have no Signed-off-by. The fix has been shown to work as follows (more under Testing below):
rados/thrash-old-clients1-install/reefworkloads/rbd_clsjobs of the 46 main QA batches from 2026-07-24 to 2026-10-16.test_cls_rbd.shran asclient.2and passed 68 tests: https://pulpito-ng.ceph.com/aainscow-2026-10-15_11:41:12-rados:thrash-old-clients-wip-aainscow-rados-qa-fixes-v6-261015-distro-default-trial/.The workunit task merges the client's and
client.admin's keyrings into the cluster keyring with the host'sceph-authtool. Inrados/thrash-old-clientsthat tool comes from reef, which cannot decode the aes256kclient.adminkey already in/etc/ceph/ceph.keyring. The first import fails witherror reading file /etc/ceph/ceph.keyring, so every1-install/reef+workloads/rbd_clsjob fails before the workunit runs (https://tracker.ceph.com/issues/79948). Only theclient.adminimport was allowed to fail.This PR allows either import to fail. The client then finds its own key in
/etc/ceph/ceph.client.N.keyring, as it did before the merge step was added. When the host'sceph-authtoolcan read the keyring, both imports succeed as before, so nothing changes for other jobs.This is a narrow fix for the merge step. It does not touch how the auth ID reaches the workunits (https://tracker.ceph.com/issues/78881), and it does not make
client.adminaes. In the reefrbd_clsjob below, the test ran withCEPH_ID="2"and every monitor command it sent came fromclient.2, using the aes key provisioned for it, notclient.admin. Workunits that run asclient.adminregardless ofCEPH_IDstill need 78881. Theupgrade-clientsfailure reported on the tracker (ceph-authtool ... --name=mgr.xinqa/tasks/ceph.py) is a different code path and is not fixed here.Testing:
rados/thrash-old-clients1-install/reefworkloads/rbd_cls, with the reef client pinned to v18.2.8 because the current reef build has no package metadata on shaman:ceph-authtool /etc/ceph/ceph.keyring --import-keyring /etc/ceph/ceph.client.2.keyring(error reading file), the tracker's failure (https://pulpito-ng.ceph.com/aainscow-2026-10-15_11:41:18-rados:thrash-old-clients-main-distro-default-trial/).test_cls_rbd.shruns asclient.2and passes 68 tests, and both jobs pass (https://pulpito-ng.ceph.com/aainscow-2026-10-15_11:41:12-rados:thrash-old-clients-wip-aainscow-rados-qa-fixes-v6-261015-distro-default-trial/).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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.
🤖 Generated with Claude Code