Project

General

Profile

Actions

Bug #23970

closed

Cannot configure dashboard host/port before ceph is started

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

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Related to #23968 and #23969:

It seems that the host of the ceph dashboard is configured via ceph's built-in key-value store `ceph config-key`, like:

ceph config-key set mgr/dashboard/server_addr '127.0.0.1'

I do not wish my ceph dashboard to be open on the internet, so I set the host as above.

But it seems I cannot declaratively set this config opion; as opposed to most other ceph configuration options which I can set declaratively in `ceph.conf`, for some reason unknown to me, the above option can only be configure using the key-value store (and changing that value requires me to run that command and then restart ceph-mgr.

I would like to set that option even before ceph starts for the first time, so that at no point in time my dashboard is exposed to the Internet.

How can set ceph config-key values already ahead of ceph starting?
Is there a configuration file into which I can write values with which the key-value store will be initialised?

Also, it would be nice if somebody could explain the design concepts for the choice of whether a given configuration option is to be set in a file like ceph.conf, or in in ceph's key-value store; to me as a user it seems quite arbitrary and surprising to find this option inconfigurable in ceph.conf.

Thanks!

Actions

Also available in: Atom PDF