跳转到主内容

使用 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)
  • 具有光纤通道或 iSCSI 后端的 ONTAP(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 上传 Pod 中运行写入测试可确认此问题:
oc exec -n <namespace><cdi-upload-pod> -- touch /scratch/test
touch: cannot touch '/scratch/test': Permission denied
  • /scratch 目录以 root:root 挂载,权限为 drwxr-xr-x,导致非 root CDI 上传 Pod 无法写入该目录。
  • 使用基于 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.