-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug info to error logs if Mountpoint fails to start (#385)
As an example, I used an incorrect IAM role with PLI, and consequently my Pod failed to start, and then when I do `kubectl describe busybox-pli`, I got the following: ``` Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 14s default-scheduler 0/2 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling. Normal Scheduled 7s default-scheduler Successfully assigned default/busybox-pli to ....eu-north-1.compute.internal Warning FailedMount 3s (x2 over 4s) kubelet MountVolume.SetUp failed for volume "s3-mp-csi-pv-pli" : rpc error: code = Internal desc = Could not mount "amzn-s3-demo-bucket" at "/var/lib/kubelet/pods/7405ef8c-02bd-44b6-8a02-9c62f3ceaab4/volumes/kubernetes.io~csi/s3-mp-csi-pv-pli/mount": Failed to wait for Mountpoint Pod mp-7ecac1a54cebd682c4ab95a8a7dd94e9b3321d27b232754561433f6f to be ready for /var/lib/kubelet/pods/7405ef8c-02bd-44b6-8a02-9c62f3ceaab4/volumes/kubernetes.io~csi/s3-mp-csi-pv-pli/mount: Mountpoint Pod mp-7ecac1a54cebd682c4ab95a8a7dd94e9b3321d27b232754561433f6f failed: Error: Failed to create S3 client Caused by: 0: initial ListObjectsV2 failed for bucket amzn-s3-demo-bucket in region eu-north-1 1: Client error 2: No signing credentials available, see CRT debug logs You can see Mountpoint logs by running: `kubectl logs -n mount-s3 mp-7ecac1a54cebd682c4ab95a8a7dd94e9b3321d27b232754561433f6f`. If the Mountpoint Pod already restarted, you can also pass `--previous` to get logs from the previous run. ``` --- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
- Loading branch information
Showing
2 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters