panic: runtime error: index out of range
1. 背景
工作遇到的类似问题,参考官网进行收集归档,进行笔记形式的记录,便于后续查看。
2. 环境
OpenShift Container Platform (OCP) 4.3.z
3. 问题
原因:
Image registry purging process running over s3 storage was listing a directory twice, first as a directory and later as a file.
结果:
Purging was failing when parsing the path for the directory (received as file), causing an invalid memory access (panic)
4. 参考解决方案
Updated s3 driver to avoid listing a directory twice during path walk.