Debugging

aludel-cloudscale selftest runs DriverGenerateBucketId → DriverCreateBucket → DriverGetBucket → DriverGrantBucketAccess → DriverDeleteBucket in-process against the real cloudscale.ch API, with no Kubernetes, sidecar or gRPC involved:

export CLOUDSCALE_API_TOKEN=<read-write token>
./aludel-cloudscale selftest --region lpg

It splits a failure in two. If selftest passes, the cloudscale.ch and S3 paths are healthy and the problem is in the COSI wiring — driver name mismatch, sidecar, RBAC or CRDs. If it fails, the output names the failing RPC and the underlying API error.

--keep leaves the bucket and objects user behind for inspection; --path-style=false switches to virtual-hosted addressing.

Note that the COSI controller does not name the bucket after your BucketClaim. From controller/pkg/reconciler/bucketclaim.go:

name = "bc-" + string(claim.UID) // DO NOT CHANGE UNLESS ABSOLUTELY NECESSARY

The driver uses that name verbatim, so the bucket and its objects user are also called bc-<uuid>: one name identifies them in kubectl, in the logs and in the cloudscale.ch control panel. Looking for the claim’s name in the panel will not find anything.