Skip to content
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

Event reporting pod exited with non-zero exit code is improperly formatted #818

Closed
jlewi opened this issue Sep 2, 2018 · 4 comments
Closed

Comments

@jlewi
Copy link
Contributor

jlewi commented Sep 2, 2018

I recently added an Event to report pods exiting with non-zero exit code.

Here's how the event shows up

Events:
  Type    Reason                          Age   From         Message
  ----    ------                          ----  ----         -------
  Normal  SuccessfulCreatePod             14m   tf-operator  Created pod: t2t-code-search-exporter-worker-0
  Normal  SuccessfulCreateService         14m   tf-operator  Created service: t2t-code-search-exporter-worker-0
  Normal  Pod: %v.%v exited with code %v  14m   tf-operator  kubeflow%!(EXTRA string=t2t-code-search-exporter-worker-0, int32=1)

The code is here
https://github.com/kubeflow/tf-operator/blob/master/pkg/controller.v2/tensorflow/pod.go#L85

The format string looks correct; there are 3 parameters in the format string and 3 arguments.

I'm using an image built from master
gcr.io/kubeflow-images-public/tf_operator:v20180901-454c5c1a

@gaocegege any chance you see what the issue is the event?

If not I guess we could just use fmt.Sprintf

@johnugeorge
Copy link
Member

Reason argument in Eventf missing?

@johnugeorge
Copy link
Member

3 rd argument is the reason. And from 4, it is the message.

@gaocegege
Copy link
Member

I will fix it today.

@gaocegege gaocegege self-assigned this Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants