Skip to content

qa/suites/crimson-rados: Add pg splitting tests to crimson thrash tes… - #65814

Merged
Matan-B merged 3 commits into
ceph:mainfrom
amathuria:wip-amat-crimson-add-pg-num-testing
Feb 9, 2026
Merged

Matan-B merged 3 commits into
ceph:mainfrom
amathuria:wip-amat-crimson-add-pg-num-testing

Conversation

@amathuria

@amathuria amathuria commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

…ting

Adds pg splitting tests that currently exist in classical testing to crimson suite.

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

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.

@amathuria amathuria added the DNM label Oct 7, 2025
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch from 841e8e8 to 9e87ca1 Compare October 9, 2025 05:34
@Matan-B Matan-B added this to Crimson Oct 9, 2025
@Matan-B Matan-B moved this to Unassigned / Drafts / Discussion in Crimson Oct 9, 2025
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch 2 times, most recently from 24f904c to 75e87f2 Compare October 22, 2025 06:51
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch 4 times, most recently from b4a43e4 to 688313b Compare November 18, 2025 11:12
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch 2 times, most recently from be849d9 to 30dac30 Compare December 3, 2025 09:02
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch 4 times, most recently from 1d93b5f to aabf093 Compare January 20, 2026 12:50
@amathuria

Copy link
Copy Markdown
Contributor Author

https://pulpito.ceph.com/amathuri-2026-01-19_08:34:57-crimson-rados:thrash_pg_grow-main-distro-debug-trial/

Re-runs:
https://pulpito.ceph.com/amathuri-2026-01-19_10:34:38-crimson-rados:thrash_pg_grow-main-distro-debug-trial/
https://pulpito.ceph.com/amathuri-2026-01-19_11:57:44-crimson-rados:thrash_pg_grow-main-distro-debug-trial/#
https://pulpito.ceph.com/amathuri-2026-01-19_15:49:24-crimson-rados:thrash_pg_grow-main-distro-debug-trial/

We needed a few re-runs since there were quite a few dead jobs due to re-image failures

admin_socket_objecter_requests tests were failing (due to wget missing on the test machines).
I was able to fix that and this is the final re-run with the admin_socket_objecter_requests tests passing:
https://pulpito.ceph.com/amathuri-2026-01-20_11:04:40-crimson-rados:thrash_pg_grow-main-distro-debug-trial/

Rest of the failures seen are known issues:
https://tracker.ceph.com/issues/73314 - PeeringState::PeeringMachine abort(we got a bad state machine event)

https://tracker.ceph.com/issues/70501 - Backfill: PeeringState::Recovered assert !ps->needs_recovery()

@Matan-B how does this look to you?

@amathuria
amathuria requested a review from a team January 20, 2026 12:54

@Matan-B Matan-B 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.

How about adding chance_pgnum_grow as a directory with a magic '$' file?
Instead of introducing a copy of the thrash dir, let's let the matrix created choose randomly whether chance_pgnum_grow should be 0 or not.

We do something similar with Seastore caching types (2q/ru). iirc, classic does something similar also with bluestore options.

@Matan-B

Matan-B commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

@Matan-B how does this look to you?

Tests looks good. But I think we should add try to add this option setting randomly instead of a new thrash copy. WDYT?

@Matan-B Matan-B moved this from Unassigned / Drafts / Discussion to In Progress in Crimson Jan 22, 2026
@amathuria

Copy link
Copy Markdown
Contributor Author

How about adding chance_pgnum_grow as a directory with a magic '$' file? Instead of introducing a copy of the thrash dir, let's let the matrix created choose randomly whether chance_pgnum_grow should be 0 or not.

We do something similar with Seastore caching types (2q/ru). iirc, classic does something similar also with bluestore options.

Sure, I can look into that. Random testing makes more sense than running all pgnum_grow tests together.

Comment thread qa/tasks/ceph_manager.py Outdated
Comment on lines +911 to +915
no_pg_change = self.ceph_manager.get_pool_property(pool, 'nopgchange')
if no_pg_change:
self.log("Pool %s has nopgchange set to true" % (pool,))
self.ceph_manager.set_pool_property(pool, 'nopgchange', 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.

This should go in a separate commit as it's a common change.
Why are we ignoring this property? I think it would be less confusing to make use of osd_pool_default_flag_nopgchange option in crimson relevant yamls.
That way we could avoid changing ceph_manager at all

@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch from aabf093 to c60fcae Compare January 23, 2026 11:50

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 that the additional thrasher definition (to be selected randomly) would work well!
Is Seastore ready to be running this definition stably?

@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch 2 times, most recently from 101271e to 25ab0e7 Compare January 29, 2026 06:42
…ting

Adds pg splitting tests that currently exist in classical testing to crimson suite.

Fixes: https://tracker.ceph.com/issues/71962
Signed-off-by: Aishwarya Mathuria <[email protected]>
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch from 25ab0e7 to 9aacacc Compare January 29, 2026 12:00
@amathuria
amathuria requested a review from a team as a code owner January 29, 2026 12:00
@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: crimson_allow_pg_split (crimson.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@Matan-B Matan-B 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.

Much better than trying to reuse osd_pool_default_flag_nopgchange as we did before!

We can now disable crimson_allow_pg_split only in the problematic test cases to merge this PR.

The relevant splitting trackers bugs should mention that to reproduce them the options needs to be re-enabled.

Comment thread src/mon/OSDMonitor.cc Outdated
Comment on lines +8273 to +8274
if (g_conf()->osd_pool_default_flag_nopgchange)
pi->set_flag(pg_pool_t::FLAG_NOPGCHANGE);

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.

We can remove the 2 lines here as it's a duplicate of l.8263-8264

Comment thread src/mon/OSDMonitor.cc
// pg merging is not yet supported in Crimson
if (p.has_flag(pg_pool_t::FLAG_CRIMSON)) {
if (n < (int)p.get_pg_num_target()) {
ss << "crimson-osd does not support decreasing pg_num";

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.

👍

Comment thread src/mon/OSDMonitor.cc
ss << "crimson-osd does not support decreasing pg_num";
return -ENOTSUP;
}
if (n > (int)p.get_pg_num_target() && !g_conf().get_val<bool>("crimson_allow_pg_split")) {

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 this also needs to be added to all other FLAG_NOPGCHANGE users in this file (pg_num_actual, pgp_num and pgp_num_actual)

@Matan-B Matan-B Jan 29, 2026 •

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.

IIUC, we can remove this commit now and instead add chance_pgnum_grow: to our existing thrash tests Meaning, no there's no need for additional pggrow.yaml definition, right?

edit: We should keep pggrow separately I now see that this is the convention in qa.

@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch from 9aacacc to fe80bb7 Compare January 30, 2026 05:41
Previously, crimson pools were created with FLAG_NOPGCHANGE hardcoded,
preventing any adjustment to pg_num since splitting and merging were
not yet supported.

This patch:
- Removes the hardcoded FLAG_NOPGCHANGE during crimson pool creation,
  and instead honors the global 'osd_pool_default_flag_nopgchange'.
- Introduces 'crimson_allow_pg_split' (default: true) to gate
  PG splitting.
- Explicitly blocks PG merging (shrinking) for crimson pools,
  as shrinking remains unsupported.

Signed-off-by: Aishwarya Mathuria <[email protected]>
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch from fe80bb7 to a236e9e Compare January 30, 2026 05:45
@amathuria

Copy link
Copy Markdown
Contributor Author

radosbench workloads skipping splitting - https://pulpito.ceph.com/amathuri-2026-01-30_10:00:40-crimson-rados:thrash-main-distro-debug-trial/

2026-01-30T10:13:58.223 INFO:tasks.ceph.ceph_manager.ceph:increase pool size by 10
2026-01-30T10:13:58.223 DEBUG:teuthology.orchestra.run.trial079:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph osd pool set unique_pool_0 pg_num 26
2026-01-30T10:13:58.311 INFO:teuthology.orchestra.run.trial079.stderr:2026-01-30T10:13:58.304+0000 7f4d0e50b640 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2026-01-30T10:13:58.314 INFO:teuthology.orchestra.run.trial079.stderr:2026-01-30T10:13:58.312+0000 7f4d0e50b640 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2026-01-30T10:13:58.432 INFO:teuthology.orchestra.run.trial079.stderr:Error EPERM: crimson_allow_pg_split is false; pg_num increase denied for crimson pool
2026-01-30T10:13:58.438 DEBUG:teuthology.orchestra.run:got remote process result: 1

splitting in a pggrow thrash test (no flags needed any more) - https://pulpito.ceph.com/amathuri-2026-01-30_07:46:29-crimson-rados:thrash-main-distro-debug-trial/

From vstart cluster, attempting a merge will fail currently in the following manner:

[amathuri@sockeni03 build]$ ./bin/ceph osd pool create testbench 16
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2026-01-30T11:07:30.810+0000 7fae9cb56640 -1 WARNING: all dangerous and experimental features are enabled.
2026-01-30T11:07:30.822+0000 7fae9cb56640 -1 WARNING: all dangerous and experimental features are enabled.
pool 'testbench' created
[amathuri@sockeni03 build]$ ./bin/ceph osd pool set testbench pg_num 4
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2026-01-30T11:07:58.475+0000 7f28c0165640 -1 WARNING: all dangerous and experimental features are enabled.
2026-01-30T11:07:58.488+0000 7f28c0165640 -1 WARNING: all dangerous and experimental features are enabled.
Error ENOTSUP: crimson-osd does not support decreasing pg_num
[amathuri@sockeni03 build]$ 

@amathuria
amathuria requested a review from Matan-B February 2, 2026 03:20
@amathuria

Copy link
Copy Markdown
Contributor Author

jenkins test api

@Matan-B Matan-B 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! Does this need a rerun or the previous tests will do?

@@ -1,6 +1,8 @@
overrides:
ceph:
conf:
global:
crimson_allow_pg_split: false

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: we can comment the related trackers here

@Matan-B Matan-B moved this from In Progress to Needs QA in Crimson Feb 3, 2026
@Matan-B

Matan-B commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

PR marked as DNM label, should we remove it?

Disable 'crimson_allow_pg_split' in radosbench and high-concurrency
workloads to avoid hitting known bugs in Seastore.

Signed-off-by: Aishwarya Mathuria <[email protected]>
@amathuria
amathuria force-pushed the wip-amat-crimson-add-pg-num-testing branch from 00ce212 to 1ce8bf5 Compare February 3, 2026 08:46
@amathuria amathuria removed the DNM label Feb 3, 2026
@amathuria

Copy link
Copy Markdown
Contributor Author

lgtm! Does this need a rerun or the previous tests will do?

@Matan-B The previous tests should be fine, the new runs were done to verify the flag works fine and that's the only change that's been made.

@amathuria amathuria closed this Feb 3, 2026
@amathuria amathuria reopened this Feb 3, 2026
@amathuria

Copy link
Copy Markdown
Contributor Author

PR marked as DNM label, should we remove it?

@Matan-B removed it!

@Matan-B Matan-B mentioned this pull request Feb 9, 2026
4 of 14 tasks
@Matan-B
Matan-B merged commit 0022f83 into ceph:main Feb 9, 2026
@github-actions

github-actions Bot commented Feb 9, 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/21821713269

@Matan-B Matan-B moved this from Needs QA to Merged (Main) in Crimson Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged (Pre Umbrella cutoff)

Development

Successfully merging this pull request may close these issues.

3 participants