Rancher Server 设置
- Rancher 版本:2.6.2
- 安装选项 (Docker install/Helm Chart): Docker install
- 在线或离线部署:在线
问题描述:
停掉2.6.2的docker容器后,通过 dockerinstall 的方式 安装2.5.12版本
重现步骤:
docker stop 2.6.2 直接运行 docker run rancher 2.5.12
结果:
无法正确启动2.5.12
预期结果:
可以安装2.5.12并,导入已导入过2.6.2的下游集群
截图:
docker logs
k3s.log
W0512 02:44:02.241806 54 pod_container_deletor.go:79] Container “8e7b69a32523b04b3b3bfece484a16e82f1f0cb1a840bc8a18a75c3cf0dd71c4” not found in pod’s containers
I0512 02:44:06.278568 54 resource_quota_monitor.go:228] QuotaMonitor created object count evaluator for projects.rancher.cattle.io
I0512 02:44:06.278608 54 resource_quota_monitor.go:228] QuotaMonitor created object count evaluator for clusters.rancher.cattle.io
I0512 02:44:06.278625 54 resource_quota_monitor.go:228] QuotaMonitor created object count evaluator for roletemplatebindings.rancher.cattle.io
I0512 02:44:06.278710 54 shared_informer.go:240] Waiting for caches to sync for resource quota
I0512 02:44:06.378924 54 shared_informer.go:247] Caches are synced for resource quota
I0512 02:44:09.133409 54 shared_informer.go:240] Waiting for caches to sync for garbage collector
I0512 02:44:09.233629 54 shared_informer.go:247] Caches are synced for garbage collector
time=“2022-05-12T02:44:14.007506568Z” level=info msg=“Cluster-Http-Server 2022/05/12 02:44:14 http: TLS handshake error from 10.42.0.10:60972: EOF”
time=“2022-05-12T02:44:14.011973623Z” level=info msg=“Cluster-Http-Server 2022/05/12 02:44:14 http: TLS handshake error from 10.42.0.10:60975: EOF”
其他上下文信息:
安装2.5.12 命令:sudo docker run --privileged -d --restart=unless-stopped -p 9080:80 -p 9443:443 -v /root/workspace/rancher:/var/lib/rancher/ -e CATTLE_AGENT_IMAGE=“registry.cn-hangzhou.aliyuncs.com/rancher/rancher-agent:v2.5.12” registry.cn-hangzhou.aliyuncs.com/rancher/rancher:v2.5.12