Skip to content

doc,mount.ceph: aes256k keys need Linux 7.0 on kernel clients - #72159

Merged
tchaikov merged 2 commits into
ceph:mainfrom
sunyuechi:cephx-aes256k-old-kernels
Oct 14, 2026
Merged

tchaikov merged 2 commits into
ceph:mainfrom
sunyuechi:cephx-aes256k-old-kernels

Conversation

@sunyuechi

Copy link
Copy Markdown
Contributor

New clusters allow only aes256k, which the kernel client supports
since Linux 7.0 (b7cc142dbafe). On older kernels the mount fails with:

adding ceph secret key to kernel failed: Unknown error 524

Document the aes workaround, and make mount.ceph print that the key
type is not supported instead of the raw ENOTSUPP.

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)

New clusters allow only aes256k, which kernels before 7.0 cannot load.
Document the aes workaround.

Signed-off-by: Sun Yuechi <[email protected]>
Kernels before 7.0 reject aes256k keys with ENOTSUPP (524), which
strerror() prints as "Unknown error 524". Support was added by Linux
commit b7cc142dbafe ("libceph: add support for
CEPH_CRYPTO_AES256KRB5").

Signed-off-by: Sun Yuechi <[email protected]>
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@sunyuechi sunyuechi changed the title Cephx aes256k old kernels doc,mount.ceph: aes256k keys need Linux 7.0 on kernel clients Sep 28, 2026

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@tchaikov tchaikov added ci-approved cephfs Ceph File System and removed needs-ci-approval labels Sep 29, 2026
Comment thread src/mount/mount.ceph.c Resolved
@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath15-testing-20260929.043152-main.

@ljflores

Copy link
Copy Markdown
Member

@tchaikov
tchaikov merged commit 7b4229b into ceph:main Oct 14, 2026
22 checks passed
sunyuechi added a commit to sunyuechi/openRuyi that referenced this pull request Oct 28, 2026
The new snapshot brings in these fixes:
- osd/PeeringState: fix the divergence check against olog.head
  (ceph/ceph#70149)
- osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965)
- osdc: fix ReplicaSplitOp chunk distribution, reassembly and
  small multi-op reads (ceph/ceph#70207)
- erasure-code/isa: default the technique when the profile has none
  (ceph/ceph#72215)
- mount.ceph: report kernels without aes256k key support
  (ceph/ceph#72159)
- rgw/es: require both major and minor in the ES version
  (ceph/ceph#70007)
- build: turn WITH_RADOSGW_LANCEDB off where lance cannot build
  (ceph/ceph#71935)
- cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657)
- cmake/boost: do not pass context-impl to the headers step
  (ceph/ceph#71249)
- rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051)
- test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463)
- qa/lsan.supp: match OpenSSL error state on ERR_set_mark
  (ceph/ceph#71460)

Signed-off-by: Sun Yuechi <[email protected]>
misaka00251 pushed a commit to openRuyi-Project/openRuyi that referenced this pull request Oct 28, 2026
The new snapshot brings in these fixes:
- osd/PeeringState: fix the divergence check against olog.head
  (ceph/ceph#70149)
- osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965)
- osdc: fix ReplicaSplitOp chunk distribution, reassembly and
  small multi-op reads (ceph/ceph#70207)
- erasure-code/isa: default the technique when the profile has none
  (ceph/ceph#72215)
- mount.ceph: report kernels without aes256k key support
  (ceph/ceph#72159)
- rgw/es: require both major and minor in the ES version
  (ceph/ceph#70007)
- build: turn WITH_RADOSGW_LANCEDB off where lance cannot build
  (ceph/ceph#71935)
- cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657)
- cmake/boost: do not pass context-impl to the headers step
  (ceph/ceph#71249)
- rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051)
- test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463)
- qa/lsan.supp: match OpenSSL error state on ERR_set_mark
  (ceph/ceph#71460)

Signed-off-by: Sun Yuechi <[email protected]>
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.

5 participants