TokenManagerRetrieveError: error retrieving the token
Opened this issue · 1 comments
MohammedFadin commented
Hi,
We keep getting the below error every time we create the PVC for COS. Although the secret is 100% correct, and even my colleagues from the IBM pre-sales team faced the issue.
Volume:
Labels: <none>
Annotations: ibm.io/auto-create-bucket: true
ibm.io/auto-delete-bucket: false
ibm.io/bucket: some-data-buckets
ibm.io/endpoint: https://s3.eu-gb.cloud-object-storage.appdomain.cloud
ibm.io/secret-name: cos-secret
kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{"ibm.io/auto-create-bucket":"true","ibm.io/auto-delete-bucket...
volume.beta.kubernetes.io/storage-provisioner: ibm.io/ibmc-s3fs
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ExternalProvisioning 2s (x2 over 2s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "ibm.io/ibmc-s3fs" or manually created by system administrator
Normal Provisioning 2s ibm.io/ibmc-s3fs_ibmcloud-object-storage-plugin-58bb8c4bd7-rcvc6_d97eb5f7-9909-11e9-a6f2-5a64554202b0 External provisioner is provisioning volume for claim "devops/some-data-object-stroage"
Warning ProvisioningFailed 1s ibm.io/ibmc-s3fs_ibmcloud-object-storage-plugin-58bb8c4bd7-rcvc6_d97eb5f7-9909-11e9-a6f2-5a64554202b0 failed to provision volume with StorageClass "ibmc-s3fs-icp": some-data-object-stroage:e4590478079b4de6b00a618a60fd2686:cannot create bucket some-data-buckets: TokenManagerRetrieveError: error retrieving the token
peter-van-sickel commented
I had the same issue. In my case the api-key in the secret had a corrupted value. Don't know how it got corrupted. Could be I forgot to base64 encode it before creating the secret. Originally, the secret was created with the command. Deleted the corrupted secret and recreated with YAML using stringData so it is easier to tell what the secret values are.