【问题标题】:IBM Cloud Private 2.1.0.2 Install Fails - Hostname should be resolved to valid IP addressIBM Cloud Private 2.1.0.2 安装失败 - 主机名应解析为有效的 IP 地址
【发布时间】:2018-06-17 18:03:35
【问题描述】:

我正在尝试在我的 Ubuntu 16.04 主节点 (VM) 上安装 ICP 2.1.0.2,但安装程序在同一台计算机上的 2 个工作节点(2 个其他 VM)的“验证主机名可解析”上失败。

我已经设置了对我所有虚拟机的 ssh 访问权限,并且我可以很好地 ping 每一台机器。我的 /etc/hosts 文件是:

127.0.0.1   localhost
192.168.142.10  icp-master icp-master
192.168.142.11  icp-worker1 icp-worker1
192.168.142.12  icp-worker2 icp-worker2

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

我的集群/主机文件是:

[master]
192.168.142.10

[worker]
192.168.142.11
192.168.142.12

[proxy]
192.168.142.10

我的每个工作节点都有正确定义的主机文件,这些文件与其主机名一致。在安装中添加 -vvv(详细)选项不会提供任何额外的说明。

【问题讨论】:

    标签: ibm-cloud-private


    【解决方案1】:

    @rhuet 你附加的 /etc/hosts 文件的内容应该是 192.168.142.10 上的那个,对吧?另请检查 192.168.142.11 和 192.168.142.12 上的 /etc/hosts 文件。或者你可以通过scp命令将192.168.142.10上的/etc/hosts文件复制到其他节点。

    请确保主机名可以解析为 IP 地址(例如:192.168.142.x),而不是 127.xx.yy.zz,谢谢。

    【讨论】:

    • 这就是问题所在。我的工作节点上的 /etc/hosts 文件没有自己的条目。现在我已经将 /etc/hosts 文件从 icp-master 复制到了我的工作人员,安装现在可以工作了。感谢您的帮助!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-12
    • 2013-03-25
    • 2014-10-13
    • 2013-01-29
    • 2011-05-07
    • 2019-09-29
    • 1970-01-01
    相关资源
    最近更新 更多