Why can't my PVC access an existing bucket?
Virtual Private Cloud Classic infrastructure
When you create the PVC, the bucket in IBM Cloud Object Storage can't be accessed. You see an error message similar to the following:
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:
You might have used the wrong storage class to access your existing bucket, you tried to access a bucket that you did not create, or there has been a change in the endpoints that are used in the storage class. You can't access a bucket that you did not create.
Verify your bucket details and storage class and recreate your PVC.
- From the IBM Cloud dashboard, select your IBM Cloud Object Storage service instance.
- Select Buckets.
- Review the Class and Location information for your existing bucket.
- Choose the appropriate storage class.
- Make sure that you provide the correct name of your existing bucket.
- Update the PVC yaml with
ibm.io/endpoint: <regional-endpoint>
value.