juju deploy ubuntu # onto a vm or metal, can't repro with lxd
juju ssh ubuntu/0 sudo apt-get install openvswitch-switch -y
juju ssh ubuntu/0 'sudo ovs-vsctl add-br br0; sudo ovs-vsctl add-port br0 dpdk-p0 -- set Interface dpdk-p0 type=dpdk options:dpdk-devargs=0000:01:00.0'
Error output from the add-port command is:
ovs-vsctl: Error detected while setting up 'dpdk-p0': could not open network device dpdk-p0 (Address family not supported by protocol). See ovs-vswitchd log for details.
ovs-vsctl: The default log directory is "/var/log/openvswitch".
You can then query 'ovs-vsctl show' and see:
Bridge br0
Port dpdk-p0 Interface dpdk-p0 type: dpdk options: {dpdk-devargs="0000:01:00.0"} error: "could not open network device dpdk-p0 (Address family not supported by protocol)"
Port br0 Interface br0 type: internal
ovs-vsctl -f csv list Interface | grep 'not supported'
provides a response that could also be alerted on as an active configuration issue rather than alerting on presence of the log entry.
$ sudo ovs-vsctl -f csv list Interface |grep 'not supported'
556792cf-733a-48fd-aeb1-9423c68e354e,[],{},{},[],[],[],[],[],[],[],[],"""could not open network device dpdk-p0 (Address family not supported by protocol)""",{},[],0,0,[],[],[],[],{},[],[],[],[],dpdk-p0,-1,[],"{dpdk-devargs=""0000:01:00.0""}",{},{},{},dpdk
Here's a reproducer:
juju deploy ubuntu # onto a vm or metal, can't repro with lxd dpdk-devargs= 0000:01: 00.0'
juju ssh ubuntu/0 sudo apt-get install openvswitch-switch -y
juju ssh ubuntu/0 'sudo ovs-vsctl add-br br0; sudo ovs-vsctl add-port br0 dpdk-p0 -- set Interface dpdk-p0 type=dpdk options:
Error output from the add-port command is:
ovs-vsctl: Error detected while setting up 'dpdk-p0': could not open network device dpdk-p0 (Address family not supported by protocol). See ovs-vswitchd log for details. openvswitch" .
ovs-vsctl: The default log directory is "/var/log/
You can then query 'ovs-vsctl show' and see:
Bridge br0
Interface dpdk-p0
type: dpdk
options: {dpdk-devargs= "0000:01: 00.0"}
error: "could not open network device dpdk-p0 (Address family not supported by protocol)"
Interface br0
type: internal
Port dpdk-p0
Port br0
ovs-vsctl -f csv list Interface | grep 'not supported'
provides a response that could also be alerted on as an active configuration issue rather than alerting on presence of the log entry.
$ sudo ovs-vsctl -f csv list Interface |grep 'not supported' 733a-48fd- aeb1-9423c68e35 4e,[],{ },{},[] ,[],[], [],[],[ ],[],[] ,"""could not open network device dpdk-p0 (Address family not supported by protocol) """,{}, [],0,0, [],[],[ ],[],{} ,[],[], [],[],dpdk- p0,-1,[ ],"{dpdk- devargs= ""0000: 01:00.0" "}",{}, {},{},dpdk
556792cf-