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

Two builds created for a single image #216

Closed
trisberg opened this issue Nov 12, 2019 · 4 comments · Fixed by #847
Closed

Two builds created for a single image #216

trisberg opened this issue Nov 12, 2019 · 4 comments · Fixed by #847
Labels
bug Something isn't working

Comments

@trisberg
Copy link

trisberg commented Nov 12, 2019

I created a riff function that in turn creates an image resource. This image resource ended up having two builds created for it:

$ kubectl get images.build.pivotal.io
NAME                    LATESTIMAGE                                                                                               READY
square-function-42dl7   index.docker.io/trisberg/square@sha256:cff3dc342ba638814c3c75ae350e7d2ee580791fdbe6d65eafd1f8526a0abc0e   True
$ kubectl get builds.build.pivotal.io
NAME                                  IMAGE                                                                                                     SUCCEEDED
square-function-42dl7-build-1-c8dr6   index.docker.io/trisberg/square@sha256:cff3dc342ba638814c3c75ae350e7d2ee580791fdbe6d65eafd1f8526a0abc0e   True
square-function-42dl7-build-1-mm7hf   index.docker.io/trisberg/square@sha256:cff3dc342ba638814c3c75ae350e7d2ee580791fdbe6d65eafd1f8526a0abc0e   True
$ kubectl get pods
NAME                                            READY   STATUS        RESTARTS   AGE
square-function-42dl7-build-1-c8dr6-build-pod   0/1     Completed     0          13m
square-function-42dl7-build-1-mm7hf-build-pod   0/1     Completed     0          13m

I've attached the kpack controller log. I'll add comments if I see this happening again.

kpack.log

The kpack version is v0.0.5

@matthewmcnew matthewmcnew added the bug Something isn't working label Nov 12, 2019
@matthewmcnew
Copy link
Collaborator

This looks like it is a known race condition which we had non observed in the wild, yet.

@trisberg
Copy link
Author

trisberg commented Dec 4, 2019

Happened again today, any progress on this?

default           inventory-api-application-dqvdb-build-1-ns7mp-build-pod   0/1     Init:4/7   0          2m42s
default           inventory-api-application-dqvdb-build-1-zrmqq-build-pod   0/1     Init:4/7   0          2m42s

@thisisnotashwin
Copy link

Hey @trisberg

We haven't had the bandwidth to get around to this just yet. Will bring it tomorrow and get this prioritized.

Thanks for being patient.

@matthewmcnew
Copy link
Collaborator

#847 should resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants