QingCloudAppcenter / QKE

KubeSphere is an open source container application platform by QingCloud based on Kubernetes.
https://www.qingcloud.com/products/kubesphereqke/
29 stars 15 forks source link

检测 ks 安装 fail #216

Open MrYourM opened 4 years ago

MrYourM commented 4 years ago

https://github.com/QingCloudAppcenter/QKE/blob/master/ansible/roles/app-role-client/files/opt/app/current/bin/node/client.sh#L72 该位置在 ks 安装完毕时,最终报错

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://172.22.4.12:30880
Account: admin
Password: P@88w0rd

NOTES<EF><BC><9A>
  1. After logging into the console, please check the
     monitoring status of service components in
     the "Cluster Management". If any service is not
     ready, please wait patiently until all components 
     are ready.
  2. Please modify the default password after login.

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
+ return 132
+ retCode=132
+ [[ ,130,132, == *\,\1\3\2\,* ]]
+ log ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ '[' ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...' == --debug ']'
+ logger -S 5000 -t appctl --id=5907 -- '[cmd=upgrade args='\'''\''] '\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ return 132
hlwanghl commented 4 years ago

日志再往上截一些,看看报的什么错。

MrYourM commented 4 years ago

上面没什么 ks 的异常报错,ks 已经升级完成了,手动执行 appctl checkKsInstallerDone;echo $? ,也是返回 132

hlwanghl commented 4 years ago
#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

这个上面的部分

MrYourM commented 4 years ago
#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
+ grep -oF 'Welcome to KubeSphere!'
+ echo 'localhost                  : ok=12   changed=11   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   ^M

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://172.22.4.12:30880
Account: admin
Password: P@88w0rd

NOTES?~Z
  1. After logging into the console, please check the
     monitoring status of service components in
     the "Cluster Management". If any service is not
     ready, please wait patiently until all components
     are ready.
  2. Please modify the default password after login.

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
Welcome to KubeSphere!
+ grep -oF 'total: 1     completed:1'
+ echo 'localhost                  : ok=12   changed=11   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   ^M

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://172.22.4.12:30880
Account: admin
Password: P@88w0rd

NOTES?~Z
  1. After logging into the console, please check the
     monitoring status of service components in
     the "Cluster Management". If any service is not
     ready, please wait patiently until all components
     are ready.
  2. Please modify the default password after login.

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
+ return 132
+ retCode=132
+ [[ ,130,132, == *\,\1\3\2\,* ]]
+ log ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ '[' ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...' == --debug ']'
+ logger -S 5000 -t appctl --id=5907 -- '[cmd=upgrade args='\'''\''] '\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ return 132
hlwanghl commented 4 years ago

多截一些,50 行左右

hlwanghl commented 4 years ago
+ grep -oF 'total: 1     completed:1'

这个不是最新代码,最新的是从 2 起步了,这里还是 1

hlwanghl commented 4 years ago

https://github.com/QingCloudAppcenter/QKE/pull/215/files#diff-e80d39dfa0eb89bf335136f493377fbdR19

MrYourM commented 4 years ago

好的,提交之后 merge 一下吧,现在使用的是 master 的代码

hlwanghl commented 4 years ago

你先看下 PR

hlwanghl commented 4 years ago

没问题的话可以加上 label 让他自动 merge