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

TASK [primary-master-node : Use ocadm init first master node] #14674

Closed
whileW opened this issue Jul 19, 2022 · 1 comment
Closed

TASK [primary-master-node : Use ocadm init first master node] #14674

whileW opened this issue Jul 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@whileW
Copy link

whileW commented Jul 19, 2022

What happened:
TASK [primary-master-node/setup_k8s : Use ocadm init first master node] *********************************************************************************************************************
fatal: [106.14.2.245]: FAILED! => {"changed": true, "cmd": ["/opt/yunion/bin/ocadm", "init", "--control-plane-endpoint", "106.14.2.245:6443", "--mysql-host", "106.14.2.245", "--mysql-user", "root", "--mysql-password", "mwAc4aBtrr3d", "--mysql-port", "3306", "--image-repository", "registry.cn-beijing.aliyuncs.com/yunionio", "--apiserver-advertise-address", "106.14.2.245", "--node-ip", "106.14.2.245", "--onecloud-version", "v3.8.11", "--operator-version", "v3.8.11", "--pod-network-cidr", "10.40.0.0/16", "--service-cidr", "10.96.0.0/12", "--service-dns-domain", "cluster.local", "--addon-calico-ip-autodetection-method", "can-reach=106.14.2.245", "--enable-host-agent"], "delta": "0:00:00.048851", "end": "2022-07-19 15:28:56.077924", "msg": "non-zero return code", "rc": 1, "start": "2022-07-19 15:28:56.029073", "stderr": "Failed to choose address 106.14.2.245: Not found interface by address 106.14.2.245", "stderr_lines": ["Failed to choose address 106.14.2.245: Not found interface by address 106.14.2.245"], "stdout": "", "stdout_lines": []}
Environment:
阿里云镜像id:centos_7_9_x64_20G_alibase_20220629.vhd

@whileW whileW added the bug Something isn't working label Jul 19, 2022
@zexi
Copy link
Member

zexi commented Jul 20, 2022

"Failed to choose address 106.14.2.245: Not found interface by address 106.14.2.245"

应该是这个原因导致的,阿里云虚拟机的 eip 在操作系统里面是看不到的,这种情况可以直接登录到虚拟机里面,然后使用内部 ip 部署

@zexi zexi closed this as completed Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants