支持的三项技术支持卡在"正在删除"状态、无法将其删除
适用场景
- Astra Trident
- OpenShift容器平台(OCP)
问题描述
三项目标后端处于删除状态:
+------------------+----------------+--------------------------------------+----------+---------+
| NAME | STORAGE DRIVER | UUID | STATE | VOLUMES |
+------------------+----------------+--------------------------------------+----------+---------+
| ISCSI-Backend | ontap-san | 74d7c2af-7140-41d3-b66d-7943477075cd | online | 27 |
| NFS-Backend | ontap-nas | 5e542122-563c-4c86-a34d-f0528be250e5 | deleting | 1 |
+------------------+----------------+--------------------------------------+----------+---------+
后端状态为"失败":
# tridentctl get backend NFS-Backend -oyaml | tail
zone: ""
configRef: ""
name: NFS-Backend
online: false
protocol: file
state: failed
storage: {}
volumes:
- pvc-5e96748f-5ebb-473d-b942-dd78d729469f
尝试删除相应的卷会生成错误:
# tridentctl -d delete volume pvc-5e96748f-5ebb-473d-b942-dd78d729469f
Operating mode = tunnel, Trident pod = trident-csi-785fbd5587-78dt4, Namespace = otrident, CLI = oc
Invoking tunneled command: oc exec trident-csi-785fbd5587-78dt4 -n otrident -c trident-main -- tridentctl --debug delete volume pvc-5e96748f-5ebb-473d-b942-dd78d729469f
Operating mode = direct, Server = 127.0.0.1:8000, Autosuport server = 127.0.0.1:8003
Trident URL: http://127.0.0.1:8000/trident/v1
--------------------------------------------------------------------------------
Request Method: DELETE
Request URL: http://127.0.0.1:8000/trident/v1/volume/pvc-5e96748f-5ebb-473d-b942-dd78d729469f
Request headers: map[Content-Type:[application/json]]
Request body:
................................................................................
Error: could not delete volume pvc-5e96748f-5ebb-473d-b942-dd78d729469f: backend NFS-Backend is not Online or Deleting (400 Bad Request)
Response status: 400 Bad Request
Response headers: map[Content-Length:[58] Content-Type:[application/json; charset=UTF-8] Date:[Tue, 18 Apr 2023 10:56:03 GMT]]
Response body: {"error":"backend NFS-Backend is not Online or Deleting"}
后端更新失败、并显示错误:
# tridentctl update backend NFS-Backend -f NAS_Trident_Node1.json -n trident
Error: could not update backend NFS-NPUATS2: problem initializing storage driver 'ontap-nas': error initializing ontap-nas driver: could not create Data ONTAP API client: error creating ONTAP API client: error reading SVM details: Post https://192.168.0.25/servlets/netapp.servlets.admin.XMLrequest_filer: dial tcp 192.168.0.25:443: connect: connection refused (400 Bad Request)
command terminated with exit code 1