Repository navigation
osdc/objecter: Allow objecter to support multiple librados client setting object_requets - #67471
Conversation
62a3fdc to
2e00029
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
2e00029 to
55116c7
Compare
55116c7 to
8e0f5bd
Compare
|
ping @adamemerson |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This needs Core and RBD testing, not just RGW testing. |
Add an optional admin_socket_name parameter to the Objecter constructor (defaulted to empty). The name is stored as a member variable and used during init() to register the admin socket command. If non-empty, the command registers as "objecter_requests.<name>" instead of the default "objecter_requests", enabling multiple Objecter instances in the same process to have distinct admin socket commands. Signed-off-by: Krunal Chheda <[email protected]>
Use the admin socket name infrastructure to register distinct names for each Objecter instance in the RGW process: - Neorados client defaults to "objecter_requests.NeoRados" - ConfigStore librados client uses "objecter_requests.ConfigStore" This enables operators to distinguish between Objecter instances when querying admin socket commands for debugging. Signed-off-by: Krunal Chheda <[email protected]>
8e0f5bd to
dd3df28
Compare
|
This PR has been added to wip-bharath7-testing-20260811.152323-main. |
|
This PR has been added to main integration testing by anuchaithra started 2026-08-13-05:35. |
|
|
||
| /* Don't warn on EEXIST, happens if multiple ceph clients | ||
| * are instantiated from one process */ | ||
| if (ret < 0 && ret != -EEXIST) { |
There was a problem hiding this comment.
Dropping the EEXIST arm of the condition here introduced a regression for existing users where multiple clients are instantiated with the same name. An unwanted error is logged to stderr now:
$ sudo rbd device map -n client.wrong testimage
rbd: sysfs write failed
2026-08-09T09:44:49.690+0200 ffff99f66020 -1 client.?.objecter error registering admin socket command: (17) File exists
In some cases useful info is found in syslog - try "dmesg | tail".
rbd: map failed: (1) Operation not permitted
(Failure with EPERM is expected, error registering admin socket command message is not.)
There was a problem hiding this comment.
Dropping the EEXIST arm of the condition here introduced a regression for existing users where multiple clients are instantiated with the same name. An unwanted error is logged to stderr now:
$ sudo rbd device map -n client.wrong testimage rbd: sysfs write failed 2026-08-09T09:44:49.690+0200 ffff99f66020 -1 client.?.objecter error registering admin socket command: (17) File exists In some cases useful info is found in syslog - try "dmesg | tail". rbd: map failed: (1) Operation not permitted(Failure with EPERM is expected,
error registering admin socket commandmessage is not.)
sorry for the un-expected behaviour @idryomov, created PR #71064 to log at stdout and at level1, so you get the expected error message in stderr and does not confuse,
| * are instantiated from one process */ | ||
| if (ret < 0 && ret != -EEXIST) { | ||
| std::string cmd_name = "objecter_requests"; | ||
| if (!m_admin_socket_name.empty()) { |
There was a problem hiding this comment.
Perhaps for the purposes of this registration m_admin_socket_name could be defaulted to client's global ID (an integer taken as a string)? Then existing users where multiple clients are instantiated without the new set_objecter_admin_socket_name() in the picture would be taken care of. The only way to get EEXIST would be to explicitly set identical names with set_objecter_admin_socket_name() but that is something that deserves an error on stderr IMO.
currently rgw creates multiple librados client ( one of config-store, one for rados backend driver, and one more for neorados), so objecter registers admin socket hook of
objecter_requestsonly for the first client.so extend objecter to support multiple librados client by allowing to set custom admin socket name.
Fixes: https://tracker.ceph.com/issues/74983
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.