Skip to content

executor: allow network providers #556

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
Aug 8, 2018
Merged

Conversation

tonistiigi
Copy link
Member

I separated out part of the work done by @kunalkushwaha in #309

This only adds the changes made to the executors and the new network provider interface so should be safe to merge. I will use this for bridge networking in moby integration similar way as the cni PR does.

@kunalkushwaha @AkihiroSuda

@tonistiigi tonistiigi force-pushed the netproviders branch 2 times, most recently from 1f5a929 to 0f85581 Compare August 3, 2018 21:31
if err1 := pw.Close(); err == nil {
err = err1
}
_ = err
Copy link
Member

Choose a reason for hiding this comment

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

?

Copy link
Member Author

Choose a reason for hiding this comment

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

Didn't notice this in original PR. Would you like a log in here. Don't think we can handle this error.

@@ -65,6 +69,10 @@ func New(opt Opt) (executor.Executor, error) {

root := opt.Root

if err := setSubReaper(); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

is this specific to runcexecutor?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed for the new Wait() in runcexecutor to work properly.

forwardIO.release()

defer func() {
go func() {
Copy link
Member

Choose a reason for hiding this comment

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

why goroutine?

Copy link
Member Author

Choose a reason for hiding this comment

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

To return the result back to the solver faster. As this pr introduces new process invocations that were not needed before and therefore makes running a container slower.

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

LGTM but needs rebase

kunalkushwaha and others added 2 commits August 7, 2018 11:51
Signed-off-by: Kunal Kushwaha <[email protected]>
Signed-off-by: Tonis Tiigi <[email protected]>
Signed-off-by: Tonis Tiigi <[email protected]>
@tonistiigi
Copy link
Member Author

@AkihiroSuda ok to merge?

@AkihiroSuda AkihiroSuda merged commit de1c0cc into moby:master Aug 8, 2018
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.

3 participants