sách gpt4 ai đã đi

cephadm:无法将节点添加到 ceph 集群(错误 EINVAL:无法连接到主机)

In lại 作者:行者123 更新时间:2023-12-04 01:11:15 27 4
mua khóa gpt4 Nike

我按照 https://docs.ceph.com/en/latest/cephadm/install/ 的以下步骤在 Centos 8.1 上设置了一个 ceph 集群

curl --silent --remote-name --location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm
chmod +x cephadm
./cephadm add-repo --release octopus
./cephadm install
执行上述命令后,我发现 ceph 需要 docker 或 podman 才能运行。所以我从 https://docs.docker.com/engine/install/centos/ 安装了社区版的 docker 并继续下面的步骤。
./cephadm install
mkdir -p /etc/ceph
cephadm bootstrap --mon-ip *ip_of_the_current_machine (host1)*
cephadm install ceph-common
ssh-copy-id -f -i /etc/ceph/ceph.pub root@host2*
ceph orch host add host2
上面的命令失败并出现错误
[root@host1 home]# ceph orch host add host2
INFO:cephadm:Inferring fsid 12345678-2345-6789-1011-000129110013
INFO:cephadm:Inferring config /var/lib/ceph/12345678-2345-6789-1011-000129110013/mon.host1/config
INFO:cephadm:Using recent ceph image ceph/ceph:v15
Error EINVAL: Failed to connect to host2 (host2).
Check that the host is reachable and accepts connections using the cephadm SSH key

you may want to run:
> ceph cephadm get-ssh-config > ssh_config
> ceph config-key get mgr/cephadm/ssh_identity_key > key
> ssh -F ssh_config -i key root@host2
我可以使用上述步骤登录到 host2。
有人可以告诉我是否做错了什么。我该如何解决这个问题。

1 Câu trả lời

因此,经过几天的调试,我发现我想添加的节点上缺少 python3。我所要做的就是使用命令检查最后几个日志。

ceph log last cephadm
这给出了以下日志消息。
Theo dõi (cuộc gọi gần đây nhất là cuộc gọi cuối cùng):
File "/usr/share/ceph/mgr/cephadm/module.py", line 1036, in _remote_connection
raise execnet.gateway_bootstrap.HostNotFound(msg)
execnet.gateway_bootstrap.HostNotFound: Can't communicate with remote host `host2`, possibly because python3 is not installed there: cannot send (already closed?)

The above exception was the direct cause of the following exception:

Theo dõi (cuộc gọi gần đây nhất là cuộc gọi cuối cùng):
File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 295, in _finalize
next_result = self._on_complete(self._value)
File "/usr/share/ceph/mgr/cephadm/module.py", line 103, in
return CephadmCompletion(on_complete=lambda _: f(*args, **kwargs))
File "/usr/share/ceph/mgr/cephadm/module.py", line 1201, in add_host
return self._add_host(spec)
File "/usr/share/ceph/mgr/cephadm/module.py", line 1187, in _add_host
error_ok=True, no_fsid=True)
File "/usr/share/ceph/mgr/cephadm/module.py", line 1104, in _run_cephadm
with self._remote_connection(host, addr) as tpl:
File "/lib64/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/share/ceph/mgr/cephadm/module.py", line 1055, in _remote_connection
raise OrchestratorError(msg) from e
orchestrator._interface.OrchestratorError: Failed to connect to host2 (host2).
Check that the host is reachable and accepts connections using the cephadm SSH key
接下来添加我运行的节点。
ceph orch host add host2 ip_address

关于cephadm:无法将节点添加到 ceph 集群(错误 EINVAL:无法连接到主机),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64783203/

27 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com