安装IBM私有云ce期间无法解析主机名 [英] hostname cannot resolved during installation of IBM private cloud ce

查看:100
本文介绍了安装IBM私有云ce期间无法解析主机名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照指南

I installed IBM-Cloud-private-ce by following the guide https://www.ibm.com/support/knowledgecenter/SSBS6K_1.2.0/installing/install_containers_CE.html But after I ran docker run -e LICENSE=accept --net=host -t -v "$(pwd)":/installer/cluster ibmcom/cfc-installer:1.2.0 install, I got the following error messages

task path: /installer/playbook/roles/check/tasks/main.yaml:78
fatal: [a.b.c.d] => Hostname should be resolved to a valid IP address
fatal: [a.b.c.e] => Hostname should be resolved to a valid IP address

出于保密目的,我将IP地址设为[a.b.c.d].实际上,它们是这里的数字.这些IP地址是可访问的. 通过检查ansible文件,我注意到以下代码

I put the ip address as [a.b.c.d] just for confidential. Actually they are numbers here. These IP address are reachable. By checking the ansible file, I noticed the following code

- name: Checking Hostname is resolvable
  shell: ping -c 1 $(hostname) | awk -F'[()]' '{print $2;exit}'
  args:
    executable: /bin/bash
  register: ip_out

- name: Validating Hostname is resolvable
  fail: msg="Hostname should be resolved to a valid IP address"
  when: ip_out.stdout in ['', '127.0.0.1', '127.0.1.1']

我发现我无法ping到容器中,因为图像没有ping到其中. 这是我收到消息的原因吗?我很感谢任何人都可以提供帮助.

I found I cannot ping in the container as the image hasn't ping in it. Is this the reason why I got the message? I appreciate if anyone could help on it.

更新了问题.谢谢@SBERENS

Updated the question. Thanks @SBERENS

我尝试使用2.1.0版本,并遇到了相同的问题:(出于机密原因,我使用a.b.c.d作为IP地址,实际上该IP地址可以访问)

I tried on the 2.1.0 version and met the same issue: (for confidential reason, I used a.b.c.d as the IP address, actually the IP address are reachable)

我的/etc/hosts如下:

My /etc/hosts is like the following:

127.0.0.1       localhost
127.0.1.1       e1.xx.yy.com e1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#puppet:
a.b.c.a puppet.xx.yy.com puppet

a.b.c.d     e1.xx.yy.com e1
a.b.c.e e2.xx.yy.com e2

集群/主机类似于:

[master]
a.b.c.d

[worker]
a.b.c.e

[proxy]
a.b.c.e
#[management]
#4.4.4.4

推荐答案

您的问题将在1.2或2.1中发生.

Your issue will occur in either 1.2 or 2.1.

错误是主机名e1.xx.yy.com解析为a.b.c.d127.0.1.1.发生这种情况时,安装程​​序将解析的IP强制为可在外部路由的IP.

The error is that the hostname e1.xx.yy.com resolves to a.b.c.d and 127.0.1.1. When this happens, the installer is enforcing the resolved IP to be something which is externally routable.

除了单独的网络IP之外,为什么还要在本地地址上定义计算机主机名?

Is there a reason why you have the machine hostname defined on the local address in addition to a separate network IP?

这篇关于安装IBM私有云ce期间无法解析主机名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆