Here's a reproducer:

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


** Also affects: charm-neutron-openvswitch
   Importance: Undecided
       Status: New

** Also affects: charm-neutron-gateway
   Importance: Undecided
       Status: New

** Also affects: charm-ovn-chassis
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1912847

Title:
  ovs-vswitchd should consider lack of DPDK support fatal

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-neutron-gateway/+bug/1912847/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to