This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2314207 - Failing to configure ovs-dpdk with nicpartitioning when using Network manager + nmstate
Summary: Failing to configure ovs-dpdk with nicpartitioning when using Network manager...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: os-net-config
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: z4
: ---
Assignee: Karthik Sundaravel
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks: 1645689
TreeView+ depends on / blocked
 
Reported: 2024-09-23 12:30 UTC by Miguel Angel Nieto
Modified: 2025-01-06 03:32 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-12-10 15:48:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github os-net-config os-net-config pull 97 0 None closed DNM - Perform DPDK binding after VF configuration 2025-01-06 07:16:36 UTC
Github os-net-config os-net-config pull 98 0 None Merged SR-IOV configurations are made one after other for nmstate provider 2025-01-06 07:16:37 UTC
Red Hat Issue Tracker   OSP-32845 0 None None None 2025-01-06 03:32:45 UTC
Red Hat Issue Tracker OSP-33175 0 None None None 2024-12-10 15:50:50 UTC
Red Hat Issue Tracker RHEL-59977 0 None None None 2024-09-25 07:19:25 UTC

Internal Links: 1645689

Description Miguel Angel Nieto 2024-09-23 12:30:03 UTC
Description of problem:
Failing to configure ovs-dpdk with nicpartitioning when using Network manager + nmstate

For those interfaces, it should be executed the following command in order to be configured in a ovs bridge, but apparently it is not executed or it is not taking efect. I have only tested with intel nics, i will test later on with mellanox
set-override <device> vfio-pci


Config:
- type: sriov_pf
  name: nic7
  mtu: 9000
  numvfs: 5
  use_dhcp: false
  defroute: false
  nm_controlled: true
  hotplug: true
  promisc: false

- type: sriov_pf
  name: nic8
  mtu: 9000
  numvfs: 5
  use_dhcp: false
  defroute: false
  nm_controlled: true
  hotplug: true
  promisc: false

- type: ovs_user_bridge
  name: br-link0
  use_dhcp: false
  mtu: 9000
  ovs_extra: "set port br-link0 tag=656"
  addresses:
  - ip_netmask: 10.20.156.119/24
  members:
  - type: ovs_dpdk_bond
    name: dpdkbond0
    mtu: 9000
    rx_queue: 1
    members:
    - type: ovs_dpdk_port
      name: dpdk0
      members:
      - type: sriov_vf
        device: nic7
        vfid: 3
    - type: ovs_dpdk_port
      name: dpdk1
      members:
      - type: sriov_vf
        device: nic8
        vfid: 3

Error:
Interface dpdk0
                type: dpdk
                options: {dpdk-devargs="0000:05:02.3", n_rxq="1"}
                error: "Error attaching device '0000:05:02.3' to DPDK"
            Interface dpdk1
                type: dpdk
                options: {dpdk-devargs="0000:05:06.3", n_rxq="1"}
                error: "Error attaching device '0000:05:06.3' to DPDK"

logs:
2024-09-23T10:01:51.129Z|00706|dpdk|ERR|EAL: Driver cannot attach the device (0000:05:02.3)
2024-09-23T10:01:51.129Z|00707|dpdk|ERR|EAL: Failed to attach device on primary process
2024-09-23T10:01:51.129Z|00708|netdev_dpdk|WARN|Error attaching device ‘0000:05:02.3’ to DPDK
2024-09-23T10:01:51.129Z|00709|netdev|WARN|dpdk0: could not set configuration (Invalid argument)
2024-09-23T10:01:51.129Z|00710|dpdk|ERR|Invalid port_id=1024
2024-09-23T10:01:51.152Z|00711|dpdk|ERR|EAL: Driver cannot attach the device (0000:05:06.3)
2024-09-23T10:01:51.152Z|00712|dpdk|ERR|EAL: Failed to attach device on primary process
2024-09-23T10:01:51.152Z|00713|netdev_dpdk|WARN|Error attaching device ‘0000:05:06.3’ to DPDK
2024-09-23T10:01:51.152Z|00714|netdev|WARN|dpdk1: could not set configuration (Invalid argument)
2024-09-23T10:01:51.152Z|00715|dpdk|ERR|Invalid port_id=1024


Version-Release number of selected component (if applicable):
RHOS-17.1-RHEL-9-20240909.n.1
Waiting for a puddle with os-net-config update, but as not available yet, i am updating os-net-config from the following repo
git clone https://github.com/os-net-config/os-net-config.git
cd /home/stack/images/os-net-config
git fetch -v --all
git switch -c stable/wallaby origin/stable/wallaby


How reproducible:
Deploy nic partitioning config with ovs-dpdk using vfs


Actual results:
os-net-config does not configure properly ovs-dpdk bridge with vfs


Expected results:
os-net-config should configure ovs-dpdk bridge with vfs


Additional info:


Note You need to log in before you can comment on or make changes to this bug.