Project

General

Profile

Actions

Documentation #58449

open

Document cephadm set-priv-key command

Added by Kyle Bader over 1 year ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Low
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

I inadvertently ran, note the missing '-i' for the first command.

ceph config-key set mgr/cephadm/ssh_identity_key /root/.ssh/id_rsa
ceph config-key set mgr/cephadm/ssh_identity_pub -i /root/.ssh/id_rsa.pub

The result was an error when adding hosts

[ceph: root@kb-1 ~]# ceph orch host add kb-2
Error EINVAL: Failed to connect to kb-2 (kb-2): KeyImportError('Invalid private key',)
Log:
[ceph: root@kb-1 ~]#

It might be helpful to see if the key looks like something that is a path, or perhaps use the private key to sign something and attempt to validate it with the public key, if it fails, then print a warning about the keys not matching as a health warning.

Actions

Also available in: Atom PDF