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

ontap-san を使用した OpenShift での qcow2 イメージのアップロードが権限拒否で失敗する

Views:
Visibility:
Public
Votes:
0
Category:
astra_trident
Specialty:
astra
Last Updated:

環境

  • NetApp Trident 26.x (ontap-sanドライバ)
  • OpenShift 仮想化(KubeVirt / CDI)
  • ONTAP (Fibre Channel または iSCSI バックエンド)(ontap-san)

問題

  • Trident ontap-san StorageClassを使用してOpenShift Virtualizationで起動可能ボリュームを作成するためにqcow2またはISOイメージをアップロードすると、アップロードが次のエラーで失敗します:
Saving stream failed: Unable to transfer source data to scratch space: could not open file "/scratch/tmpimage": open /scratch/tmpimage: permission denied
  • CDI アップロードポッド内で書き込みテストを実行すると、問題が確認されます:
oc exec -n <namespace><cdi-upload-pod> -- touch /scratch/test
touch: cannot touch '/scratch/test': Permission denied
  • /scratchディレクトリはroot:rootとしてマウントされており、権限はdrwxr-xr-xであるため、非ルート権限の CDI アップロードポッドはそこへの書き込みができません。
  • NFS バックアップのStorageClassを使用した場合、同じアップロードは成功します。

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.