PowerFlex 4.0:NFS 和 HTTP Pod 卡在挂起状态
Summary: PowerFlex Manager 版本 4.0.2 的 nfs-server-0 和 http-share-0 Pod 都卡在挂起状态。
Symptoms
1.PowerFlex Manager 版本 4.0.2 NFS 和 HTTP 共享都显示为挂起

2.Kubectl describe pod http-share-0 -n PowerFlex show pod is unbound to pvc.

来自 describe 命令的消息。
0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 preemption is not helpful for scheduling
来自 PFxM GUI 的消息
RCM files unavailable at the httpshare location

3. kubectl get pvc -n PowerFlex 将 nfs-volume-nfs-server-0 和 wwwdata-volume-http-share-0 都显示为挂起

Cause
问题在于将 PVC 上的 NFS 和 HTTP 共享的存储类设置为手动。

Resolution
1.获取 yaml 文件输出并保存文件。
kubectl get pvc wwwdata-volume-http-share-0 -n powerflex -o yaml > wwwdata-volume-http-share-0.yaml
kubectl get pvc nfs-volume-nfs-server-0 -n powerflex -o yaml > nfs-volume-nfs-server-0.yaml

2.在 vi 编辑器中打开文件,并将文件 wwwdata-volume-http-share-0.yaml 和 nfs-volume-nfs-server-0.yaml 的 storageClassName 从 manual 更改为 local-path

3.运行 cat 命令以验证更改。

4.通过运行命令删除 现有 pvc。
kubectl delete pvc -n powerflex wwwdata-volume-http-share-0
kubectl delete pvc -n powerflex nfs-volume-nfs-server-0


5.应用文件中的更改。
kubectl apply -f wwwdata-volume-http-share-0.yaml
kubectl apply -f nfs-volume-nfs-server-0.yaml


6.再次检查两个 Pod 的状态。从“挂起”显示为“正在运行”可能需要几分钟时间。

Additional Information
kubectl rollout status sts -n powerflex 或 kubectl rollout status deploy -n powerflex 当两个 Pod 都处于挂起状态时,也将显示 no response/blank 输出。