rke部署时报错'panic: runtime error:’

使用版本centos7,内核版本:3.10.0-327.13.1.el7.x86_64 使用rke 版本:v0.0.8 使用配置文件如下: # cat cluster.yml |grep -v '#' --- auth:   strategy: x509   options:     foo: bar network:   plugin: flannel   options:     flannel_image: quay.io/coreos/flannel:v0.9.1     flannel_cni_image: quay.io/coreos/flannel-cni:v0.2.0 ssh_key_path: ~/.ssh/id_rsa enforce_docker_version: false nodes:   - address: 10.112.43.131     user: root     role:     ssh_key_path: /home/user/.ssh/id_rsa   - address: 10.112.43.132     user: root     role: services:   etcd:     image: quay.io/coreos/etcd:latest   kube-api:     image: rancher/k8s:v1.8.3-rancher2     service_cluster_ip_range: 10.233.0.0/18     pod_security_policy: false     extra_args:       v: 4   kube-controller:     image: rancher/k8s:v1.8.3-rancher2     cluster_cidr: 10.233.64.0/18     service_cluster_ip_range: 10.233.0.0/18   scheduler:     image: rancher/k8s:v1.8.3-rancher2   kubelet:     image: rancher/k8s:v1.8.3-rancher2     cluster_domain: cluster.local     cluster_dns_server: 10.233.0.3     infra_container_image: gcr.io/google_containers/pause-amd64:3.0   kubeproxy:     image: rancher/k8s:v1.8.3-rancher2 system_images:   alpine: alpine:latest   nginx_proxy: rancher/rke-nginx-proxy:v0.1.0   cert_downloader: rancher/rke-cert-deployer:v0.1.1   service_sidekick_image: rancher/rke-service-sidekick:v0.1.0   kubedns_image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5   dnsmasq_image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5   kubedns_sidecar_image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.5   kubedns_autoscaler_image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0 addons: |-     ---     apiVersion: v1     kind: Pod     metadata:       name: my-nginx       namespace: default     spec:       containers:       - name: my-nginx         image: nginx         ports:         - containerPort: 80 已关闭swap,同时也已设置rsa验证,启动时报错: 详细信息如下: # ./rke up --config ./cluster.yml  INFO Building Kubernetes cluster                   INFO Setup tunnel for host   panic: runtime error: invalid memory address or nil pointer dereference goroutine 5 : github.com/rancher/rke/vendor/golang.org/x/crypto/ssh.publicKeyCallback.auth(0xc4201e2140, 0xc4201ac680, 0x20, 0x20, 0xc4202a9f60, 0x4, 0x18688a0, 0xc420097a20, 0x1859f60, 0xc420085500, ...)     /go/src/github.com/rancher/rke/vendor/golang.org/x/crypto/ssh/client_auth.go:193 +0xb3 github.com/rancher/rke/vendor/golang.org/x/crypto/ssh.(*connection).clientAuthenticate(0xc420471800, 0xc42009e3c0, 0x0, 0xa)     /go/src/github.com/rancher/rke/vendor/golang.org/x/crypto/ssh/client_auth.go:36 +0x369 github.com/rancher/rke/vendor/golang.org/x/crypto/ssh.(*connection).clientHandshake(0xc420471800, 0xc420287590, 0x10, 0xc42009e3c0, 0x0, 0x0)     /go/src/github.com/rancher/rke/vendor/golang.org/x/crypto/ssh/client.go:112 +0x2e6 github.com/rancher/rke/vendor/golang.org/x/crypto/ssh.NewClientConn(0x18752c0, 0xc420078258, 0xc420287590, 0x10, 0xc42009e300, 0x18752c0, 0xc420078258, 0x0, 0x0, 0x0, ...)     /go/src/github.com/rancher/rke/vendor/golang.org/x/crypto/ssh/client.go:82 +0xfa github.com/rancher/rke/vendor/golang.org/x/crypto/ssh.Dial(0x118400c, 0x3, 0xc420287590, 0x10, 0xc42009e300, 0x0, 0x0, 0x0)     /go/src/github.com/rancher/rke/vendor/golang.org/x/crypto/ssh/client.go:176 +0xb3 github.com/rancher/rke/hosts.(*dialer).Dial(0xc42014df60, 0x118400c, 0x3, 0xc4201e20c0, 0x17, 0x40fe5c, 0x18fab00, 0xc420594a58, 0x0)     /go/src/github.com/rancher/rke/hosts/dialer.go:39 +0x1b2 github.com/rancher/rke/hosts.(*dialer).Dial-fm(0x118400c, 0x3, 0xc4201e20c0, 0x17, 0xc420594a58, 0x18fab00, 0xc420594a60, 0x6dc70d)     /go/src/github.com/rancher/rke/hosts/dialer.go:66 +0x52 net/http.(*Transport).dial(0xc420366960, 0x1871860, 0xc420076410, 0x118400c, 0x3, 0xc4201e20c0, 0x17, 0x0, 0x0, 0x0, ...)     /usr/local/go/src/net/http/transport.go:852 +0x7b net/http.(*Transport).dialConn(0xc420366960, 0x1871860, 0xc420076410, 0x0, 0x11845fb, 0x4, 0xc4201e20c0, 0x17, 0x0, 0x0, ...)     /usr/local/go/src/net/http/transport.go:1008 +0x1c4c net/http.(*Transport).getConn.func4(0xc420366960, 0x1871860, 0xc420076410, 0xc42046b530, 0xc4202f12c0)     /usr/local/go/src/net/http/transport.go:908 +0x78 created by net/http.(*Transport).getConn     /usr/local/go/src/net/http/transport.go:910 +0x3a3 希望各位能帮忙排下错
已邀请:

niusmallnan

赞同来自: liuc204

关注ssh_key_path配置,是否路径不存在

要回复问题请先登录注册