Mellanox cards are not triggering the DPDK mapping file creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
Fix Released
|
Undecided
|
David Vallee Delisle |
Bug Description
Description of problem:
Since os-net-config skips driverctl run for nics that are already bound, the mellanox cards are not added in /var/lib/
This leads to getting wrong pci address in ifcfg files as get_stored_
returns 'None'.
Version-Release number of selected component (if applicable):
RHOS13z9
os-net-
How reproducible:
Always
Actual results:
$ grep OVS_EXTRA etc/sysconfig/
etc/sysconfig/
etc/sysconfig/
sos_commands/
Bridge "br-data1"
Controller "tcp:127.
fail_mode: secure
Port "phy-br-data1"
Port "br-data1"
Port "dpdk1"
Bridge "br-data2"
[1] In the full os-net-config output, we clearly see it's skipped: Driver (mlx5_core) is already bound to the device
Expected results:
etc/sysconfig/
etc/sysconfig/
https:/
https:/
[1]
~~~
os-net-config -c /etc/os-
[2020/02/06 10:38:26 PM] [INFO] Using config file at: /etc/os-
[2020/02/06 10:38:26 PM] [INFO] Ifcfg net config provider created.
[2020/02/06 10:38:26 PM] [INFO] Not using any mapping file.
[2020/02/06 10:38:27 PM] [INFO] Finding active nics
[2020/02/06 10:38:27 PM] [INFO] p1p2 is an active nic
[2020/02/06 10:38:27 PM] [INFO] p1p1 is an active nic
[2020/02/06 10:38:27 PM] [INFO] p4p1 is an active nic
[2020/02/06 10:38:27 PM] [INFO] p8p1 is an active nic
[2020/02/06 10:38:27 PM] [INFO] lo is not an active nic
[2020/02/06 10:38:27 PM] [INFO] em3 is an embedded active nic
[2020/02/06 10:38:27 PM] [INFO] em2 is an embedded active nic
[2020/02/06 10:38:27 PM] [INFO] em1 is an embedded active nic
[2020/02/06 10:38:27 PM] [INFO] em4 is not an active nic
[2020/02/06 10:38:27 PM] [INFO] No DPDK mapping available in path (/var/lib/
[2020/02/06 10:38:27 PM] [INFO] Active nics are ['em1', 'em2', 'em3', 'p1p1', 'p1p2', 'p4p1', 'p8p1']
[2020/02/06 10:38:27 PM] [INFO] nic6 mapped to: p4p1
[2020/02/06 10:38:27 PM] [INFO] nic4 mapped to: p1p1
[2020/02/06 10:38:27 PM] [INFO] nic7 mapped to: p8p1
[2020/02/06 10:38:27 PM] [INFO] nic5 mapped to: p1p2
[2020/02/06 10:38:27 PM] [INFO] nic1 mapped to: em1
[2020/02/06 10:38:27 PM] [INFO] nic3 mapped to: em3
[2020/02/06 10:38:27 PM] [INFO] nic2 mapped to: em2
[2020/02/06 10:38:27 PM] [INFO] adding interface: em1
[2020/02/06 10:38:27 PM] [INFO] adding custom route for interface: em1
[2020/02/06 10:38:27 PM] [INFO] adding interface: em2
[2020/02/06 10:38:27 PM] [INFO] adding interface: em3
[2020/02/06 10:38:27 PM] [INFO] adding interface: em4
[2020/02/06 10:38:27 PM] [INFO] adding linux bond: bond_api
[2020/02/06 10:38:27 PM] [INFO] adding interface: p1p1
[2020/02/06 10:38:27 PM] [INFO] adding interface: p1p2
[2020/02/06 10:38:27 PM] [INFO] adding vlan: vlan1220
[2020/02/06 10:38:27 PM] [INFO] adding vlan: vlan1260
[2020/02/06 10:38:27 PM] [INFO] adding ovs user bridge: br-tenant
[2020/02/06 10:38:27 PM] [INFO] adding ovs dpdk bond: dpdkbond0
[2020/02/06 10:38:27 PM] [INFO] Driver (mlx5_core) is already bound to the device (p4p1)
[2020/02/06 10:38:27 PM] [INFO] Driver (mlx5_core) is already bound to the device (p8p1)
[2020/02/06 10:38:27 PM] [INFO] applying network configs...
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: vlan1220
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: vlan1260
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: p1p1
[2020/02/06 10:38:27 PM] [INFO] interface p1p1 is up, trying with ip command
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: p1p2
[2020/02/06 10:38:27 PM] [INFO] interface p1p2 is up, trying with ip command
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: em4
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: em1
[2020/02/06 10:38:27 PM] [INFO] interface em1 is up, trying with ip command
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: em3
[2020/02/06 10:38:27 PM] [INFO] interface em3 is up, trying with ip command
[2020/02/06 10:38:27 PM] [INFO] running ifdown on interface: em2
[2020/02/06 10:38:28 PM] [INFO] interface em2 is up, trying with ip command
[2020/02/06 10:38:28 PM] [INFO] running ifdown on interface: dpdkbond0
[2020/02/06 10:38:28 PM] [INFO] running ifdown on interface: bond_api
[2020/02/06 10:38:28 PM] [INFO] running ifdown on bridge: br-tenant
[2020/02/06 10:38:28 PM] [INFO] Restart openvswitch
~~~
Fix proposed to branch: master /review. opendev. org/706429
Review: https:/