为什么我的 PVC 无法访问现有存储区?

使用 Cloud Object Storage 排查存储桶访问问题。

虚拟私有云 传统基础设施

创建 PVC 时,无法访问 IBM Cloud Object Storage 中的存储桶。 您会看到类似于以下内容的错误消息:

Failed to provision volume with StorageClass "ibmc-s3fs-standard-regional": pvc:1b2345678b69175abc98y873e2:can't access bucket <bucket_name>: NotFound: Not Found
Warning  ProvisioningFailed  23s (x3 over 83s)     ibm.io/ibmc-s3fs_ibmcloud-object-storage-plugin-6b47474f5b-bxgtc_61ed4300-b1f9-43df-85d7-ffdb2ddcaeb9  (combined from similar events): failed to provision volume with StorageClass "ibmc-s3fs-smart-perf-regional": regionalbucket : cgi5lj0w0s2a56ua5gc0 :cannot access bucket ambregionalbucket: NotFound: Not Found status code: 404, request id: b6c9439d-33c6-4318-8d03-7415c1a47ec1, host id:

您可能使用了错误的存储类来访问现有存储区,尝试访问未创建的存储区,或者在存储类中使用的端点发生了更改。 您无法访问自己未创建的存储桶。

验证水桶详细信息和存储类别,然后重新创建 PVC。

  1. IBM Cloud 仪表板中,选择 IBM Cloud Object Storage 服务实例。

  2. 选择存储区

  3. 查看现有存储区的位置信息。

  4. 选择相应的存储类

  5. 请确保提供现有存储区的正确名称。

  6. 使用 ibm.io/endpoint: <regional-endpoint> 值更新 PVC YAML。