mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 57868, 58284, 56370, 58400, 58439). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Show findmnt command output in case of error **What this PR does / why we need it**: We don't print the error output from the `findmnt` command, which makes it pretty hard to debug. The current implementation just print: ` I0115 11:59:36.078285 18230 nsenter_mount.go:168] Failed findmnt command for path /var/lib/origin/openshift.local.volumes/pods/8d723ec8-f9e9-11e7-bc52-025000000001/volumes/kubernetes.io~secret/pvinstaller-token-bxh42: exit status 1 ` With this patch, we can actually see the error: ` I0115 12:04:30.908164 23301 nsenter_mount.go:168] Failed findmnt command for path /var/lib/origin/openshift.local.volumes/pods/8ff8bb98-f9e9-11e7-bc52-025000000001/volumes/kubernetes.io~secret/deployer-token-g4sg9: nsenter: failed to execute /findmnt: No such file or directory exit status 1 ` **Release note**: ```release-note NONE ``` |
||
---|---|---|
.. | ||
BUILD | ||
OWNERS | ||
doc.go | ||
exec.go | ||
exec_mount.go | ||
exec_mount_test.go | ||
exec_mount_unsupported.go | ||
fake.go | ||
mount.go | ||
mount_linux.go | ||
mount_linux_test.go | ||
mount_unsupported.go | ||
mount_windows.go | ||
mount_windows_test.go | ||
nsenter_mount.go | ||
nsenter_mount_test.go | ||
nsenter_mount_unsupported.go | ||
safe_format_and_mount_test.go |