Skip to content

osdc/objecter: only log admin socket EEXIST for named clients - #71064

Merged
idryomov merged 1 commit into
ceph:mainfrom
kchheda3:wip-objecter-eexist-regression
Aug 14, 2026
Merged

idryomov merged 1 commit into
ceph:mainfrom
kchheda3:wip-objecter-eexist-regression

Conversation

@kchheda3

@kchheda3 kchheda3 commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Commit 8f6e7a0 ("osdc/objecter: Allow Objecter to store custom name for admin socket") dropped the EEXIST arm of the registration check, so that a failure to register objecter_requests would no longer be silently swallowed.

That regressed callers which instantiate multiple librados clients in a single process without setting a distinct name. They now emit an error on stderr, e.g. rbd device map prints

-1 client.?.objecter error registering admin socket command: (17) File exists

on top of the real failure, which is misleading. Such callers cannot act on the message either: short lived CLI processes get no value from registering a per-client admin socket command in the first place.

Restore the previous behaviour for unnamed clients, but keep it discoverable by logging at debug level instead of silently ignoring it, and continue to report a genuine error when two clients explicitly register the same name via set_objecter_admin_socket_name().

Signed-off-by: Krunal Chheda [email protected]

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.

Commit 8f6e7a0 ("osdc/objecter: Allow Objecter to store custom name
for admin socket") dropped the EEXIST arm of the registration check, so
that a failure to register objecter_requests would no longer be silently
swallowed.

That regressed callers which instantiate multiple librados clients in a
single process without setting a distinct name.  They now emit an error
on stderr, e.g. rbd device map prints

  -1 client.?.objecter error registering admin socket command: (17) File exists

on top of the real failure, which is misleading.  Such callers cannot
act on the message either: short lived CLI processes get no value from
registering a per-client admin socket command in the first place.

Restore the previous behaviour for unnamed clients, but keep it
discoverable by logging at debug level instead of silently ignoring it,
and continue to report a genuine error when two clients explicitly
register the same name via set_objecter_admin_socket_name().

Signed-off-by: Krunal Chheda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants