Skip to content

qa: restructure erasure-code thrash suites with pool-config separation - #71826

Merged
CJamesIBM merged 1 commit into
ceph:mainfrom
CJamesIBM:cal_wip_teuthology_config_changes_main
Oct 27, 2026
Merged

CJamesIBM merged 1 commit into
ceph:mainfrom
CJamesIBM:cal_wip_teuthology_config_changes_main

Conversation

@CJamesIBM

@CJamesIBM CJamesIBM commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Consolidates 6 separate erasure-code thrash suite directories into two unified suites (thrash-erasure-codeand thrash-erasure-code-big) by introducing a 'pool-config' approach which separates pool/profile configuration from workload definitions. This enables a proper teuthology matrix expansion across all EC Profiles and optimization flags without unnecessary duplication.

Note:thrash-erasure-code-big remains as a unique suite as it was the only one using a different cluster setup. Interestingly, despite it's name, the cluster it uses is actually smaller.

Motivation

Previously, the test suite has 6 independent thrash-erasure-code-* directories:

Old Suite Purpose
thrash-erasure-code Default jerasure profiles
thrash-erasure-code-big Different cluster with select profiles
thrash-erasure-code-isa ISA plugin profiles (x86_64-only)
thrash-erasure-code-shec SHEC plugin
thrash-erasure-code-overwrites Overwrite-enabled pools
thrash-erasure-code-crush-4-nodes CRUSH rule variants

Each suite duplicated the same cluster setups, thrasher configs, mon election/msgr-failures/objectstore/recovery-overrides setup, and ec_optimizations on/off toggles. Adding a new profile or workload required editing multiple directories.

What Changed

New pool-config override mechanism (rados.py, radosbench.py)

Both task files now support a use-pool-config: true key. When set, pool configuration (ec_pool, erasure_code_profile, erasure_code_crush, erasure_code_overwrites, fast_read, min_size) is read from overrides.ceph.pool-config in the teuthology context rather than being hardcoded in each workload YAML. Task level config still takes precedence over pool-config values.

New shared profile library (qa/erasure-code-profile/)

18 profile YAML files for various plugin/parameter combinations. Each file writes into overrides.ceph.pool-config. ISA profiles include the arch: x86_64 guard. These are the source for all profile definitions - suite level profile files are symlinks back to here.

New shared matrix (qa/erasure-code/)

  • %
  • ec_optimizations/
    • off/ — off.yaml + profile/ symlinks (18 profiles)
    • on/ — on.yaml + profile/ symlinks (15 profiles)
  • fast/
    • fast.yaml — fast_read: true
    • normal.yaml — fast_read: false

Unified thrash-erasure-code suite

The suite now has a single erasure-code dimension (a symlink to qa/erasure-code/) which expands as a full matrix across all 18 profiles x 2 optimization states x 2 fast_read states. The old workloads that embedded profile configuration inline (e.g. ec-rados-plugin=jerasure-k=2-m=1.yaml) are replaced with 7 generic workloads that defer to pool-config.

New Workload Replaces
rados-default.yaml ec-rados-plugin=*.yaml (profile-specific workloads)
rados-small-obj.yaml ec-small-objects.yaml, ec-small-objects-fast-read.yaml
rados-small-obj-delete.yaml ec-small-objects-many-deletes.yaml
rados-bench.yaml ec-radosbench.yaml
rados-overwrites.yaml ec-small-objects-overwrites.yaml (from overwrites suite)
rados-snaps-overwrites.yaml ec-snaps-few-objects-overwrites.yaml
rados-pool-snaps-overwrites.yaml ec-pool-snaps-few-objects-overwrites.yaml

Restructured thrash-erasure-code-big suite

Retains its own inline erasure-code/ec_optimizations/ tree with a reduced profile set (profiles compatible with a 12-OSD cluster), but profile files are now symlinks to qa/erasure-code-profile/ rather than inline copies. The old inline workloads/ with per-profile files is replaced with a single rados-default.yaml using use-pool-config: true.

Removed suites

thrash-erasure-code-isa, thrash-erasure-code-shec, thrash-erasure-code-overwrites, and thrash-erasure-code-crush-4-nodes are deleted. Their coverage is fully preserved within the unified thrash-erasure-code matrix.

Before / After Comparison

Before After
Suite directories 6 (thrash-erasure-code*) 2 (thrash-erasure-code, thrash-erasure-code-big)
Profile definitions Duplicated inline in each workload YAML Single source file in qa/erasure-code-profile/, referenced via symlinks
EC opt on/off Per-suite duplicate YAML files, included experimental features flag Shared qa/erasure-code/ec_optimizations/{on,off}/
Adding a new profile Edit workload YAMLs in multiple suite dirs Add one file to qa/erasure-code-profile/, add symlinks to profile/ dirs
Adding a new workload Duplicate across suites Add one file to thrash-erasure-code/workloads/
Pool config in workloads Hardcoded per profile in each workload file Injected via overrides.ceph.pool-config at matrix expansion time
radosbench.py EC features No CRUSH rule, no overwrites, no fast_read, no min_size Full parity with rados.py

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.

@CJamesIBM
CJamesIBM requested a review from a team as a code owner September 16, 2026 11:18

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

Looking fairly good - a couple of points:

  1. thrash-erasure-code-big include all the profiles, includes ones that use more than 12 osds? Is that a bug?

  2. It would be a minor improvement if off.yaml, on.yaml and the fast directory under thrash-erasure-code-big were symbolic links to .qa/erasure-code-code/off/off.yaml, .qa/erasure-code-code/on/on.yaml and .qa/erasure-code-code/fast rather than duplicating files

  3. See the output from running src/script/verify-qa - you are missing symbolic links to .qa in quite a few directories.

@CJamesIBM
CJamesIBM force-pushed the cal_wip_teuthology_config_changes_main branch from f1cd391 to e4afc15 Compare September 23, 2026 14:07
@CJamesIBM

Copy link
Copy Markdown
Contributor Author

Looking fairly good - a couple of points:

1. thrash-erasure-code-big include all the profiles, includes ones that use more than 12 osds? Is that a bug?

2. It would be a minor improvement if off.yaml, on.yaml and the fast directory under thrash-erasure-code-big were symbolic links to .qa/erasure-code-code/off/off.yaml, .qa/erasure-code-code/on/on.yaml and .qa/erasure-code-code/fast rather than duplicating files

3. See the output from running src/script/verify-qa - you are missing symbolic links to .qa in quite a few directories.

All changes addressed

@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

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

@CJamesIBM - While creating the Shaman build, I encountered the following error. Could you please resolve the issue and add the needs-qa label?

Now have head for PR #71826: e4afc15ca8adbcf0ca7a06c481c392c18d6a5260
Failed to merge PR #71826: merge conflict detected
Successfully aborted conflicted merge, repository is clean
PR #71826 has merge conflicts with previously merged changes. Please resolve conflicts manually or rebase the PR.

@CJamesIBM

Copy link
Copy Markdown
Contributor Author

Rebased on main

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath20-testing-20261002.224634-main.

@sseshasa

sseshasa commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@CJamesIBM There are many tests that didn't run due to the restructuring in this PR. For example, the restructuring caused two facets to combine namely, qa/suites/rados/singleton/ec-features-test/ec-feature-plugins-v2.yaml and qa/suites/rados/singleton/all/* (which are both under the qa/suites/rados/singleton directory). This caused roles to be duplicated resulting in the ValueError in the kernel task.

In the above case, the file ec-feature-plugins-v2.yaml very likely needs to be moved into qa/suites/rados/singleton/all so that it's treated as a single independent facet.

I will therefore ask for the PR to be removed from the QA batch.

@CJamesIBM

Copy link
Copy Markdown
Contributor Author

@sseshasa Thanks for the info, I'll take a look

@CJamesIBM
CJamesIBM force-pushed the cal_wip_teuthology_config_changes_main branch 2 times, most recently from b8373ae to 504c9ab Compare October 8, 2026 14:02
@CJamesIBM

Copy link
Copy Markdown
Contributor Author

Test responsible looks to be old upgrade test related to firefly release, no current suite is actually using it so I have just removed it.

Sanity checking with my own teuthology runs now

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been removed from wip-bharath20-testing-20261002.224634-main.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath20-testing-20261002.224634-main.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 15, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 16, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 16, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 16, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
aainscow added a commit to aainscow/ceph that referenced this pull request Oct 16, 2026
"Check for missing .qa links" (src/script/verify-qa) found no .qa link
in qa/suites/rados/singleton/ec-feature-test,
qa/suites/rados/thrash-erasure-code/clusters and
qa/suites/rados/thrash-erasure-code/workloads, which the copy of
ceph#71826 creates. Add them, as
verify-qa does.

Assisted-by: Claude Code
@adam-lj

adam-lj commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

There is one minor issue with this PR that caused several jobs in the QA run to fail with the following error:
Error ENOENT: technique=cauchy is not a valid coding technique. Choose one of: reed_sol_van, …, cauchy_orig, cauchy_good, …

@CJamesIBM

Copy link
Copy Markdown
Contributor Author

There is one minor issue with this PR that caused several jobs in the QA run to fail with the following error: Error ENOENT: technique=cauchy is not a valid coding technique. Choose one of: reed_sol_van, …, cauchy_orig, cauchy_good, …

Checking

@adam-lj

adam-lj commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Combined 6 thrash-erasure-code variants into one unified suite using new pool-config structure that separates pool configuration from workload definitions. This enables better test matrix expansion and reduces duplication.

Changes:
- Created qa/erasure-code-profile/ with reusable profile definitions
- Created qa/erasure-code/ec_optimizations/ hierarchy with on/off variants
- Removed legacy suite directories (thrash-erasure-code-{big,isa,shec,overwrites,crush-4-nodes})
- Added cluster size directories (standard/big/crush-test)
- Added % markers for proper test matrix expansion
- Updated rados.py and radosbench.py to support new structure

Signed-off-by: Callum James <[email protected]>
@CJamesIBM
CJamesIBM force-pushed the cal_wip_teuthology_config_changes_main branch from 504c9ab to b302c16 Compare October 27, 2026 11:46
@CJamesIBM

CJamesIBM commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

@CJamesIBM
CJamesIBM merged commit 169a0fb into ceph:main Oct 27, 2026
14 checks passed
aainscow added a commit to aainscow/ceph that referenced this pull request Nov 9, 2026
Callum James, ceph#72644: "1. Yeah, let's
add those back with this PR since we are adding num_zones"
(ceph#72644 (comment)).

The rebase onto main's ceph#71826 left out three num_zones lines that the
PREREQ copy had: the info log in _validate_pool_config() of rados.py
and radosbench.py, which reminds that a pool over zones needs
osd_pool_default_flag_ec_optimizations, "num_zones: 2" in the
pool-config example of the rados task's docstring, and the num_zones
option in the radosbench task's docstring. They are back as they were.

Assisted-by: Claude Code
Signed-off-by: Alex Ainscow <[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