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

Network interface not added to contivVlanBridge in L2 mode #1108

Open
basvandenbrink opened this issue Jan 5, 2018 · 4 comments
Open

Network interface not added to contivVlanBridge in L2 mode #1108

basvandenbrink opened this issue Jan 5, 2018 · 4 comments
Labels

Comments

@basvandenbrink
Copy link

Description

No pod connectivity after Contiv installation, because the phyical network interface is not added to the Open vSwitch bridge.

Expected Behavior

ovs-vsctl show shows virtual interfaces and the physical interface specified during installation. This was the case with contiv 1.1.7.

Observed Behavior

ovs-vsctl show only shows virtual interfaces.

Steps to Reproduce (for bugs)

  1. sudo kubeadm init --kubernetes-version v1.8.4 --apiserver-advertise-address=10.100.0.1
  2. Join other nodes
  3. ./install/k8s/install.sh -n 10.100.0.1 -v nic1
  4. netctl net rm contivh1
  5. netctl global set --fwd-mode bridge
  6. netctl net create -t default -n data --subnet=20.1.0.0/16 --gateway 20.1.1.254 --encap vlan -p 8 default-net
  7. Check contivVlanBridge on nodes: ovs-vsctl show

Your Environment

  • netctl version: 1.2.0
  • Orchestrator version (e.g. kubernetes, mesos, swarm): kubernetes 1.8.4
  • Operating System and version: CentOS 7
@basvandenbrink
Copy link
Author

basvandenbrink commented Jan 8, 2018

I think this commit is the cause. More specifically, this and this line.

@magic7s
Copy link

magic7s commented Jan 15, 2018

@basvandenbrink Is there a workaround that you found?

@tiewei
Copy link
Contributor

tiewei commented Jan 16, 2018

I think this is using VLAN mode, right, you need to add VLAN_IF, to be more specifically, you need env vars for netplugin CONTIV_NETPLUGIN_VLAN_UPLINKS as "a comma-delimited list of netplugin uplink interfaces", and make sure you are using VLAN mode and bridge mode.

@basvandenbrink
Copy link
Author

@magic7s Currently, I reverted to 1.1.7, but you can execute the following command to manually add the interface to the bridge: ovs-vsctl add-port contivVlanBridge <vlan_interface>.

@tiewei Yeah, I think the installer should have done that. Maybe, it is an issue of the installer and not the plugin itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants