我正在尝试在 VM 上安装 IBM Cloud Private。我已经创建了主节点、代理节点和工作节点,并且正处于安装 ICP 的最后阶段。但是,我的主机名有问题。错误如下所示:
错误如下:
TASK [check : Validating Hostname is resolvable]
*******************************************************************
skipping: [172.16.22.190]
fatal: [172.16.22.82] => Hostname should be resolved to a valid IP address
fatal: [172.16.22.81] => Hostname should be resolved to a valid IP address
NO MORE HOSTS LEFT
********************************************************************************
NO MORE HOSTS LEFT
********************************************************************************
PLAY RECAP
********************************************************************************
172.16.22.190 : ok=4 changed=3 unreachable=0 failed=0
172.16.22.81 : ok=4 changed=3 unreachable=0 failed=1
172.16.22.82 : ok=4 changed=3 unreachable=0 failed=1
Playbook run took 0 days, 0 hours, 0 minutes, 4 seconds
我的 /etc/hosts 文件:
172.16.22.190 icp
172.16.22.81 proxy
172.16.22.82 worker
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
我的集群主机文件:
[master]
172.16.22.190
[worker]
172.16.22.82
[proxy]
172.16.22.81
#[management]
#4.4.4.4
所有节点都能看到并相互ping通,我正在使用Ubuntu。