Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

[kvm] Macvlan network type #1364

Merged
merged 1 commit into from
Nov 27, 2015
Merged

[kvm] Macvlan network type #1364

merged 1 commit into from
Nov 27, 2015

Conversation

jellonek
Copy link
Contributor

@jellonek jellonek commented Sep 4, 2015

This PR adds macvlan network type CNI interface in kvm flavor with use of macvtap interfaces.

@jonboulle
Copy link
Contributor

@steveej review please?

@steveej
Copy link
Contributor

steveej commented Sep 4, 2015

My opinion is that we should start moving the KVM networking code to CNI. As I understand that has been the intention all along and we should not procrastinate it further.

@steveej
Copy link
Contributor

steveej commented Sep 5, 2015

After investigating the current situation and possible short-midterm changes in CNI, I revoke my last comment and will support the current situation in rkt. The code is isolated enough to be refactored out once we've figured out the destination.

@steveej
Copy link
Contributor

steveej commented Sep 5, 2015

I've been able to reproduce the functional test failure locally after pulling your PR. I tracked the error down to the commit that updates the netlink library, it's definitely not the kvm related code that's causing failure here. I'll investigate this issue separately, until then this can't be merged.

@jellonek
Copy link
Contributor Author

jellonek commented Sep 8, 2015

Diff in netlink library is quite big, vishvananda/netlink@ae3e7db...master

@jonboulle
Copy link
Contributor

Assigning to @steveej to investigate the netlink issue - unless you figure it out in the meantime @jellonek

@steveej
Copy link
Contributor

steveej commented Sep 18, 2015

Blocked by containernetworking/cni#61

@steveej
Copy link
Contributor

steveej commented Sep 25, 2015

netlink has been bumped in master. The netlink bump commit has to be removed from this PR before rebasing it into master, but then semaphore should turn green :-)

@iaguis
Copy link
Member

iaguis commented Sep 29, 2015

@jellonek can you please rebase?

@jellonek
Copy link
Contributor Author

Yes, I will, but we have other problem with networking on kvm on which I'm currently working.

@iaguis
Copy link
Member

iaguis commented Sep 29, 2015

Yes, I will, but we have other problem with networking on kvm on which I'm currently working.

OK. Thanks!

@jellonek
Copy link
Contributor Author

Ups, should be rebased, bridge branch sneaked in non intentionally.

@jellonek
Copy link
Contributor Author

Based on #1303

@jonboulle
Copy link
Contributor

Broken build.. please rebase

@jonboulle
Copy link
Contributor

ping?

@jellonek
Copy link
Contributor Author

jellonek commented Oct 6, 2015

This have to wait a while. My priorities for now are networking fix (#1530) and then flannel support.
With these mentioned subject fulfilled - we will test kvm flavored rkt as a kubernetes runtime engine.

In a meanwhile of tests I'll back to macvlan support and entering cleanup.

@jonboulle jonboulle modified the milestones: v0.10.0, v0.9.0 Oct 6, 2015
@jonboulle jonboulle modified the milestones: v0.11.0, v0.10.0 Oct 20, 2015
@alban alban modified the milestones: v0.12.0, v0.11.0 Nov 13, 2015
@alban alban modified the milestones: v0.13.0, v0.12.0 Nov 26, 2015
@@ -368,6 +447,16 @@ func (an activeNet) GuestIP() net.IP {
return an.runtime.IP
}
func (an activeNet) IfName() string {
if an.conf.Type == "macvlan" {
// macvtap device passed as parameter to lkvm binary have different
// kind of name, path to /dev/tunN made with N as link index
Copy link
Contributor

Choose a reason for hiding this comment

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

s/tun/tap

On kvm flavor - macvlan is supported through macvtap interface.
@steveej
Copy link
Contributor

steveej commented Nov 27, 2015

LGTM now

@alban alban modified the milestones: v0.12.0, v0.13.0 Nov 27, 2015
alban added a commit that referenced this pull request Nov 27, 2015
@alban alban merged commit ab1a50e into rkt:master Nov 27, 2015
@jellonek jellonek deleted the networking branch November 27, 2015 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants