已关闭
【bkeagent/reset】SourceClean 中 yum makecache 过慢导致缩容 Reset 超时 #231
xuyouh创建于 9月14日关闭于 29 天前
9月14日 添加了label:sig/sig-Installation
openFuyao-bot
9月14日 评论:
9月14日 评论:
欢迎来到 openFuyao 社区
Hey @xuyouhong , 感谢你对社区的贡献.
机器人使用手册
有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。您可以自助配置此仓库的 PR 合并规则,更多详情,请参阅此处。
联系指引
有疑问可以联系 SIG: sig-Installation ,
维护者是: @foxbit, @javadoors, @regandy, @xuyouhong, @zqw1 ,
审核者是: @piamposer-li .


9月14日 关联了里程碑:v26.09
9月14日 关联了看板:openFuyao - v26.09问题单
9月14日 关联了pull request:fix(httprepo): align RepoUpdate with bkeadm makecache strategy
xuyouh
29 天前 评论:
29 天前 评论:
已合入


29 天前 issue状态由 开启 改变为 待测试
29 天前 issue状态由 待测试 改变为 已完成
29 天前 关闭了 issue
环境信息/ Environment
服务集群缩容 worker 节点(如 192.168.201.99),节点 OS 为 yum/dnf 系。
问题简述/ Brief Description
节点 Reset 的 SourceClean 调用 RepoUpdate 执行
yum clean all+ 无超时的yum makecache,在慢源环境下可达约 9–11 分钟,超过管理面 DefaultWaitTimeout(5 分钟),导致 Reset 被判定失败并 delete directly,进而跳过 Shutdown。问题详情&复现步骤 / Details & Reproduction Steps
yum makecache长时间阻塞(实测约 11 分钟);yum clean all为秒级。failed to wait for reset command to be completed, delete directly,不下发 Shutdown。根因:
utils/bkeagent/httprepo.RepoUpdate与 bkeadm 已优化的syscompat.RepoUpdate不一致。期望结果/ Expected Results
RepoUpdate 与 bkeadm 对齐:有界超时、
makecache --timer+ skip_if_unavailable/fastestmirror、失败 best-effort,不拖死 Reset / 不误跳过后续 Shutdown。实际结果/Actual Results
SourceClean 卡住数分钟至十余分钟,Reset 等待超时后直接删除,节点上 bkeagent 可能仍在运行。