Skip to content

qa: support for testing replica direct reads through teuthology - #71799

Merged
aainscow merged 2 commits into
ceph:mainfrom
CJamesIBM:cal_replica_direct_reads_testing_improvements
Oct 1, 2026
Merged

aainscow merged 2 commits into
ceph:mainfrom
CJamesIBM:cal_replica_direct_reads_testing_improvements

Conversation

@CJamesIBM

Copy link
Copy Markdown
Contributor

Add five teuthology workload YAML files for the rados/thrash suite that exercise replica direct reads under different osd_min_split_replica_read_size configurations:

  1. no-split (size=0)
  2. default (cluster default)
  3. small (64 KiB)
  4. large (1 MiB)
  5. very-large (2 MiB)

All workloads enable balance_reads and set no_omap so that read operations are not rejected by the direct read path due to unsupported omap sub-ops.

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

Signed-off-by: Callum James [email protected]

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.

Extend the rados task and TestRados test tool to support two new options
needed for replica direct read testing. Add a standalone no_omap flag to
rados.py so workloads on replica pools can suppress omap sub-ops
(previously this was only possible for EC pools). Add a --min-split-size
argument to TestRados so the osd_min_split_replica_read_size config
variable can be set per-run, enabling tests that exercise different
split size thresholds.

Signed-off-by: Callum James <[email protected]>
Add five teuthology workload YAML files for the rados/thrash suite that
exercise replica direct reads under different osd_min_split_replica_read_size
configurations: no-split (size=0), default (cluster default), small (64 KiB),
large (1 MiB), and very-large (2 MiB). All workloads enable balance_reads and
set no_omap so that read operations are not rejected by the direct read path
due to unsupported omap sub-ops.

Signed-off-by: Callum James <[email protected]>
@CJamesIBM
CJamesIBM requested a review from aainscow September 15, 2026 10:32
@CJamesIBM
CJamesIBM requested a review from a team as a code owner September 15, 2026 10:32
@CJamesIBM CJamesIBM mentioned this pull request Sep 15, 2026
5 of 13 tasks
@CJamesIBM CJamesIBM changed the title Cal replica direct reads testing improvements qa: support for testing replica direct reads through teuthology Sep 15, 2026

@bill-scales bill-scales 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

Comment thread qa/tasks/rados.py
if not config.get('erasure_code_use_overwrites', False):
args.extend(['--ec-pool'])
if config.get('no_omap', False):
args.extend(['--no-omap'])

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.

ACK: #69269 is removing no-omap for ec_pools, but this change is compatible with that PR

@bill-scales

Copy link
Copy Markdown
Contributor

API tests failed because of unrelated intermittent failure https://tracker.ceph.com/issues/68544

@bill-scales

Copy link
Copy Markdown
Contributor

jenkins test api

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath3-testing-20260918.154843-main.

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

Discuss on monday if you disagree.

log-ignorelist:
- \(POOL_APP_NOT_ENABLED\)
tasks:
- rados:

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.

Why do we not set osd_min_split_replica_read_size here?

Default is currently 0 - but we plan to change that soon. Could this be a gotcha?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are right, this yaml will just take whatever the default is, which will be 0 since we haven't set that yet.

I suppose you could argue that the test serves it's purpose by testing the 'default' value whatever that is and that we have enough split coverage through other tests?

Happy to change this to what we will be changing the default to eventually though if you think that is better.

Comment thread src/test/osd/RadosModel.h
r = rados.conf_set("osd_min_split_replica_read_size",
std::to_string(min_split_size).c_str());
if (r < 0)
return r;

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.

nit: Whitespace?

Comment thread src/test/osd/RadosModel.h
r = rados.conf_parse_env(NULL);
if (r < 0)
return r;
if (min_split_size > 0) {

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.

I think the intent here is to make a default behaviour of the function be "config default", signalled by min_split_size = 0. However min_split_size = 0 is a valid value, which may be required by the caller.

Comment thread qa/tasks/rados.py
args.extend(['--balance-reads'])
pct_update_delay = config.get('pct_update_delay', 5);
pct_update_delay = config.get('pct_update_delay', 5)
if config.get('osd_min_split_replica_read_size', None) is not None:

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.

See my comment on RadosModel.h - I think osd_min_split_replica_read_size IS relevant when balance_reads is false, because the default flag can modify the read behaviour.

@kamoltat

Copy link
Copy Markdown
Member

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

I think my review comments in commit 1 are still valid. However, this is test code and the PR is useful as-is, so as long they get addressed in a later PR, I am happy.

@aainscow
aainscow merged commit 7214f24 into ceph:main Oct 1, 2026
18 checks passed
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/36841052678

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