1.27. 搜索聚合器 pod 状态的故障排除
search-aggregator
无法运行。
1.27.1. 症状 1:搜索聚合器 pod 处于 Not Ready 状态
如果更新了 redisgraph-user-secret
,搜索聚合器 Pod 处于 Not Ready
状态。您可能会收到以下错误:
E0113 15:04:42.427931 1 pool.go:93] Error authenticating Redis client. Original error: ERR invalid password W0113 15:04:42.428100 1 healthProbes.go:36] Unable to reach Redis. E0113 15:04:44.265777 1 pool.go:93] Error authenticating Redis client. Original error: ERR invalid password W0113 15:04:44.266003 1 healthProbes.go:36] Unable to reach Redis. E0113 15:04:46.316869 1 pool.go:93] Error authenticating Redis client. Original error: ERR invalid password W0113 15:04:46.317029 1 healthProbes.go:36] Unable to reach Redis.
1.27.2. 解决问题: 搜索聚合器 pod 处于 Not Ready 状态
如果您遇到这个问题,删除 search-aggregator
和 search-api
pod 以重启 pod。运行以下命令以删除前面提到的 pod。
oc delete pod -n open-cluster-management <search-aggregator> oc delete pod -n open-cluster-management <search-api>
1.27.3. 症状 2:搜索 redisgraph pod 处于待处理状态
当它处于 Pending
状态时,search-redisgraph
pod 无法运行。
1.27.4. 解决问题: 搜索处于待处理状态的 redisgraph pod
如果您有这个问题,请完成以下步骤:
使用以下命令检查 hub 集群命名空间中的 pod 事件:
oc describe pod search-redisgraph-0
如果已创建了
searchcustomization
CR,请检查存储类和存储大小是否有效,并检查是否创建了 PVC。运行以下命令列出 PVC:oc get pvc <storageclassname>-search-redisgraph-0
确保 PVC 可以绑定到
search-redisgraph-0
pod。如果问题仍没有解决,删除 StatefulSetsearch-redisgraph
。search operator 会重新创建 StatefulSet。运行以下命令:oc delete statefulset -n open-cluster-management search-redisgraph