Network configuration reference in os-net-config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
New
|
Undecided
|
Unassigned |
Bug Description
- [X] This doc is inaccurate in this way: ovs_extra doesn't work when setting it under ovs_user_bridge section and only works when setting under the specific members (tested in my env with ovs_dpdk_port member) and doesn't work for ovs_user_bridge as suggested ("All of the Common attributes and Open vSwitch attributes can be used with this type"). not sure if this is an issue with the docs or os-net-config itself but it seems docs doesn't matches the actual behavior. using the following configuration (this is only partial snippet):
- type: ovs_user_bridge
name: br-dpdk0
mtu: 9000
use_dhcp: false
ovs_extra:
- set Interface dpdk2 options:
- set Interface dpdk2 options:
members:
- type: ovs_dpdk_port
rx_queue: 1
name: dpdk2
mtu: 9000
members:
- type: interface
name: nic5
- type: ovs_user_bridge
name: br-dpdk1
mtu: 9000
use_dhcp: false
ovs_extra:
- set Interface dpdk3 options:
- set Interface dpdk3 options:
members:
- type: ovs_dpdk_port
rx_queue: 1
name: dpdk3
mtu: 9000
members:
- type: interface
name: nic6
os-net-config fails to create br-dpdk0/1 with no apparent error
[root@compute-0 ~]# os-net-config -c /etc/os-
[root@compute-0 ~]# ip a | grep dpdk
[root@compute-0 ~]#
when changing the configuration to this:
- type: ovs_user_bridge
name: br-dpdk0
mtu: 9000
use_dhcp: false
members:
- type: ovs_dpdk_port
ovs_extra:
- set Interface dpdk2 options:
- set Interface dpdk2 options:
rx_queue: 1
name: dpdk2
mtu: 9000
members:
- type: interface
name: nic5
- type: ovs_user_bridge
name: br-dpdk1
mtu: 9000
use_dhcp: false
members:
- type: ovs_dpdk_port
ovs_extra:
- set Interface dpdk3 options:
- set Interface dpdk3 options:
rx_queue: 1
name: dpdk3
mtu: 9000
members:
- type: interface
name: nic6
bridges are created successfully and ovs_extra is applied:
[root@compute-0 ~]# os-net-config -c /etc/os-
[root@compute-0 ~]# ip a | grep dpdk
61: br-dpdk0: <BROADCAST,
62: br-dpdk1: <BROADCAST,
[root@compute-0 ~]# ovs-vsctl --columns=options list interface dpdk2
options : {dpdk-devargs=
[root@compute-0 ~]# ovs-vsctl --columns=options list interface dpdk3
options : {dpdk-devargs=
additionally the problem goes silently when not setting it under the ovs_dpdk_port which also seems to be an additional issue IMHO
-------
Release: 16.1.0.dev38 on 2021-02-15 20:43:54
SHA: f148994568af574
Source: https:/
URL: https:/
description: | updated |