rainbond icon indicating copy to clipboard operation
rainbond copied to clipboard

通过主机添加集群不支持ubuntu22.04系统

Open dongasai opened this issue 3 years ago • 1 comments

报错如下

time="2022-09-16T12:58:06+08:00" level=info msg="Initiating Kubernetes cluster"
time="2022-09-16T12:58:06+08:00" level=info msg="[dialer] Setup tunnel for host [192.168.2.71]"
time="2022-09-16T12:58:06+08:00" level=warning msg="Failed to set up SSH tunneling for host [192.168.2.71]: Can't retrieve Docker Info: error during connect: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info\": Unable to access node with address [192.168.2.71:22] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"
time="2022-09-16T12:58:06+08:00" level=warning msg="Removing host [192.168.2.71] from node lists"
time="2022-09-16T12:58:06+08:00" level=warning msg="[state] can't fetch legacy cluster state from Kubernetes: Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [192.168.2.71]"
time="2022-09-16T12:58:09+08:00" level=info msg="Successfully Deployed state file at [/app/data/cloudadaptor/enterprise/e8f5256b0ea68f7864d5c909bfe9098f/rke/k8sr1/cluster.rkestate]"
time="2022-09-16T12:58:09+08:00" level=info msg="Building Kubernetes cluster"

``

dongasai avatar Sep 16 '22 05:09 dongasai

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Adding a cluster through a host does not support the ubuntu22.04 system

Issues-translate-bot avatar Sep 16 '22 05:09 Issues-translate-bot

用20吧,之前用22各种问题

FaithLikeJob avatar Oct 21 '22 03:10 FaithLikeJob

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Use 20, before using 22 for various questions

Issues-translate-bot avatar Oct 21 '22 03:10 Issues-translate-bot

已支持 ubuntu 22

zzzhangqi avatar Jan 31 '23 08:01 zzzhangqi

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Ubuntu 22 is supported

Issues-translate-bot avatar Jan 31 '23 08:01 Issues-translate-bot

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please tell me which version starts to support Ubuntu 22

Issues-translate-bot avatar Feb 07 '23 05:02 Issues-translate-bot

Please tell me which version starts to support Ubuntu 22

qweqe417 avatar Feb 07 '23 05:02 qweqe417

Version 5.10

yangkaa avatar Feb 07 '23 10:02 yangkaa

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It's the same when I use 5.11, but it still doesn't work when deploying a cluster, and the port can also be connected to external ssh

Issues-translate-bot avatar Feb 07 '23 10:02 Issues-translate-bot

It's the same when I use 5.11, but it still doesn't work when deploying a cluster, and the port can also be connected to external ssh

qweqe417 avatar Feb 07 '23 10:02 qweqe417

对于 Docker 高版本,可能执行完脚本后需要重启 docker。

如果你在执行脚本时没有出现任何报错或提醒,那麻烦贴出创建集群失败的日志

yangkaa avatar Feb 07 '23 10:02 yangkaa

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


For higher versions of Docker, you may need to restart docker after executing the script.

If there is no error or reminder when you execute the script, please post the log of the failure to create the cluster

Issues-translate-bot avatar Feb 07 '23 10:02 Issues-translate-bot

time="2023-02-07T18:45:40+08:00" level=info msg="Initiating Kubernetes cluster" time="2023-02-07T18:45:40+08:00" level=info msg="[dialer] Setup tunnel for host [10.0.16.69]" time="2023-02-07T18:45:40+08:00" level=warning msg="Failed to set up SSH tunneling for host [10.0.16.69]: Can't retrieve Docker Info: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": Unable to access node with address [10.0.16.69:2046] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain" time="2023-02-07T18:45:40+08:00" level=warning msg="Removing host [10.0.16.69] from node lists" time="2023-02-07T18:45:40+08:00" level=warning msg="[state] can't fetch legacy cluster state from Kubernetes: Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.0.16.69]" time="2023-02-07T18:45:42+08:00" level=info msg="Successfully Deployed state file at [/app/data/cloudadaptor/enterprise/2591d1b8fba7c6a7948a8cafcfbfcc93/rke/test/cluster.rkestate]" time="2023-02-07T18:45:42+08:00" level=info msg="Building Kubernetes cluster"

qweqe417 avatar Feb 07 '23 10:02 qweqe417

这看起来是免密登录配置失败,你可以尝试在 allinone 容器中执行 ssh [email protected],看是否能进行免密登录。如果不行,可以从免密配置上来考虑。可以尝试自己手动配置实现使用 docker 用户免密登录到服务器上。

有一个同样问题的 issues 可以参考下:https://github.com/goodrain/rainbond/issues/1530

yangkaa avatar Feb 08 '23 08:02 yangkaa

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It seems that the password-free login configuration failed. You can try to execute ssh [email protected] in the allinone container to see if you can perform password-free login. If not, you can consider it from the password-free configuration. You can try to manually configure it yourself to use the docker user to log in to the server without password.

There is an issue with the same problem, you can refer to: https://github.com/goodrain/rainbond/issues/1530

Issues-translate-bot avatar Feb 08 '23 08:02 Issues-translate-bot