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。

來自描述命令的消息。
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 編輯器中開啟檔案,並將兩個檔案的 storageClassName 從 手動 路徑變更為 本機路徑: wwwdata-volume-http-share-0.yaml 和 nfs-volume-nfs-server-0.yaml

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.再次檢查兩個容器的狀態。可能需要幾分鐘的時間才能從「待處理」顯示為「執行中」。

Additional Information
kubectl rollout status sts -n powerflex 或 kubectl rollout status deploy -n powerflex 當兩個 Pod 都處於掛起狀態時,也會顯示無回應/空白輸出。