【问题标题】:ceph orch host add host issues (env: centos8, ceph:12.2.5)ceph orch host 添加主机问题 (env: centos8, ceph:12.2.5)
【发布时间】:2020-09-22 22:07:32
【问题描述】:

信息: 主机名: 猫 /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.16.49.41 ceph-gw-one 172.16.49.42 ceph-gw-2

shell: ceph orch 主机添加 172.16.49.42

错误 EINVAL: 新主机 172.16.49.42 (172.16.49.42) 检查失败: ['INFO:cephadm:podman|docker (/bin/docker) is present', 'INFO:cephadm:systemctl is present', 'INFO :cephadm:lvcreate is present', 'INFO:cephadm:Unit chronyd.service is enabled and running', 'INFO:cephadm:Hostname "172.16.49.42" 与预期相符。', 'ERROR: hostname "ceph-gw-两个”与预期的主机名“172.16.49.42”'']

不匹配

shell: orch 主机添加 ceph-gw-two

错误 EINVAL:无法连接到 ceph-gw-two (ceph-gw-two)。 检查主机是否可达并接受使用 cephadm SSH 密钥的连接

你可能想跑:

ceph cephadm get-ssh-config > ssh_config ceph config-key 获取管理员/cephadm/ssh_identity_key > 密钥 ssh -F ssh_config -i key root@ceph-gw-two

我已经通过ip或主机名检查了ssh登录是否成功;

【问题讨论】:

    标签: ceph centos8


    【解决方案1】:

    我看了adm源码脚本:

     out, err, code = self._run_cephadm(spec.hostname, cephadmNoImage, 'check-host',
                                           ['--expect-hostname', spec.hostname],
                                           addr=spec.addr,
                                           error_ok=True, no_fsid=True)
        if code:
            raise OrchestratorError('New host %s (%s) failed check: %s' % (
                spec.hostname, spec.addr, err))
    

    所以,我将 cmd 更改为:

    ceph orch 主机添加 ceph-gw-two 172.16.49.42;

    完成了,效果很好;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-04
      • 2020-09-21
      • 1970-01-01
      • 2021-02-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多