メインコンテンツへスキップ

Trident ボリュームのプロビジョニングが次のエラーで失敗します:Failed to provision volume with StorageClass "sc" : rpc error: code = unknown storage class: sc

Views:
47
Visibility:
Public
Votes:
0
Category:
trident-openshift
Specialty:
snapx
Last Updated:

環境

Trident

OpenShift コンテナプラットフォーム(OCP)

問題

Tridentボリュームのプロビジョニングが次のエラーで失敗する:Failed to provision volume with StorageClass "<sc>" : rpc error: code = unknown storage class: <sc>

PVCプロビジョニングが「Pending」ステータスでスタックします。

pvcを記述すると、エラーが表示されます:

clipboard_79dba1aa-b1e8-4d47-93bd-bc3e25586af5.png

StorageClass の削除と再作成は成功しましたが、Trident はエラーを表示し続けます。

別の名前でストレージクラスを作成すると、プロビジョニングが機能します。

問題のある StorageClass は、コマンド ./tridentctl get sc の出力には表示されませんが、コマンド oc get sc の出力には表示されます

Tridentコントローラログには、問題のあるStorageClassが削除済みと表示されます:

time="Z" level=debug msg="Added CR event to workqueue." crdControllerEvent=add event=add key=trident/trident-san-nas kind=TridentBackendConfig logLayer=crd_frontend logSource=trident-crd-controller requestID=2fda286c-a80e-472f-ab4f-41debae4e1eb requestSource=CRD workflow="cr=reconcile"
I warnings.go:110] "Warning: metadata.finalizers: \"trident.netapp.io\": prefer a domain-qualified finalizer name including a path (/) to avoid accidental conflicts with other finalizer writers"
time="Z" level=warning msg="K8S helper could not add a storage class." error="object is being deleted: tridentstorageclasses.trident.netapp.io \"<sc>\" already exists" logLayer=csi_frontend name=sc parameters="map[backendType:ontap-nas]" provisioner=csi.trident.netapp.io requestID=c6004fa1-ba28-40a4-9474-da9bd0836d78 requestSource=Kubernetes workflow="storage_class=create"

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.