Ceph gatherkeys KeyNotFoundError: Could not find keyring file: /etc/ceph/ceph.client.admin.keyring on host node1

Ceph gatherkeys KeyNotFoundError: Could not find keyring file: /etc/ceph/ceph.client.admin.keyring on host node1

我刚开始学习Ceph,很快就报错了。我花了大约 4 天的时间来解决这个问题,但不幸的是没有成功。
我阅读了有关 quick ceph deploy 的官方文档,但在第 5 点总是出现相同的错误。
当我在 ceph.conf:

中设置 public_network 时,这不起作用
ceph-deploy mon create-initial

因为 ceph-deploy gatherkeys 不起作用。

它总是向我显示相同的错误(我在 Debian 8.2 和 CentOS 7 上试过):

[ceph_deploy.gatherkeys] [WARNIN] Unable to find /etc/ceph/ceph.client.admin.keyring on node1 [ceph_deploy] [ERROR ] KeyNotFoundError: Could not find keyring file: /etc/ceph/ceph.client.admin.keyring on host node1

我在教程中有 4 个节点: 管理节点、节点 1、节点 2、节点 3
所有人都有没有密码的ssh连接。
我的步数:
1. ceph-deploy new node1 (OK)
2. cange ceph.conf 在我的集群文件夹中:
osd_pool_default_size = 2
public_network = 10.0.0.0/24
(好)
3. ceph-deploy 安装管理节点 node1 node2 node3(确定)
4. ceph-deploy mon create-initial(错误)

有人可以解释我做错了什么吗?

发生这种情况是因为在 ceph.conf 中您必须在 public 网络中设置 mon ip,而不是在私有网络中。我有 mon ip:192.168.57.1​​01(这是私有的)但是 public 网络是:10.0.2.0/24.