Skip to content

rgw/es: require both major and minor in ES version parsing - #70007

Merged
cbodley merged 1 commit into
ceph:mainfrom
sunyuechi:wip-rgw-es-version-parse
Sep 25, 2026
Merged

cbodley merged 1 commit into
ceph:mainfrom
sunyuechi:wip-rgw-es-version-parse

Conversation

@sunyuechi

Copy link
Copy Markdown
Contributor

parse_version() only checked sscanf() < 0 as failure, but sscanf returns
the count of assigned fields, so a partial match leaves major/minor
uninitialized and pollutes later version checks. Require both fields and
return -EINVAL otherwise.

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 July 7, 2026 19:00
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

16 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@github-actions github-actions Bot added the rgw label Jul 7, 2026
parse_version() only checked sscanf() < 0 as failure, but sscanf returns
the count of assigned fields, so a partial match leaves major/minor
uninitialized and pollutes later version checks. Require both fields and
return EINVAL otherwise.

Signed-off-by: Sun Yuechi <[email protected]>
@sunyuechi
sunyuechi force-pushed the wip-rgw-es-version-parse branch from 378febe to 8d47670 Compare August 11, 2026 08:20
@sunyuechi

Copy link
Copy Markdown
Contributor Author

@tchaikov @cbodley Could you help take a look? Thanks!

@cbodley

cbodley commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

jenkins make check arm64

2 similar comments
@cbodley

cbodley commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

jenkins make check arm64

@tchaikov

Copy link
Copy Markdown
Contributor

jenkins make check arm64

@cbodley

cbodley commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

ok to test

@cbodley

cbodley commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@cbodley cbodley mentioned this pull request Sep 25, 2026
4 of 14 tasks
@cbodley
cbodley merged commit 44d50f6 into ceph:main Sep 25, 2026
15 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.

4 participants