Repository navigation
doc,qa: describe the erasure code profile lifecycle - #50
Merged
Merged
Conversation
No monitor or OSD code changes.
Since "mon: add EC pool creation parameters for automatic profile
generation", the monitor deletes an erasure code profile with the last
pool that uses it, unless it is the default profile. On main a profile
stays until 'osd erasure-code-profile rm'. Document this in the profile
and pool user docs: how a profile is created ('osd erasure-code-profile
set', or 'osd pool create' with k and m), when it is deleted, and a note
for scripts that reuse a profile after deleting its pools.
Fix two qa users that reused a profile after deleting its last pool.
TEST_erasure_pool_crush_rule_rm in osd-crush.sh now checks that the
profile went with the pool and sets it again. The rados task set up its
profile and CRUSH rule once and then created and deleted pools in every
run, so a second run created its pools with a profile that no longer
existed; it now sets them up at the start of every run.
Bring the stretch EC design doc in line with the code. Add section
2.1.5: how a pool gets its profile (generated from k and m, named, or
default), the generated profile's name and contents, the parameter
combinations the monitor refuses, how the profile sets the pool's size,
shard counts and CRUSH rule, what multi-zone pools need, and when a
profile is deleted. Correct the passages that said stretch EC pools do
not use profiles, that num_zones is a profile key or would be changed by
swapping profiles, that changing num_zones is a later-release feature,
and that 'osd pool stretch set' refuses EC pools. A profile, named or
default, can be used with num_zones greater than 1; sections 1, 2.1.4
and 2.1.5 say that this stays supported. num_zones is set per pool and
is never part of a profile.
Assisted-by: Claude Code
Signed-off-by: Alex Ainscow <[email protected]>
aainscow
marked this pull request as ready for review
October 7, 2026 20:22
aainscow
force-pushed
the
wip-stretchy-C-pr43-06-profile-lifecycle
branch
from
October 7, 2026 20:23
51d8b3b to
f1502cb
Compare
This was referenced Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sixth PR split out of #43. Docs and QA only, with no functional change to Ceph. It does three things:
Documents that an erasure code profile is now deleted with its last pool. Callum James's 8efd3a0 ("mon: add EC pool creation parameters for automatic profile generation") made the monitor delete a profile when the last pool that uses it is deleted, unless it is the
defaultprofile. On main a profile stays untilceph osd erasure-code-profile rm. Nothing documented this. The profile user doc gets a lifecycle section: how a profile is created (osd erasure-code-profile set, orosd pool createwith--kand--m), when it is deleted, and a note for scripts that reuse a profile after deleting its pools. The pool doc points at it.Fixes two qa users broken by that change. Both reused a profile after deleting its last pool.
TEST_erasure_pool_crush_rule_rminmon/osd-crush.shfails on stretchy-C today. It now checks that the profile went with the pool and sets it again.radosteuthology task set up its profile and CRUSH rule once, then created and deleted pools in every run, so a second run used a profile that no longer existed. It now sets them up at the start of every run.Brings the stretch EC design doc in line with the code. A new section 2.1.5 describes how a stretch EC pool gets its profile (generated from
--k/--m, named, ordefault), the generated profile's name and contents, the parameter combinations the monitor refuses, how the profile sets the pool's size, shard counts and CRUSH rule, and when the profile is deleted. Passages that contradicted the code are corrected:default, can be used withnum_zonesgreater than 1. Sections 1, 2.1.4 and 2.1.5 say this is permanent, not transitional, as Eric asked (1, 2, 3).num_zonesis set per pool and is never part of a profile. Anum_zoneskey set in a profile is ignored.num_zonescan be changed withceph osd pool set <pool> num_zones <n>, which osd, mon: support per-zone replica min_size for stretch pools #35 implemented (1 or 2 zones, outside global stretch mode). It is no longer described as impossible (Eric's comment) or as a later-release item done by swapping profiles (sections 2.1.5, 13.2 and 14.4).osd pool stretch setdoes not refuse EC pools.num_zones > 1pools, not profiles, and is not implemented yet.Not changed here: a pool created from the
defaultprofile shares theerasure-codeCRUSH rule, so withnum_zonesgreater than 1 it changes or reuses that shared rule. Section 2.1.5 describes that as the code does it today. A later PR of this series gives a multi-zone pool its own rule instead, so thatosd pool create foo erasure --num-zones 2works, as Eric asked (comment).Testing
mon/osd-crush.shpassed 9/9, includingTEST_erasure_pool_crush_rule_rm. On stretchy-C without this commit,TEST_erasure_pool_crush_rule_rmfails, because the profile is now deleted with its last pool.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.
🤖 Generated with Claude Code