Open EimantasPelikis opened 4 years ago
Hi @EimantasPelikis Are you using IAM API key or HMAC key for COS Instance access secret? https://cloud.ibm.com/docs/containers?topic=containers-object_storage#create_cos_secret
I setup k8s secret for COS access using IAM API key:
kubectl create secret generic cos-write-access --type=ibm/ibmc-s3fs --from-literal=api-key=<api_key> --from-literal=service-instance-id=<service_instance_guid>
There was a latent issue with s3fs, because of that s3fs is not able to refresh IBM IAM access token.
Install the latest version of the plugin 2.0.4
$ helm ls --all --all-namespaces
$ helm delete <helm_chart_name> -n <helm_chart_namespace>
2. Migrate to Helm-V3 https://cloud.ibm.com/docs/containers?topic=containers-helm#migrate_v3
3. Add the new helm repository
$ helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm
$ helm repo update
$ helm search repo -l ibm-helm/ibm-object-storage-plugin
NAME CHART VERSION APP VERSION DESCRIPTION
ibm-helm/ibm-object-storage-plugin 2.0.4 2.0.4 Chart for deploying ibmcloud object storage plu...
4. Install new helm plugin ibmc
$ helm plugin uninstall ibmc
$ helm fetch --untar ibm-helm/ibm-object-storage-plugin
$ helm plugin install ./ibm-object-storage-plugin/helm-ibmc
$ helm ibmc --help
5. Install latest chart version
$ helm ibmc install ibm-object-storage-plugin ibm-helm/ibm-object-storage-plugin --set license=true
Issue context
I'm using the ibmcloud-object-storage-plugin together with Helm Charts Museum app. Initially my setup was working perfectly fine - helm charts get stored on the mounted volume and I was able to fetch them via API, but now it seems that volume get detached after it’s used one time after app is deployed. So, I need to re-deploy the app every time to get the volume back on pod - this is my observation after a quick troubleshooting - listing the files in the mounted directory as the app is used.
Recent troubleshooting pointed my to the plugin itself where I see the matching pattern of network errors and the problems with my app. Hope this helps to identify the issue and fix it.
Additional context ibmcloud-object-storage-plugin pod logs: