欢迎访问机房运维工作室

爱数知识库

AnyShare-AnyShare 7.0.3.3 升级 7.0.3.4 更新配置失败,提示:timed out waiting for the conditi

频道:爱数知识库 日期: 浏览:61

AnyShare-AnyShare 7.0.3.3 升级 7.0.3.4 更新配置失败,提示:timed out waiting for the condition,查看存在 pod 状态为 IMag

关键字

time out waiting for the condition 、migrate

适用产品

  • AnyShare Enterprise 7.0.3.3
  • AnyShare Express 7.0.3.3
  • AnyShare Cloud 7.0.3.3


问题描述

Anyshare 7.0.3.3 版本升级 Anyshare 7.0.3.4 时,更新配置文件时,提示如下错误信息:

Cluster is updating,see log[/var/log/anysharect1/anysharect1.log] for detai7sTraceback (most recent cal7Tast) :

Fie "anysharect7.py", line 109,in <module>Fi1e "anysharect1.py", line 100,in cli

File "anysharect1.py", line 70, 'in exec_apply_cmd

File "uti1s/trace_utiis.py", line 23,in log_exceptionFile "utils/trace .ut1ls.p ii535''in app1y

File "handler/handler.py"’iine>80’ in update_clusterFile "handler /handler:py1ino'88in'uparade_cluster

File "utils/remote_cmd.py", line 39, in remote_cmd_retry_on_expFi1e "decorator.py", line 232,.in fun

Fi1e "retry/api.py", iine 73,'in retry_decoratorFile "retry/api.py", line 33,in__retry_interna1File "utils/remote_cmd.py",iine 37, in run_commandFile "utils/remote_cmd.py",line 67, in exec_command

erors.exceptions.comandExceotion: 10.11.43.221: Run CD, cnd:.helm get values proton-policy-engine > /tup/proton-policy-enyine_tmp.yam1l l&. he m upg.n-policy-engine--ersion 2.5.1 --set replicacount 3 ' depservices.ecd.entzoints= 'ttps:/proton-etcd-0.proton-etct-headles .resourc.soc.cluster. ocd-headess resource.svc.cluster .local:279 , https:/proton-etcd-2.proton-etcd-headless.resource. sic.custer.loca1:2379',depservices.eted.tisconfign.c..certlamne= 'per.crt , depServices.etcd.tIsconfig .eylamne= 'per .key ', depservices.etcd.tlsconfig.secretolane= etcssi-secet ',depservices.etcd.t sconfig.tngine_tmp.yam1--wait,code:1,stdout:UPGRADE FAILED

Error: timed out waiting for the condition,stderr:Error:UPGRADE FAILED: timed out waiting for the condition[2681845] Failed to execute script anysharect1

执行如下命令,查看有更新失败 pod ,状态为 IMagePullBackoff

kubectl get po -o wide -A |grep 0/

执行如下命令,查看失败 pod 的事件,提示如下错误信息:

kubectl describe po -n resource proton-policy-engine-z9d27

kubelet,<主机名> Failed to pull image <镜像名>: rpc error:code = Unknown desc = Error response from daemon

kubelet,<主机名> Error: ErrImagePull


问题影响

AnyShare 版本升级失败。


问题原因

容器调度节点未加载镜像,导致 pod/proton-policy-engine 启动失败。


解决方案

为解决该问题,需要查找镜像所在节点,导出镜像包并推送或者上传到所需要的节点。具体步骤如下:

1.执行如下命令,确定更新失败 pod 所在调度节点。

kubectl get po -o wide -A |grep 0/

2.执行如下命令,查看失败 pod 的事件,确认节点无法加载镜像名称,如下图所示,无法加载镜像名称为 proton-migrate-etcd

kubectl describe po -n resource proton-policy-engine-z9d27

3.登录所有节点执行如下命令,查找镜像包所在节点。

docker images | grep proton-migrate-etcd

4.登录镜像所在节点执行如下命令,导出镜像包并推送或者上传到所需要的节点 node-43-222 。

docker save -o proton-migrate-etcd.tar acr.aishu.cn/proto/proton-migrate-etcd:1.0.0

5.登录 node-43-222 节点执行如下命令,导入上传的镜像包。

docker load -i proton-migrate-etcd.tar

6.重新执行升级更新配置命令。


更多信息

关于 docker save 更多信息,请参考官方文档:https://docs.docker.com/engine/reference/commandline/save/

关于 docker load 更多信息,请参考官方文档:https://docs.docker.com/engine/reference/commandline/load/