Project

General

Profile

Actions

Documentation #23969

closed

ceph config commands don't work as documented

Added by Niklas Hambuechen almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

Using ceph Luminous.

On http://docs.ceph.com/docs/master/rados/configuration/ceph-conf/ it says

ceph config show <who> will show the reported running configuration for a running daemon.

But when I run that, ceph says that's not a valid command:

# ceph config show mds
no valid command found; 10 closest matches:
config set <key> <value>
config set <key> <value>
Error EINVAL: invalid command

And `ceph config --help` doesn't list `show` as a subcommand.

Similarly, on http://docs.ceph.com/docs/master/mgr/dashboard/#configuration it says you can use

$ ceph config set mgr mgr/dashboard/server_addr $IP
$ ceph config set mgr mgr/dashboard/server_port $PORT

But if I run that, I get:

# ceph config set mgr 'mgr/dashboard/server_addr' '127.0.0.1'
Invalid command:  unused arguments: [u'127.0.0.1']
config set <key> <value> :  Set a configuration option at runtime (not persistent)
Error EINVAL: invalid command

According to `ceph config set --help`, that command takes no `<who>` argument:

 Monitor commands: 
 =================
config set <key> <value>                                                             Set a configuration option at runtime (not persistent)
config set <key> <value>                                                             Set a configuration option at runtime (not persistent)

Trying to drop the `mgr` argument I get:

# ceph config set 'mgr/dashboard/server_addr' '127.0.0.1'
Configuration option not found: 'mgr/dashboard/server_addr'
Actions #1

Updated by Niklas Hambuechen almost 6 years ago

From the example at http://docs.ceph.com/docs/master/dev/config-key/ I guessed that probably this is the correct way to do that:

ceph config-key set mgr/dashboard/server_addr '127.0.0.1'
<pre>

So using `ceph config-key` instead of `ceph config`.
Actions #2

Updated by Volker Theile almost 6 years ago

If you are using v12.2.4 then you need to use the documentation for Luminous at http://docs.ceph.com/docs/luminous/. Your always refering to the (master) documentation which is v13.0 (Mimic). The config set commands have been introduced in this version.

Actions #3

Updated by Niklas Hambuechen almost 6 years ago

Oops, my bad, thanks for pointing it out.

As and aside, Luminous documentation's table of contents doesn't seem to be working for me:

http://docs.ceph.com/docs/master/ shows the table of contents on the left, but in http://docs.ceph.com/docs/luminous/ the table of contents is empty, containing only "Index".

How can I close the issue?

Actions #4

Updated by John Spray almost 6 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF