Skip to content

qa/suites/smoke: rbd_workunit_suites_iozone: use the HWE kernel on ubuntu - #74197

Merged
yuriw merged 1 commit into
ceph:mainfrom
yuriw:wip-81231-smoke-rbd-client-key-type-main
Nov 25, 2026
Merged

yuriw merged 1 commit into
ceph:mainfrom
yuriw:wip-81231-smoke-rbd-client-key-type-main

Conversation

@yuriw

@yuriw yuriw commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The rbd task maps the image with the kernel client. The ceph task creates client.0 with the default aes256k key type, which kernels before Linux 7.0 cannot load. Ubuntu 24.04 ships 6.8, so rbd map fails there:

rbd: failed to add secret 'client.0' to kernel
rbd: map failed: (22) Invalid argument

Install the HWE kernel (7.0) for this job through the kernel task's hwe flag, the same way qa/suites/big/rados-thrash does. This keeps aes256k coverage.

Fixes: https://tracker.ceph.com/issues/81231

Testing

Unfixed main, Ubuntu 24.04 (kernel 6.8.0-151-generic): failed with the error above (job 785800, https://pulpito-ng.ceph.com/yuriw-2026-11-24_03:49:25-smoke-main-distro-default-trial/).

With this change, rbd_workunit_suites_iozone, same main build 613fa36, passed on:

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)

Assisted-by: Claude-v2.1.237:claude-sonnet-5-5

@github-actions github-actions Bot added the tests label Nov 23, 2026
@yuriw

yuriw commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Test results for this PR's suite (main build 613fa36, job rbd_workunit_suites_iozone):

@idryomov pls approve if agree with this approach

@yuriw
yuriw requested review from batrick and idryomov November 23, 2026 16:23

@idryomov idryomov 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.

The ceph task creates client.0 with the default aes256k key type, which kernels before Linux 7.0 cannot load, so rbd map fails on the distro kernel (Ubuntu 22.04)

Ubuntu 22.04 is no longer tested on main. Ubuntu 24.04 still is (and will continue to) and has the same issue, but the other two main's distros (Rocky 10 and Ubuntu 26.04) have a new enough kernel. Are we OK with losing aes256k smoke coverage there or should client_key_type: aes be rather made conditional and take effect only for 24.04?

I think the other way to go would be to install the HWE kernel. It's basically 26.04's kernel packaged for 24.04 so it should just work.

@yuriw

yuriw commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

@idryomov Agreed, 24.04 is affected too (job 785800 on unfixed main). Resolved: went with the HWE kernel, see the reply below.

@idryomov

Copy link
Copy Markdown
Contributor

Installing the HWE kernel seems to be the best option to me, but it's up to you -- I don't own the smoke suite.

@yuriw
yuriw force-pushed the wip-81231-smoke-rbd-client-key-type-main branch from 4666d74 to 6e9c81c Compare November 24, 2026 14:00
@yuriw
yuriw requested a review from a team as a code owner November 24, 2026 14:00
@yuriw
yuriw force-pushed the wip-81231-smoke-rbd-client-key-type-main branch from 6e9c81c to e37bcf7 Compare November 24, 2026 14:13
…untu

The ceph task creates client keys with the default aes256k key type,
which kernels before Linux 7.0 cannot load. Ubuntu 24.04 ships 6.8, so
the rbd task cannot map the image there:

  rbd: failed to add secret 'client.0' to kernel
  rbd: map failed: (22) Invalid argument

Install the HWE kernel for this job through the kernel task's hwe flag,
the same way qa/suites/big/rados-thrash does. This keeps aes256k
coverage.

Fixes: https://tracker.ceph.com/issues/81231
Signed-off-by: Yuri Weinstein <[email protected]>
Assisted-by: Claude-v2.1.237:claude-sonnet-5-5
@yuriw
yuriw force-pushed the wip-81231-smoke-rbd-client-key-type-main branch from e37bcf7 to 13eae94 Compare November 24, 2026 14:31
@yuriw yuriw changed the title qa/suites/smoke: rbd_workunit_suites_iozone: use aes client keys qa/suites/smoke: rbd_workunit_suites_iozone: use the HWE kernel on ubuntu Nov 24, 2026
@yuriw

yuriw commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@idryomov Thanks, went with HWE as you suggested, scoped to this job: kernel: hwe: true in the smoke test yaml. Unfixed 24.04 fails (785800). With the change it passes on 24.04 (788440), Rocky 10 (788443) and 26.04 (788446). Details are in the PR description.

@yuriw

yuriw commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Squid backport: #74267

It is not a cherry-pick of this change. Squid smoke runs on Ubuntu 22.04, whose HWE kernel is still older than 7.0 and cannot load aes256k keys, so kernel: hwe: true does not fix it there (squid job 788452 failed with the same rbd map error). The squid PR instead rejects the Ubuntu facet with a postmerge rule, so the job runs only on CentOS Stream 9, whose kernel loads aes256k keys (suggested by Ilya Dryomov; job 788645 passed). Umbrella and tentacle run 24.04 and will get a plain cherry-pick of this commit once it merges.

Assisted-by: Claude-v2.1.237:claude-sonnet-5-5

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuriw
yuriw merged commit e8559c0 into ceph:main Nov 25, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants