Warning when importing dashboard key or cert
Using the documented commands to import a signed cert or key e.g.
ceph config-key set mgr mgr/dashboard/crt -i dashboard.crt
produces the following warning:
WARNING: it looks like you might be trying to set a ceph-mgr module configuration key. Since Ceph 13.0.0 (Mimic), mgr module configuration is done with `config set`, and new values set using `config-key set` will be ignored.
The configuration does actually work so the warning is wrong.
#1 Updated by Lenz Grimmer over 2 years ago
- Category changed from dashboard/general to ceph-mgr
- Assignee changed from Lenz Grimmer to John Spray
Thanks for reporting this, Stuart.
@John, this message originates from the Mgr directly. Any thoughts?
I'm fine with adding a note to the Dashboard documentation in Mimic to ignore this warning.
Thanks to #24651 this should no longer be an issue in Nautilus...
#2 Updated by Anonymous over 2 years ago
I've also noticed a mistake in the commands given on this page http://docs.ceph.com/docs/mimic/mgr/dashboard/#ssl-tls-support
$ ceph config-key set mgr mgr/dashboard/crt -i dashboard.crt
$ ceph config-key set mgr mgr/dashboard/key -i dashboard.key
They should be:
$ ceph config-key set mgr/dashboard/crt -i dashboard.crt
$ ceph config-key set mgr/dashboard/key -i dashboard.key
#3 Updated by John Spray over 2 years ago
Oops, yeah - this message was added before we realised that some code would still use "config-key set" for the -i option.
Like you say, this will not be an issue in nautilus, but it's pretty easy to fix it in Mimic to not issue this warning for the dashboard, so I'll open a PR to do that.
#8 Updated by Jared Hardy almost 2 years ago
I can confirm this issue is still true, with the exact same warning text given today (CentOS 7 RPM v14.2), and remains a problem with both the nautilus and master versions of the documentation still recommending the same config-key command.
#9 Updated by Ricardo Dias almost 2 years ago
The fix developed by John was only applied to the Mimic release, therefore in Nautilus we have again the same warning when "ceph config-key set ..." is used.
I will open a new ticket and respective PR to fix this by adding two new commands to the dashboard to upload the SSL certificate and key.