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

Add unique suffix to build post-hook containers #8316

Merged

Conversation

rhcarvalho
Copy link
Contributor

This makes it closer to pkg/kubelet/dockertools.BuildDockerName, as documented and as originally intended (original discussion in #6715 (comment)).

We had removed the suffix during code review, and now agreed that it should be there to avoid bugging users with errors because of a container name clash.

Fixes #8266.

This makes it closer to pkg/kubelet/dockertools.BuildDockerName, as
documented and as originally intended.

We had removed the suffix during code review, and now agreed that it
should be there to avoid bugging users with errors because of a
container name clash.
@rhcarvalho
Copy link
Contributor Author

@bparees PTAL. I'm marking this as fixing the issue because the other two actionable items in the issue all already have their own issues or PRs for us to track.

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 43ad146

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/2623/)

@rhcarvalho
Copy link
Contributor Author

Test failures in Jenkins say:

--- FAIL: TestImageStreamImportRedHatRegistry-2 (12.11s)
    dockerregistryclient_test.go:70: caught error "failed to import an image registry.access.redhat.com/rhel7: Internal error occurred: the image "95612a3264fcea256ed7c179d6e4a5dece55e217cff198bbaeb4a7e554f974ca" in repository "/rhel7" was not found and may have been deleted", retrying in 500ms
    dockerregistryclient_test.go:70: caught error "failed to import an image registry.access.redhat.com/rhel7: Internal error occurred: the image "95612a3264fcea256ed7c179d6e4a5dece55e217cff198bbaeb4a7e554f974ca" in repository "/rhel7" was not found and may have been deleted", retrying in 1s
    dockerregistryclient_test.go:70: caught error "failed to import an image registry.access.redhat.com/rhel7: Internal error occurred: the image "95612a3264fcea256ed7c179d6e4a5dece55e217cff198bbaeb4a7e554f974ca" in repository "/rhel7" was not found and may have been deleted", retrying in 2s
    dockerregistryclient_test.go:70: caught error "failed to import an image registry.access.redhat.com/rhel7: Internal error occurred: the image "95612a3264fcea256ed7c179d6e4a5dece55e217cff198bbaeb4a7e554f974ca" in repository "/rhel7" was not found and may have been deleted", retrying in 4s
    imageimporter_test.go:673: failed to import an image registry.access.redhat.com/rhel7: Internal error occurred: the image "95612a3264fcea256ed7c179d6e4a5dece55e217cff198bbaeb4a7e554f974ca" in repository "/rhel7" was not found and may have been deleted
FAIL

Seems unrelated to this change.

There was a reported flake for this test a while ago #7355

@bparees
Copy link
Contributor

bparees commented Mar 31, 2016

lgtm [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5493/) (Image: devenv-rhel7_3880)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 43ad146

@openshift-bot openshift-bot merged commit d58f979 into openshift:master Mar 31, 2016
@rhcarvalho rhcarvalho deleted the build-hook-container-random-suffix branch March 31, 2016 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build post-commit container names are not unique
3 participants