Project

General

Profile

Documentation #45564

cephadm: how to access the admin socket?

Added by Sebastian Wagner about 2 months ago. Updated 8 days ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

$ ceph daemon mgr.ceph03 config show
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
$ ceph --admin-daemon /var/run/ceph/mgr.ceph03 config show
No such file or directory

Probably, users have to run

cephadm enter mgr.ceph03

to access the admin socket.

History

#1 Updated by Nathan Cutler 8 days ago

I got it to work like this:

node1:~ # cephadm enter --fsid 1c45b7be-bbad-11ea-9ed1-525400092435 --name osd.0
[ceph: root@node1 /]# ceph daemon osd.0 help

I do have to be on the same node where the osd.0 container is running.

I noticed that "cephadm shell" infers the FSID (I only have one cluster running on this set of machines, so it's not difficult to infer) - maybe "cephadm enter" could do the same?

Also available in: Atom PDF