Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to create a cluster using sealer for cross-account virtual machines in the same region #1643

Closed
chirsxjh opened this issue Aug 16, 2022 · 2 comments
Labels
kind/bug Something isn't working

Comments

@chirsxjh
Copy link

What happen?

您好!前提条件:我使用 阿里云 云企业网 将同地域的两个不同账号的VPC网络打通,并在这两个互通的VPC底下分别创建了两台虚拟机,经验证,两台虚拟机能够Ping通,22端口也能正常访问,然后使用sealer将这两台虚拟机构建成一个集群。
image
虚拟机1:
image
虚拟机2:
image
内网是通的:
image
22端口也是通的
image
转发路由信息:
image

Relevant log output?

[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "iz7xv0nl5c04zbirywstk7z" could not be reached
[WARNING Hostname]: hostname "iz7xv0nl5c04zbirywstk7z": lookup iz7xv0nl5c04zbirywstk7z on 100.100.2.138:53: no such host

What you expected to happen?

跨账号同地域的虚拟机创建集群能够成功

How to reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

使用的selaer命令为:sealer run kubernetes:v1.21.10 --masters 172.16.0.132 --nodes 172.29.1.149 --passwd xxxxx'
image
其中selaer日志中的 hostname "iz7xv0nl5c04zbirywstk7z" 对应主机Ip是 172.29.1.149

What is the version of Sealer you using?

{"gitVersion":"v0.8.5","gitCommit":"f9c3d99","buildDate":"2022-04-28 14:16:58","goVersion":"go1.16.15","compiler":"gc","platform":"linux/amd64"}

What is your OS environment?

NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

What is the Kernel version?

Linux iZ7xvbgihlnq66o17j3whyZ 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Other environment you want to tell us?

  • Cloud provider or hardware configuration:
  • Install tools:
  • Others:
@chirsxjh chirsxjh added the kind/bug Something isn't working label Aug 16, 2022
@kakaZhou719
Copy link
Member

@chirsxjh ,I think the problem should be initializing kubelet service , it use hostname to kookup the node, and the sealer cannot control the logic here.

@chirsxjh
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants