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

缺陷: 主机名重复会导致集群异常 #239

Closed
PatHoo opened this issue Mar 23, 2020 · 6 comments · Fixed by #240 or #244
Closed

缺陷: 主机名重复会导致集群异常 #239

PatHoo opened this issue Mar 23, 2020 · 6 comments · Fixed by #240 or #244

Comments

@PatHoo
Copy link
Contributor

PatHoo commented Mar 23, 2020

哪个命令或者组件
sealos init

描述这个缺陷
主机名重复会导致集群异常,状态为NotReady。

运行环境

  • Docker版本: eg. 19.03
  • Kubernetes版本 : eg.kube1.16.tar.gz
  • sealos版本: v3.1.0-alpha.2
  • 操作系统: eg. centos7
  • 运行模式: eg. 物理机 (内存 100g, cpu 10核 ,存储 10t), 虚拟机 ( virbox, 内存 10gb, cpu 2核 ,存储 100gb ) , 云 ( aws,内存 10gb, cpu 2核 ,存储 100gb )
  • 集群规模: eg 3master 3node
  • 附加说明: istio,dashboard ...
@cuisongliu cuisongliu linked a pull request Mar 23, 2020 that will close this issue
@fanux
Copy link
Member

fanux commented Mar 23, 2020

/pay 55

@fanux fanux reopened this Mar 23, 2020
@sealrobot
Copy link
Collaborator

完成这个issue中的任务,代码成功合并,fanux 老板就会支付你 55 元,
请在issue中回复:
/alipay [你的支付宝号] (如 /alipay 15281817171)
以让我知道您的支付宝

@sealrobot sealrobot added the paid label Mar 23, 2020
@labring labring deleted a comment from sealrobot Mar 24, 2020
@labring labring deleted a comment from sealrobot Mar 24, 2020
@labring labring deleted a comment from sealrobot Mar 24, 2020
@fanux
Copy link
Member

fanux commented Mar 24, 2020

/payto PatHoo 55

@sealrobot
Copy link
Collaborator

已经转账[55]元到支付宝账户[13926139093],注意查收

@cuisongliu
Copy link
Collaborator

dict := map[]
for _,ip:=range allhostsips {
     hostname := SSHConfig.CmdToString(ip,"hostname") //远程获取
     if v,ok = dict[hostname]; !ok {
        dict[hostname] = true // 不冲突,主机名加入字典
    } else {
       已经冲突,os.Exit
   }
}

@PatHoo
Copy link
Contributor Author

PatHoo commented Mar 24, 2020

已重新提交 #244

@cuisongliu cuisongliu linked a pull request Mar 24, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants