Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1367204 - Events lists no longer displays output of lifecycle hooks
Events lists no longer displays output of lifecycle hooks
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Pod (Show other bugs)
3.3.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Andy Goldstein
DeShuai Ma
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-15 16:49 EDT by Matt Wringe
Modified: 2016-09-19 10:35 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-19 10:35:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Origin (Github) 10494 None None None 2016-08-18 16:03 EDT
Github kubernetes/kubernetes/pull/30731 None None None 2016-08-17 15:55 EDT
Red Hat Product Errata RHBA-2016:1933 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.3 Release Advisory 2016-09-27 09:24:36 EDT

  None (edit)
Description Matt Wringe 2016-08-15 16:49:10 EDT
Description of problem:

The events list used to list output from lifecycle hooks (eg readiness and lifecycle probes).

Without these messages from the lifecycle hooks it can be debugging certain situations very difficult. It also means we can't provide messages to users as to why the hook failed.
Comment 1 Michal Fojtik 2016-08-16 08:35:38 EDT
@mwringe are you referring to deployment hooks (pre/mid/post) and that they are not reporting errors to events OR you are referring to liveness and readiness probes not being reported in events?
Comment 2 Matt Wringe 2016-08-16 10:14:15 EDT
liveness and readiness probes, we used to get any output that these probes produced.
Comment 3 Andy Goldstein 2016-08-17 10:00:36 EDT
Please don't open bugs in both GitHub and here. Since you have this one, I'm going to close the GitHub issue (https://github.com/openshift/origin/issues/10424).

Upstream PR: https://github.com/kubernetes/kubernetes/pull/30731
Comment 4 Andy Goldstein 2016-08-17 10:01:35 EDT
This is specific to exec probes. There is a regression in Kube 1.3 that makes it so the output from exec probes is not included in the events.
Comment 5 DeShuai Ma 2016-08-23 02:44:28 EDT
Test on v3.3.0.24-dirty, "Readiness" event shows correctly
steps:
1. Create a pod with readiness exec probe
$ oc create -f https://raw.githubusercontent.com/mdshuai/testfile-openshift/master/k8s/readinessProbe-exec.yaml
2. Check event shows correctly.
[root@openshift-107 ~]# oc get event -n dma|grep "Readiness probe failed"
4s         4m          25        nginx     Pod       spec.containers{nginx}   Warning   Unhealthy   {kubelet openshift-159.lab.sjc.redhat.com}   Readiness probe failed: Get http://10.1.0.6:112/: dial tcp 10.1.0.6:112: getsockopt: connection refused
Comment 6 DeShuai Ma 2016-08-23 02:45:14 EDT
[root@openshift-107 ~]# oc get event -n dma|grep "Readiness probe"
7s         37s         4         hello-pod   Pod       spec.containers{hello-pod}   Warning   Unhealthy   {kubelet openshift-159.lab.sjc.redhat.com}   Readiness probe failed: exec: "/bin/hello": stat /bin/hello: no such file or directory

Note You need to log in before you can comment on or make changes to this bug.