Skip to content

Add unique suffix to build post-hook containers - #8316

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
rhcarvalho:build-hook-container-random-suffix
Mar 31, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
rhcarvalho:build-hook-container-random-suffix

Conversation

@rhcarvalho

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Evaluated for origin test up to 43ad146

@openshift-bot

Copy link
Copy Markdown
Contributor

@rhcarvalho

Copy link
Copy Markdown
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

bparees commented Mar 31, 2016

Copy link
Copy Markdown
Contributor

lgtm [merge]

@openshift-bot

Copy link
Copy Markdown
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
Copy Markdown
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