一键部署一直 waiting slaver running


#1
  • Choerodon平台版本: 0.11.0

  • 遇到问题的执行步骤:

一键部署后,一直打印

2018/11/27 18:05:17 [INFO] waiting slaver running…
2018/11/27 18:05:23 [INFO] waiting slaver running…
2018/11/27 18:05:29 [INFO] waiting slaver running…
2018/11/27 18:05:35 [INFO] waiting slaver running…
2018/11/27 18:05:41 [INFO] waiting slaver running…
2018/11/27 18:05:47 [INFO] waiting slaver running…
2018/11/27 18:05:53 [INFO] waiting slaver running…
2018/11/27 18:05:59 [INFO] waiting slaver running…
2018/11/27 18:06:05 [INFO] waiting slaver running…
2018/11/27 18:06:11 [INFO] waiting slaver running…
2018/11/27 18:06:17 [INFO] waiting slaver running…
2018/11/27 18:06:23 [INFO] waiting slaver running…
2018/11/27 18:06:29 [INFO] waiting slaver running…
2018/11/27 18:06:35 [INFO] waiting slaver running…
2018/11/27 18:06:41 [INFO] waiting slaver running…
2018/11/27 18:06:47 [INFO] waiting slaver running…
2018/11/27 18:06:53 [INFO] waiting slaver running…
2018/11/27 18:06:59 [INFO] waiting slaver running…
2018/11/27 18:07:05 [INFO] waiting slaver running…
2018/11/27 18:07:11 [INFO] waiting slaver running…
2018/11/27 18:07:17 [INFO] waiting slaver running…
2018/11/27 18:07:23 [INFO] waiting slaver running…
2018/11/27 18:07:29 [INFO] waiting slaver running…
2018/11/27 18:07:35 [INFO] waiting slaver running…
2018/11/27 18:07:41 [INFO] waiting slaver running…
2018/11/27 18:07:47 [INFO] waiting slaver running…
2018/11/27 18:07:53 [INFO] waiting slaver running…
2018/11/27 18:07:59 [INFO] waiting slaver running…
2018/11/27 18:08:05 [INFO] waiting slaver running…
2018/11/27 18:08:11 [INFO] waiting slaver running…
2018/11/27 18:08:17 [INFO] waiting slaver running…
2018/11/27 18:08:23 [INFO] waiting slaver running…


#2

服务器是否连接到了网络?


#3

网络畅顺,安装其他步骤都没问题


#4

看下c7n-system 下有没有pendding的pod


#5

[root@node1 c7n-0.1.0]# kubectl get po -n c7n-system
NAME READY STATUS RESTARTS AGE
c7n-slaver-hpq2j 0/1 ContainerCreating 0 15h
dnsmasq-5f5777c999-rlbgs 1/1 Running 0 15h
[root@node1 c7n-0.1.0]# kubectl get po -n kube-system
NAME READY STATUS RESTARTS AGE
default-http-backend-6dd4d5b7c9-9scps 1/1 Running 0 15h
heapster-746d67c7b9-w27b2 1/1 Running 0 15h
kube-apiserver-node1 1/1 Running 0 15h
kube-controller-manager-node1 1/1 Running 0 15h
kube-dns-79d99555df-dpxht 3/3 Running 0 15h
kube-flannel-t296t 1/1 Running 0 15h
kube-lego-6f45757db7-d526z 1/1 Running 0 15h
kube-proxy-gm9g5 1/1 Running 0 15h
kube-scheduler-node1 1/1 Running 0 15h
kubernetes-dashboard-dc8fcdbc5-l52bw 1/1 Running 0 15h
nfs-provisioner-d68984794-ggsdt 1/1 Running 0 15h
nginx-ingress-controller-5d77d4945d-9lzcs 1/1 Running 0 15h
tiller-deploy-6bf79495c8-qnvxg 1/1 Running 0 15h
[root@node1 c7n-0.1.0]# ./c7n install -c config.yml --no-timeout --debug
2018/11/28 09:08:58 [INFO] getting resource /version.yml
2018/11/28 09:08:59 [INFO] getting resource /0.11/install.yml
2018/11/28 09:08:59 [INFO] namespace c7n-system already exists
2018/11/28 09:08:59 [DEBUG] ignore create pv because specify storage class and no other persistence config
2018/11/28 09:09:00 [INFO] waiting slaver running…
2018/11/28 09:09:06 [INFO] waiting slaver running…

pod一直在ContainerCreating


#6

你好,请执行下面语句,提供一下返回结果

kubectl describe ds c7n-slaver -n c7n-system

#7

执行后的结果
%E5%9B%BE%E7%89%87


choerodon 支持阿里云的k8s
#8

我将系统重装再试试好了


#9

请再执行下下面语句,提供一下返回结果

kubectl describe pvc -n c7n-system slaver


#10

执行结果
%E5%9B%BE%E7%89%87


#11

你好,请按下面命令执行

kubectl delete ns c7n-system


helm upgrade nfs-provisioner c7n/nfs-provisioner \
    --set image.repository=registry.cn-hangzhou.aliyuncs.com/choerodon-tools/nfs-provisioner \
    --set service.enabled=true \
    -f <(helm get values nfs-provisioner) \
    --version 0.1.0

#12

已经按命令执行,但是状态是ImagePullBackOff

%E5%9B%BE%E7%89%87


#13

镜像拉取失败,单独拉取后就可以了


#14

按命令执行后,结果如下
%E5%9B%BE%E7%89%87


#15

请问你遇到的是什么问题 执行这个命名是解决此楼主当时的问题


#16

我是全友这边的,弄一键部署平台遇到了点问题,弄了一天多了一直都是下面的错



希望帮忙看看呢


#17

请清空挂载出来的数据后重试,谢谢。


#18

挂载目录一键脚本中是配置的那个路径啊。


#19

刚才把pod里的相关路径都删了,重新安装还是一样的错,不知道是不是有漏删的。
terminationMessagePath: /dev/termination-log
mountPath: /var/lib/mysql
mountPath: /etc/mysql/conf.d/my.cnf
mountPath: /var/run/secrets/kubernetes.io/serviceaccount


#22

请参考这里