Repository navigation
qa/suites/crimson-rados: Add pg splitting tests to crimson thrash tes… - #65814
Conversation
841e8e8 to
9e87ca1
Compare
24f904c to
75e87f2
Compare
b4a43e4 to
688313b
Compare
be849d9 to
30dac30
Compare
|
QA run - https://pulpito.ceph.com/amathuri-2025-12-04_06:33:53-crimson-rados:thrash_pg_grow-main-distro-crimson-debug-gibba/ Failure analysis is pending, I will update it once I can access the logs again. |
1d93b5f to
aabf093
Compare
Matan-B
left a comment
There was a problem hiding this comment.
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.
Tests looks good. But I think we should add try to add this option setting randomly instead of a new thrash copy. WDYT? |
Sure, I can look into that. Random testing makes more sense than running all pgnum_grow tests together. |
| 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) | ||
|
|
There was a problem hiding this comment.
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
aabf093 to
c60fcae
Compare
There was a problem hiding this comment.
I think that the additional thrasher definition (to be selected randomly) would work well!
Is Seastore ready to be running this definition stably?
101271e to
25ab0e7
Compare
…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]>
25ab0e7 to
9aacacc
Compare
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. |
Matan-B
left a comment
There was a problem hiding this comment.
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.
| if (g_conf()->osd_pool_default_flag_nopgchange) | ||
| pi->set_flag(pg_pool_t::FLAG_NOPGCHANGE); |
There was a problem hiding this comment.
We can remove the 2 lines here as it's a duplicate of l.8263-8264
| // 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"; |
| 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")) { |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
9aacacc to
fe80bb7
Compare
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]>
fe80bb7 to
a236e9e
Compare
|
radosbench workloads skipping splitting - https://pulpito.ceph.com/amathuri-2026-01-30_10:00:40-crimson-rados:thrash-main-distro-debug-trial/ 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: |
|
jenkins test api |
Matan-B
left a comment
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
nit: we can comment the related trackers here
|
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]>
00ce212 to
1ce8bf5
Compare
@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. |
@Matan-B removed it! |
|
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 |
…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
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.