Skip to main content
Solved

Kasten K10 Pre-Flight Checks: Failed to fetch data from pod


Harish KM

curl -s https://docs.kasten.io/tools/k10_primer.sh | bash /dev/stdin -s gp3

Namespace option not provided, using default namespace
Checking for tools
 --> Found kubectl
 --> Found helm
Checking if the Kasten Helm repo is present
 --> The Kasten Helm repo was found
Checking for required Helm version (>= v3.0.0)
 --> No Tiller needed with Helm v3.9.2
K10Primer image
 --> Using Image (gcr.io/kasten-images/k10tools:5.0.4) to run test
Checking access to the Kubernetes context kasten
 --> Able to access the default Kubernetes namespace
K10 Kanister tools image
 --> Using Kanister tools image (ghcr.io/kanisterio/kanister-tools:0.81.0) to run test

Running K10Primer Job in cluster with command-
     ./k10tools primer storage csi-checker -s gp3
serviceaccount/k10-primer created
clusterrolebinding.rbac.authorization.k8s.io/k10-primer created
job.batch/k10primer created
Waiting for pod k10primer-q2rqw to be ready -
Pod Ready!

Starting CSI Checker. Could take up to 5 minutes
I0810 03:09:46.267246       7 request.go:601] Waited for 1.047798241s due to client-side throttling, not priority and fairness, request: GET:https://172.20.0.1:443/apis/storage.k8s.io/v1
Creating application
  -> Created pod (kubestr-csi-original-podndnqw) and pvc (kubestr-csi-original-pvc8cwxl)
Cleaning up resources
CSI Snapshot Walkthrough:
  Using annotated VolumeSnapshotClass (ebs-csi)
  Failed to fetch data from pod. Failure may be due to permissions issues. Try again with runAsUser=1000 option.: Failed to exec command in pod: command terminated with exit code 1  -  Error

serviceaccount "k10-primer" deleted
clusterrolebinding.rbac.authorization.k8s.io "k10-primer" deleted
job.batch "k10primer" deleted

Best answer by satish.kumar

Harish,

 

Try with this command.

 

curl -s https://docs.kasten.io/tools/k10_primer.sh  | bash /dev/stdin -c "storage csi-checker -s <StorageClassName> --runAsUser=1000"
View original
Did this topic help you find an answer to your question?

1 comment

Forum|alt.badge.img
  • New Here
  • 8 comments
  • Answer
  • August 10, 2022

Harish,

 

Try with this command.

 

curl -s https://docs.kasten.io/tools/k10_primer.sh  | bash /dev/stdin -c "storage csi-checker -s <StorageClassName> --runAsUser=1000"

Comment