Project

General

Profile

Actions

Documentation #45564

closed

cephadm: document workaround for accessing the admin socket by entering running container

Added by Sebastian Wagner almost 4 years ago. Updated over 3 years ago.

Status:
Duplicate
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.


Related issues 1 (0 open1 closed)

Related to Orchestrator - Bug #48019: cephadm: `ceph daemon <daemon-name> ...` is brokenCan't reproduce

Actions
Actions #1

Updated by Nathan Cutler almost 4 years 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?

Actions #2

Updated by Sebastian Wagner almost 4 years ago

Nathan Cutler wrote:

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?

it does already! See

https://github.com/ceph/ceph/blob/c3af7f4fb7357be51d61cb154046587e550b8b29/src/cephadm/cephadm#L3080-L3081

Actions #3

Updated by Nathan Cutler over 3 years ago

  • Subject changed from cephadm: how to access the admin socket? to cephadm: how to access the admin socket from outside container?
Actions #4

Updated by Nathan Cutler over 3 years ago

  • Subject changed from cephadm: how to access the admin socket from outside container? to cephadm: not possible to access the admin socket from outside container
Actions #5

Updated by Nathan Cutler over 3 years ago

  • Subject changed from cephadm: not possible to access the admin socket from outside container to cephadm: document workaround for accessing the admin socket by entering running container
Actions #6

Updated by Nathan Cutler over 3 years ago

I just noticed this ticket is in the Documentation tracker. I opened a new ticket #48019 to track the actual bug (it should not be necessary to enter a container to access the admin socket, should it?)

Actions #7

Updated by Nathan Cutler over 3 years ago

  • Related to Bug #48019: cephadm: `ceph daemon <daemon-name> ...` is broken added
Actions #8

Updated by Sebastian Wagner over 3 years ago

I'd close this as duplicate now

Actions #9

Updated by Sebastian Wagner over 3 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF