Skip to content

rgw: support kafka 4.x brokers - #69666

Merged
yuvalif merged 1 commit into
ceph:mainfrom
ShreeJejurikar:wip-rgw-kafka-4x-support
Jul 22, 2026
Merged

yuvalif merged 1 commit into
ceph:mainfrom
ShreeJejurikar:wip-rgw-kafka-4x-support

Conversation

@ShreeJejurikar

@ShreeJejurikar ShreeJejurikar commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Vendors librdkafka v2.12.1 as a submodule (default) and teaches the notification teuthology task to set up Kafka 4.x KRaft brokers. The distro-shipped librdkafka 1.6.1 cannot SCRAM-auth against Kafka 4.x brokers (#75900); the bundled version fixes that. Build with WITH_SYSTEM_RDKAFKA=ON to opt back into the distro library (floor 2.11).

The teuthology version matrix picks one of {3.9.2, 4.1, 4.2, 4.3} per run.
After pulling this branch, fetch the new submodule:

git submodule update --init src/librdkafka

Fixes: https://tracker.ceph.com/issues/77336

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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.

@ShreeJejurikar
ShreeJejurikar requested review from a team as code owners June 23, 2026 08:56
@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.

@yuvalif

yuvalif commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@ShreeJejurikar can we avoid bundling librdkafka as a submodule?

we haver to support the following targets:

  • centos/rocky10 ships: 2.1
  • ubuntu26.04 ships: 2.13
  • ubuntu24.04 shipts 2.3
  • fedora44 (for dev environment) ships 2.12

i think that the only issue would be with GSSAPI against a Kafka 4.x (except for ubuntu26.04/fedora44 where is should work).
I think that for now, we should just document that GSSAPI against a Kafka 4.x is not supported (the original tracker).
we may decide to fix it later, by adding the git submodule, but for now, it might be ok to just make sure that everything else works with 4.x without the git submodule.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

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

@ShreeJejurikar
ShreeJejurikar force-pushed the wip-rgw-kafka-4x-support branch 2 times, most recently from 70d57f3 to daec431 Compare July 4, 2026 16:22
@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test signed

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test submodules

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

Copilot AI 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.

Pull request overview

Copilot reviewed 22 out of 22 changed files in this pull request and generated no new comments.

@yuvalif
yuvalif force-pushed the wip-rgw-kafka-4x-support branch from 8a40c06 to 7179dff Compare July 22, 2026 09:20
@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test submodules

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test signed

librdkafka submodule

Vendors librdkafka v2.12.1 as a submodule (default) and teaches the
notification teuthology task to set up Kafka 4.x KRaft brokers. The
distro-shipped librdkafka 1.6.1 cannot SCRAM-auth against Kafka 4.x
brokers (#75900); the bundled version fixes that. Build with
WITH_SYSTEM_RDKAFKA=ON to opt back into the distro library (floor 2.6.1).
follwinf changes needed with teh submodule:
* build kafka_stub only in case of system librdkafka
* use the same header location in submodule and system
* supress compilation warning to avoid -WError issues

2.12.1 matches Fedora(44)'s current librdkafka-devel, so the vendored copy
tracks a version that distro packagers have already vetted rather than
whichever release happens to be latest upstream.

The teuthology version matrix picks one of {3.9.2, 4.1, 4.2, 4.3} per run.
3.9.2 covers the last Zookeeper-based release for the migration cohort.
4.1/4.2/4.3 track Apache's current three supported minor lines and are
resolved to the latest patch at test time via dlcdn.apache.org/kafka/, so
new patches within a supported minor need no PR update. A new minor line
(4.4) requires renaming one YAML.
* new java version (17) is needed for kafka 4.2 and up (we wil use it on
  all version)
* kerberos task need to run before the kafka install task

After pulling this branch, fetch the new submodule:

    git submodule update --init src/librdkafka

Fixes: https://tracker.ceph.com/issues/77336

Signed-off-by: ShreeJejurikar <[email protected]>
Co-authored-by: Yuval Lifshitz <[email protected]>
Copilot AI review requested due to automatic review settings July 22, 2026 10:29
@yuvalif
yuvalif force-pushed the wip-rgw-kafka-4x-support branch from 7179dff to efe5452 Compare July 22, 2026 10:29

Copilot AI 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.

Pull request overview

Copilot reviewed 22 out of 22 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/test/rgw/bucket_notification/README.rst:72

  • The setup currently formats storage before telling security-test users to move the controller listener to port 9097. --standalone derives and persists the initial voter endpoint from this config, so formatting with the default 9093 endpoint and changing it afterward leaves bootstrap metadata pointing at the old port. Require the security edits (including the final controller port) before running kafka-storage.sh format.
First-time setup (per Kafka installation), format the storage::

        KAFKA_CLUSTER_ID=$(bin/kafka-storage.sh random-uuid)
        bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/server.properties --standalone

@yuvalif

yuvalif commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test submodules

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test signed

@yuvalif

yuvalif commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuvalif
yuvalif merged commit 4b55068 into ceph:main Jul 22, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

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
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/29928638214

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