Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-9576

fail to enable dpdk in openvswitch

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • CentOS Stream 9
    • openvswitch
    • None
    • None
    • Moderate
    • rhel-sst-security-selinux
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      enable dpdk in openvswitch

      Please provide the package NVR for which bug is seen:

      openvswitch-selinux-extra-policy-1.0-33
      openvswitch-selinux-extra-policy-1.0-34

      How reproducible:

      Always

      Steps to reproduce

      1. 1. install RHEL-9.0.0, install openvswitch2.17-108.el9 and openvswitch-selinux-extra-policy-1.0-34.el9
      2. 2. boot the kernel with options: default_hugepagesz=1G hugepages=24 hugepagesz=1G intel_iommu=on iommu=pt
      3. 3. systemctl start openvswitch
      4. 4. ovs-vsctl set Open_vSwitch . other_config={}
      5. 5. ovs-vsctl set Open_vSwitch . other_config:dpdk-init=true

      Expected results

      the command passed

      Actual results

      the command in step 5 hang with error: [root@wsfd-advnetlab16 ~]# ovs-vsctl set Open_vSwitch . other_config:dpdk-init=true
      2023-09-26T12:32:51Z|00002|jsonrpc|WARN|unix:/var/run/openvswitch/db.sock: send error: Broken pipe
      2023-09-26T12:32:51Z|00003|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection dropped (Broken pipe)

      error in ovs-vswitchd.log:
      2023-09-26T12:33:10.788Z|00013|dpdk|INFO|EAL ARGS: ovs-vswitchd --in-memory -l 0.
      2023-09-26T12:33:10.795Z|00014|dpdk|INFO|EAL: Detected CPU lcores: 48
      2023-09-26T12:33:10.795Z|00015|dpdk|INFO|EAL: Detected NUMA nodes: 2
      2023-09-26T12:33:10.795Z|00016|dpdk|INFO|EAL: Detected static linkage of DPDK
      2023-09-26T12:33:10.823Z|00017|dpdk|INFO|EAL: rte_mem_virt2phy(): cannot open /proc/self/pagemap: Permission denied
      2023-09-26T12:33:10.823Z|00018|dpdk|INFO|EAL: Selected IOVA mode 'VA'
      2023-09-26T12:33:10.823Z|00019|dpdk|WARN|EAL: No available 2048 kB hugepages reported
      2023-09-26T12:33:10.823Z|00020|dpdk|WARN|EAL: No free 2048 kB hugepages reported on node 0
      2023-09-26T12:33:10.823Z|00021|dpdk|WARN|EAL: No free 2048 kB hugepages reported on node 1
      2023-09-26T12:33:10.823Z|00022|dpdk|WARN|EAL: No available 2048 kB hugepages reported
      2023-09-26T12:33:10.990Z|00023|dpdk|ERR|EAL: error allocating rte services array
      2023-09-26T12:33:10.990Z|00024|dpdk|ERR|EAL: rte_service_init() failed
      2023-09-26T12:33:10.990Z|00025|dpdk|EMER|Unable to initialize DPDK: Cannot allocate memory

      [root@wsfd-advnetlab16 ~]# rpm -qa | grep openvswitch
      openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch
      openvswitch2.17-2.17.0-108.el9fdp.x86_64

      the issue only occur if I installed RHEL-9.0.0, and the issue didn't occur if I installed RHEL-9.2.0.
      and the issued didn't exist on openvswitch-selinux-extra-policy-1.0-31.el9fdp

              ovsdpdk-triage ovsdpdk triage
              rhn-support-jishi Jianlin Shi
              Vit Mojzis Vit Mojzis
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: