New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NO FailedPostStartHook Error Message After Upgrade to 1.7.8 #54671
Comments
/area kubelet |
I think this was fixed from 1.8. |
@xiangpengzhao |
I've just updated to kubernetes 1.8 and still no error message in However, I've never seen it there, as I've been using k8s for a few days, some of which were spent on searching how to debug hooks... Anyway client and server version:
Server is running as a part of minikube |
@xiangpengzhao We also require the error message included in the Event, Would you please add it? |
Seems like the |
the m.runner.Run in master seems same as release-1.7 ,And I found the msg is empty in release-1.7,so the handlerErr may not included in msg. |
ping @sjenning and @derekwaynecarr for confirmation. thanks! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Automatic merge from submit-queue. 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>. Add FailedPostStartHook error message. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes#54671 **Special notes for your reviewer**: /cc @derekwaynecarr cc @lovejoy @OJezu **Release note**: ```release-note NONE ```
JUST FOR SOMEBODY WHO CARE ABOUT THE PostStartHook Event Message |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
NO FailedPostStartHook Error Message After Upgrade to 1.7.8
When we use 1.6.3 , We can get message like Error syncing pod, skipping: failed to "StartContainer" for "xxxx" with PostStart handler: command '/xxxxxx' exited with 1: Hook do errexit, this is stderr : "PostStart Hook Failed" From Event, But After Upgrade to 1.7.8 ,the FailedPostStartHook Event always have no message
What you expected to happen:
we need the message to find out the poststarthook failed reason
How to reproduce it (as minimally and precisely as possible):
Use PostStartHook And Fail It
Anything else we need to know?:
a02f10f
pkg/kubelet/kuberuntime/kuberuntime_container.go
line 123 ,dont delete it
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.8", GitCommit:"bc6162cc70b4a39a7f39391564e0dd0be60b39e9", GitTreeState:"clean", BuildDate:"2017-10-05T06:54:19Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.8", GitCommit:"bc6162cc70b4a39a7f39391564e0dd0be60b39e9", GitTreeState:"clean", BuildDate:"2017-10-05T06:35:40Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
uname -a
):4.13.7-1.el7.elrepo.x86_64The text was updated successfully, but these errors were encountered: