Skip to content

erasure-code/isa: default technique when the profile has none - #72215

Merged
tchaikov merged 1 commit into
ceph:mainfrom
sunyuechi:isa-plugin-missing-technique
Oct 14, 2026
Merged

tchaikov merged 1 commit into
ceph:mainfrom
sunyuechi:isa-plugin-missing-technique

Conversation

@sunyuechi

@sunyuechi sunyuechi commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

factory() dereferences profile.find("technique") and find("m") without
checking for end(). A profile without technique, e.g. from
ceph_erasure_code_benchmark --plugin isa, aborts. Default to
reed_sol_van like the jerasure plugin does, and m to DEFAULT_M.

Tracker: https://tracker.ceph.com/issues/81426

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)

@sunyuechi
sunyuechi requested a review from a team as a code owner September 30, 2026 00:30
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

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

please note this addresses a regression introduced by a05bb75 which was in turn included by umbrella, so could you please file a tracker ticket so we can backport this fix and reference the offending commit?

also, i think this issue also impacts monitor. see OSDMonitor::parse_erasure_code_profile().

factory() dereferenced profile.find("technique") and find("m") without
checking for end(). A profile without technique threw std::bad_alloc
and aborted: ceph_erasure_code_benchmark --plugin isa, and the monitor
on "osd erasure-code-profile set ... plugin=isa" when the default
profile uses another plugin. Default to reed_sol_van like the jerasure
plugin does.

a05bb75 removed the technique default and a6491a8 added the
lookup of m.

Fixes: https://tracker.ceph.com/issues/81426
Signed-off-by: Sun Yuechi <[email protected]>
@sunyuechi
sunyuechi force-pushed the isa-plugin-missing-technique branch from 1c55576 to 04b9643 Compare October 5, 2026 13:17
@sunyuechi

Copy link
Copy Markdown
Contributor Author

@rzarzynski

Copy link
Copy Markdown
Contributor

@JonBailey1993: would you mind final review?

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

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

This PR has been added to wip-bharath10-testing-20261012.232418-main.

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@tchaikov
tchaikov merged commit 962e8c6 into ceph:main Oct 14, 2026
19 checks passed
sunyuechi added a commit to sunyuechi/openRuyi that referenced this pull request Oct 28, 2026
The new snapshot brings in these fixes:
- osd/PeeringState: fix the divergence check against olog.head
  (ceph/ceph#70149)
- osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965)
- osdc: fix ReplicaSplitOp chunk distribution, reassembly and
  small multi-op reads (ceph/ceph#70207)
- erasure-code/isa: default the technique when the profile has none
  (ceph/ceph#72215)
- mount.ceph: report kernels without aes256k key support
  (ceph/ceph#72159)
- rgw/es: require both major and minor in the ES version
  (ceph/ceph#70007)
- build: turn WITH_RADOSGW_LANCEDB off where lance cannot build
  (ceph/ceph#71935)
- cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657)
- cmake/boost: do not pass context-impl to the headers step
  (ceph/ceph#71249)
- rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051)
- test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463)
- qa/lsan.supp: match OpenSSL error state on ERR_set_mark
  (ceph/ceph#71460)

Signed-off-by: Sun Yuechi <[email protected]>
misaka00251 pushed a commit to openRuyi-Project/openRuyi that referenced this pull request Oct 28, 2026
The new snapshot brings in these fixes:
- osd/PeeringState: fix the divergence check against olog.head
  (ceph/ceph#70149)
- osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965)
- osdc: fix ReplicaSplitOp chunk distribution, reassembly and
  small multi-op reads (ceph/ceph#70207)
- erasure-code/isa: default the technique when the profile has none
  (ceph/ceph#72215)
- mount.ceph: report kernels without aes256k key support
  (ceph/ceph#72159)
- rgw/es: require both major and minor in the ES version
  (ceph/ceph#70007)
- build: turn WITH_RADOSGW_LANCEDB off where lance cannot build
  (ceph/ceph#71935)
- cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657)
- cmake/boost: do not pass context-impl to the headers step
  (ceph/ceph#71249)
- rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051)
- test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463)
- qa/lsan.supp: match OpenSSL error state on ERR_set_mark
  (ceph/ceph#71460)

Signed-off-by: Sun Yuechi <[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.

6 participants