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

Allow communication over internal macvlan network with config-from in swarm #39393

Closed
wants to merge 1 commit into from
Closed

Conversation

lemrouch
Copy link
Contributor

"fixes #39392"

- What I did
Macvlan internal network is able to interconnect containers and other systems on different nodes in VLAN.
Internal network should not change container's default gateway.

- How I did it
Macvlan is no longer using just dummy interface but the one from config-only network

- How to verify it
Create two config-only networks on two nodes and container on each node.
Containers should be able to reach each other.

- Description for the changelog
Allow communication over internal macvlan network with config-from in swarm

To allow communication over internal macvlan network with config-from in swarm:
1) network has to override it's Internal value because it's not possible
 to combine --internal and --config-only parameters
2) don't change default gateway for internal macvlan network
3) network must not use dummy interface but the one from --config-from network

Signed-off-by: Pavel Matěja <pavel@verotel.cz>
@GordonTheTurtle GordonTheTurtle added the dco/no Automatically set by a bot when one of the commits lacks proper signature label Jun 21, 2019
@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "master" git@github.com:lemrouch/moby.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842358452600
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@GordonTheTurtle GordonTheTurtle added status/0-triage and removed dco/no Automatically set by a bot when one of the commits lacks proper signature labels Jun 21, 2019
@thaJeztah
Copy link
Member

@lemrouch looks like these changes are all in files that are part of a dependency that's vendored; could you open a pull request in the libnetwork repository with these changes? The upstream files can be found in https://github.com/docker/libnetwork, and after those changes are merged there, we can vendor them in this repository with a "vendor bump" pull request; similar to #39246

@lemrouch
Copy link
Contributor Author

The code is much more buggy than expected.
I'll create several PRs in libnetwork.

@lemrouch lemrouch closed this Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Containers can't communicate over macvlan internal network in swarm
3 participants