CSM:PowerMax 的 CSI 驅動程式無法建立磁碟區,並發生尋找儲存群組和磁碟區的錯誤
摘要: 適用於 PowerMax 的 Dell 容器儲存模組 (CSM) 容器儲存介面 (CSI) 驅動程式無法建立磁碟區,並發生尋找儲存群組 (SG) 和磁碟區錯誤。
症狀
嘗試創建卷時,控制器驅動程式日誌中會出現以下錯誤。具象狀態轉移(REST) 命令會擷取 SG 的詳細資料。可使用 REST 回應是 "200 ok" 但隨後日誌顯示 "Unable to find storage group"。
time="2024-02-14T17:15:03Z" level=debug msg="\n -------------------------- POWERMAX HTTP REQUEST -------------------------\n GET /univmax/restapi/100/sloprovisioning/symmetrix/<powermax id>/storagegroup/<storage group> HTTP/1.1\n Host: 0.0.0.0:2222\n Accept: application/json;version=100\n Application-Type: CSI Driver for Dell EMC PowerMax/v2.9.1\n Content-Type: application/json;version=100\n Symid: <powermax id>\n \n"
time="2024-02-14T17:15:03Z" level=debug msg="\n -------------------------- POWERMAX HTTP RESPONSE -------------------------\n HTTP/1.1 200 OK\n Transfer-Encoding: chunked\n Content-Security-Policy: default-src 'self'\n Content-Type: application/json\n Date: Wed, 14 Feb 2024 17:15:03 GMT\n Referrer-Policy: no-referrer-when-downgrade\n Restapi-Active-Session-Count: 4\n Restapi-Processing-Time: 25\n Strict-Transport-Security: max-age=31536000; includeSubDomains\n X-Content-Security-Policy: default-src 'self'\n X-Content-Type-Options: nosniff\n X-Frame-Options: SAMEORIGIN\n X-Webkit-Csp: default-src 'self'\n X-Xss-Protection: 1; mode=block\n \n 176\n {\"storageGroupId\":\"<storage group>\",\"slo\":\"Gold\",\"service_level\":\"Gold\",\"base_slo_name\":\"Gold\",\"srp\":\"SRP_1\",\"slo_compliance\":\"STABLE\",\"num_of_vols\":0,\"num_of_child_sgs\":0,\"num_of_parent_sgs\":0,\"num_of_masking_views\":0,\"num_of_snapshots\":0,\"cap_gb\":0.0,\"type\":\"Standalone\",\"unprotected\":true,\"compression\":true,\"compression_ratio_to_one\":0.0,\"unreducible_data_gb\":0.0}\n 0\n \n"
time="2024-02-14T17:15:03Z" level=debug msg="Unable to find storage group: <storage group>"
然後繼續, REST 在嘗試建立磁碟區之前,請先檢查磁碟區是否存在。可使用 REST 傳回找不到卷,並傳回 404 Not Found 消息,但代碼需要一個空清單。
time="2024-02-14T17:15:03Z" level=debug msg="\n -------------------------- POWERMAX HTTP REQUEST -------------------------\n GET /univmax/restapi/100/sloprovisioning/symmetrix/<powermax id>/volume?volume_identifier=<volume name> HTTP/1.1\n Host: 0.0.0.0:2222\n Accept: application/json;version=100\n Application-Type: CSI Driver for Dell EMC PowerMax/v2.9.1\n Content-Type: application/json;version=100\n Symid: <powermax id>\n \n"
time="2024-02-14T17:15:04Z" level=debug msg="\n -------------------------- POWERMAX HTTP RESPONSE -------------------------\n HTTP/1.1 404 Not Found\n Content-Length: 26\n Content-Type: text/plain; charset=utf-8\n Date: Wed, 14 Feb 2024 17:15:04 GMT\n \n Invalid Response from API\n"
time="2024-02-14T17:15:04Z" level=error msg="Error looking up volume for idempotence check: Not Found"
time="2024-02-14T17:15:04Z" level=info msg="/csi.v1.Controller/CreateVolume: REP 0032: rpc error: code = Internal desc = Error looking up volume for idempotence check: Not Found"
time="2024-02-14T17:15:04Z" level=info msg="/csi.v1.Controller/GetCapacity: REQ 0033: VolumeCapabilities=[mount:<> access_mode:<> ], Parameters=map[SRP:SRP_1 SYMID:<powermax id> ServiceLevel:Gold csi.storage.k8s.io/fstype:ext4], AccessibleTopology=segments:<key:\"csi-powermax.dellemc.com/<powermax id>\" value:\"csi-powermax.dellemc.com\" > segments:<key:\"csi-powermax.dellemc.com/<powermax id>.vsphere\" value:\"csi-powermax.dellemc.com\" > , XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"
然後重複此行為,並且永遠不會創建卷。
原因
使用者新增了尾隨 "/" 在值檔案中或 powermax-reverseproxy-config 和 powermax-array-config configmaps 進入 PowerMax 端點的 Unisphere 時。
https://primary-1.unisphe.re:8443/
提供的值 YAML 檔案顯示沒有尾隨 "/" 在範例中。
https://primary-1.unisphe.re:8443
解析度
安裝應使用不包含附加 "/"。
請參閱說明文件,並依照適用於特定環境的部署指示操作: https://dell.github.io/csm-docs/
其他資訊
啟用 powerMaxDebug 以檢視 POWERMAX HTTP REQUEST 或 RESPONSE 在日誌中。
請參閱說明文件,並依照適用於特定環境的部署指示操作:https://dell.github.io/csm-docs/
logLevel - CSI 驅動程式紀錄級別。允許的值: "error"小 "warn"/"warning"小 "info"小 "debug"
powerMaxDebug 啟用 CSI 驅動程式與 Unisphere 之間的低層級和 HTTP 流量記錄。除非支援小組要求,否則請勿啟用此功能。