Skip to content

Resolve build hang when docker daemon under load #13817

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

Merged
merged 2 commits into from
Apr 28, 2017

Conversation

jim-minter
Copy link
Contributor

@jim-minter jim-minter commented Apr 19, 2017

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1442875
[test][testextended][extended:core(builds)]

@jim-minter
Copy link
Contributor Author

@jim-minter jim-minter changed the title DO NOT MERGE Resolve build hang when docker daemon under load Apr 27, 2017
@jim-minter jim-minter assigned bparees and unassigned jim-minter Apr 27, 2017
@jim-minter
Copy link
Contributor Author

@bparees ptal
@openshift/devex

Copy link
Contributor

@gabemontero gabemontero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very minor suggestion. Otherwise I like the clever yet simple solution for this.

@@ -40,7 +41,11 @@ type runtimeBuilderFactory struct{}

// Builder delegates execution to S2I-specific code
func (_ runtimeBuilderFactory) Builder(config *s2iapi.Config, overrides s2ibuild.Overrides) (s2ibuild.Builder, s2iapi.BuildInfo, error) {
builder, buildInfo, err := s2i.Strategy(config, overrides)
client, err := docker.NewEngineAPIClient(config.DockerConfig)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment somehow connecting the dots to the docker daemon load issue might be useful months from now when someone looks at this and asks why we don't construct the client just once.

@@ -259,7 +264,11 @@ func (s *S2IBuilder) Build() error {
return errors.New(buffer.String())
}

glog.V(4).Infof("Creating a new S2I builder with build config: %#v\n", describe.Config(config))
client, err := docker.NewEngineAPIClient(config.DockerConfig)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment somehow connecting the dots to the docker daemon load issue might be useful months from now when someone looks at this and asks why we don't construct the client just once.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the docker daemon load issue is dealt with in the bowels of s2i; this PR is really just the bump. The API changed to require passing in a docker client, hence this diff. I'm not sure that really merits a comment (he says, having just written this explanation here).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry the git diff tricked me into thinking both of these changes were in the same function and thus someone would expect to reuse the same client object.

@bparees
Copy link
Contributor

bparees commented Apr 27, 2017

agree w/ @gabemontero's suggestion, otherwise lgtm.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 27, 2017
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 815fa61

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to 815fa61

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 27, 2017
@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1002/) (Base Commit: b6b92db)

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/261/) (Base Commit: b6b92db) (Extended Tests: core(builds))

@bparees
Copy link
Contributor

bparees commented Apr 27, 2017

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 815fa61

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 28, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/507/) (Base Commit: 03beec0) (Image: devenv-rhel7_6186)

@openshift-bot openshift-bot merged commit ec509c2 into openshift:master Apr 28, 2017
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.

4 participants