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

Support vlan-filtering configuration #171

Closed
qinqon opened this issue Sep 17, 2019 · 5 comments · Fixed by #793
Closed

Support vlan-filtering configuration #171

qinqon opened this issue Sep 17, 2019 · 5 comments · Fixed by #793
Assignees
Labels
good-first-issue Identifies an issue that has been specifically created or selected for first-time contributors. help wanted Identifies an issue that has been specifically created or selected for new contributors. kind/bug kind/enhancement priority/high

Comments

@qinqon
Copy link
Member

qinqon commented Sep 17, 2019

Starting with version 0.3, nmstate allows users to configure vlan-filtering options, e.g.:

interfaces:
  - name: linux-br0
    type: linux-bridge
    state: up
    bridge:
      port:
        - name: eth1
          vlan:
            mode: trunk
            trunk-tags:
            - id: 101
            - id-range:
                min: 500
                max: 599
            tag: 100
            enable-native: true

kubernetes-nmstate however handles the vlan-filtering configuration with a workaround script which makes sure to enable vlan-filtering by default and treat all bridge ports as trunks.

In order to introduce support for this feature while maintaining backwards compatibility, we should:

  • Drop the custom script.
  • In case no VLAN configuration is passed by the user, we should fill in defaults matching the behaviour of the script.

Original description

Until we don't use NetworkManager to set vlan filtering (with or without nmstate) the linux bridge vlan_filtering flag is only set after desiredState is processed, so after reboot the flag is not going to be there until kubernetes-nmstate is not up and NodeNetworkState processed.

@jasinner
Copy link

Would this also allow us to remove hostNetworking SCC in OpenShift?

@qinqon
Copy link
Member Author

qinqon commented Jun 17, 2020

@jasinner we think so, but it will take time, also I think the latest nmstate do some stuff out of NetworkManager dbus @phoracek do you remember what was it ?

@phoracek
Copy link
Member

Underlying nmstate component we use to configure host networking indeed uses D-Bus to talk to NetworkManager, but it is not meant to be limited to it. hostNetworking will be always needed unless nmstate switches to "pure D-Bus" which I doubt. There will be always some additional work needed to do that NetworkManager may not support.

tl;dr: Even after we start using nmstate to set vlan_filtering, we will need to keep hostNetworking.

@phoracek phoracek added the good-first-issue Identifies an issue that has been specifically created or selected for first-time contributors. label Nov 27, 2020
@phoracek phoracek changed the title Use nmstate/NetworkManager to set vlan_filtering linux bridge options. Support vlan-filtering configuration Nov 27, 2020
@phoracek phoracek added help wanted Identifies an issue that has been specifically created or selected for new contributors. kind/enhancement labels Nov 27, 2020
bcrochet pushed a commit to bcrochet/kubernetes-nmstate that referenced this issue Dec 3, 2020
[CARRY] Make operator bundle for OLM
@qinqon
Copy link
Member Author

qinqon commented Jul 14, 2021

We plan on implementing nmstate vlan-filtering level.

@phoracek
Copy link
Member

/assign @rhrazdil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Identifies an issue that has been specifically created or selected for first-time contributors. help wanted Identifies an issue that has been specifically created or selected for new contributors. kind/bug kind/enhancement priority/high
Projects
None yet
4 participants