Hi,
I just tired that in my test cluster, removed the ceph.conf and admin
keyring from /etc/ceph and then added the _admin label to the host via
'ceph orch' and both were created immediately.
# no label for quincy-2
quincy-1:~ # ceph orch host ls
HOST ADDR LABELS STATUS
quincy-1 172.17.2.252 _admin
quincy-2 172.17.2.13
2 hosts in cluster
# moved existing files
quincy-2:~ # mv /etc/ceph/ceph.client.admin.keyring
/etc/ceph/xxxadminxxx.keyring
quincy-2:~ # mv /etc/ceph/ceph.conf /etc/ceph/conf
# added label
quincy-1:~ # ceph orch host label add quincy-2 _admin
Added label _admin to host quincy-2
# mgr deploys files
Jan 18 14:05:52 quincy-2 ceph-mgr[3880499]: log_channel(cephadm) log
[INF] : Added label _admin to host quincy-2
Jan 18 14:05:52 quincy-2 ceph-mgr[3880499]: log_channel(cephadm) log
[INF] : Updating quincy-2:/etc/ceph/ceph.conf
Jan 18 14:05:53 quincy-2 ceph-mgr[3880499]: log_channel(cephadm) log
[INF] : Updating
quincy-2:/var/lib/ceph/1e6e5cb6-73e8-11ee-b195-fa163ee43e22/config/ceph.conf
Jan 18 14:05:54 quincy-2 ceph-mgr[3880499]: log_channel(cephadm) log
[INF] : Updating quincy-2:/etc/ceph/ceph.client.admin.keyring
Jan 18 14:05:54 quincy-2 ceph-mgr[3880499]: log_channel(cephadm) log
[INF] : Updating
quincy-2:/var/lib/ceph/1e6e5cb6-73e8-11ee-b195-fa163ee43e22/config/ceph.client.admin.keyring
quincy-2:~ # ll /etc/ceph/
insgesamt 24
-rw------- 1 root root 151 18. Jan 14:05 ceph.client.admin.keyring
-rw-r--r-- 1 root root 175 18. Jan 14:05 ceph.conf
-rw-r--r-- 1 root root 595 26. Okt 13:17 ceph.pub
-rw-r--r-- 1 root root 175 26. Okt 13:17 conf
-rw-r--r-- 1 root root 92 7. Aug 14:32 rbdmap
-rw------- 1 root root 151 26. Okt 13:17 xxxadminxxx.keyring
This is on 17.2.7:
quincy-2:~ # ceph versions
{
...
"overall": {
"ceph version 17.2.7
(b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)": 10
}
}
Zitat von Robert Sander <r.sander@xxxxxxxxxxxxxxxxxxx>:
Hi,
According to the documentation¹ the special host label _admin
instructs the cephadm orchestrator to place a valid ceph.conf and
the ceph.client.admin.keyring into /etc/ceph of the host.
I noticed that (at least) on 17.2.7 only the keyring file is placed
in /etc/ceph, but not ceph.conf.
Both files are placed into the /var/lib/ceph/<fsid>/config directory.
Has something changed?
¹:
https://docs.ceph.com/en/quincy/cephadm/host-management/#special-host-labels
Regards
--
Robert Sander
Heinlein Consulting GmbH
Schwedter Str. 8/9b, 10119 Berlin
https://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Amtsgericht Berlin-Charlottenburg - HRB 220009 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx