启动osd出现错误
root@AI-03:/home/work/ceph-cluster# docker-compose -f docker-compose-ceph-prod.yml logs osd1
Attaching to ceph-cluster_osd1_1
osd1_1 | 2021-12-02 14:23:29 /opt/ceph-container/bin/entrypoint.sh: static: does not generate config
osd1_1 | 2021-12-02 14:23:29 /opt/ceph-container/bin/entrypoint.sh: Creating osd
osd1_1 | 2021-12-02T14:23:29.733+0800 7fc36beb6700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
osd1_1 | 2021-12-02T14:23:29.733+0800 7fc36beb6700 -1 AuthRegistry(0x7fc36405b458) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
osd1_1 | 2021-12-02T14:23:29.733+0800 7fc36beb6700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
osd1_1 | 2021-12-02T14:23:29.733+0800 7fc36beb6700 -1 AuthRegistry(0x7fc36405fbe0) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
osd1_1 | 2021-12-02T14:23:29.733+0800 7fc36beb6700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
osd1_1 | 2021-12-02T14:23:29.733+0800 7fc36beb6700 -1 AuthRegistry(0x7fc36beb4ea0) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
osd1_1 | 2021-12-02T14:23:29.737+0800 7fc369c52700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
osd1_1 | 2021-12-02T14:23:29.737+0800 7fc36beb6700 -1 monclient: authenticate NOTE: no keyring found; disabled cephx authentication
osd1_1 | [errno 95] error connecting to the cluster
osd1_1 | 2021-12-02 14:24:17 /opt/ceph-container/bin/entrypoint.sh: static: does not generate config
osd1_1 | 2021-12-02 14:24:17 /opt/ceph-container/bin/entrypoint.sh: Creating osd
osd1_1 | 2021-12-02T14:24:17.169+0800 7f145dc11700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
osd1_1 | 2021-12-02T14:24:17.169+0800 7f145dc11700 -1 AuthRegistry(0x7f145805b458) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
osd1_1 | 2021-12-02T14:24:17.169+0800 7f145dc11700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
osd1_1 | 2021-12-02T14:24:17.169+0800 7f145dc11700 -1 AuthRegistry(0x7f145805fbe0) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
osd1_1 | 2021-12-02T14:24:17.169+0800 7f145dc11700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
osd1_1 | 2021-12-02T14:24:17.169+0800 7f145dc11700 -1 AuthRegistry(0x7f145dc0fea0) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
osd1_1 | 2021-12-02T14:24:23.777+0800 7f14577fe700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
osd1_1 | 2021-12-02T14:24:23.777+0800 7f145dc11700 -1 monclient: authenticate NOTE: no keyring found; disabled cephx authentication
osd1_1 | [errno 95] error connecting to the cluster
错误解决参考
有效解决错误参考
直接解决方案: 在创建mon后记得先生成osd key, 在启动创建osd
官方权威手动部署(重要)
间接解决方式
github另个参-在run 时候创建key(采用build方式提前执行命令生成key)
手动安装 Ceph(汇总了所有key生成命令,也可以直接看官网文档)
ceph-deploy部署方式
多节点同时创建osd踩坑纪要(原因解析)
使用ceph-deploy工具部署时出现错误:Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring(一般)
ceph手动搭建简略(一般)