Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-19556

configuring an ovs_bond with VFs fails

XMLWordPrintable

    • Important

      To Reproduce Steps to reproduce the behavior:

      template

      ---
      network_config:
      - type: sriov_pf
        name: nic2
        numvfs: 6
        mtu: 9000
        use_dhcp: false
        promisc: true
        drivers_autoprobe: true
      - type: sriov_pf
        name: nic3
        numvfs: 6
        mtu: 9000
        use_dhcp: false
        promisc: true
        drivers_autoprobe: true
      - type: ovs_bridge
        name: br-ex
        use_dhcp: false
        members:
          - type: ovs_bond
            name: ovsbond0
            use_dhcp: false
            ovs_options: "bond_mode=active-backup"
            members:
              - type: sriov_vf
                device: nic2
                vfid: 0
                primary: true
              - type: sriov_vf
                device: nic3
                vfid: 0 

      Apply the above template using os-net-config

      os-net-config -c <config.yaml> -p ifcfg -d
      

      Received Error

      2025-08-29 19:29:46.740 INFO os_net_config.utils.configure_sriov_vfs Configuring VFs now
      2025-08-29 19:29:46.744 INFO os_net_config.sriov_config.configure_sriov_vf eno2: Configuring settings for VF: 0 VF name: eno2v0
      2025-08-29 19:29:46.745 ERROR os_net_config.main ***Failed to configure with ifcfg provider***
      'pci_address'
      2025-08-29 19:29:46.746 ERROR os_net_config.common.log_exceptions Traceback (most recent call last):
        File "/usr/local/bin/os-net-config", line 10, in <module>
          sys.exit(main())
        File "/usr/local/lib/python3.9/site-packages/os_net_config/cli.py", line 422, in main
          utils.configure_sriov_vfs()
        File "/usr/local/lib/python3.9/site-packages/os_net_config/utils.py", line 610, in configure_sriov_vfs
          sriov_config.configure_sriov_vf()
        File "/usr/local/lib/python3.9/site-packages/os_net_config/sriov_config.py", line 895, in configure_sriov_vf
          common.set_driverctl_override(item['pci_address'],
      KeyError: 'pci_address'
      NoneType: None
      Traceback (most recent call last):
        File "/usr/local/bin/os-net-config", line 10, in <module>
          sys.exit(main())
        File "/usr/local/lib/python3.9/site-packages/os_net_config/cli.py", line 422, in main
          utils.configure_sriov_vfs()
        File "/usr/local/lib/python3.9/site-packages/os_net_config/utils.py", line 610, in configure_sriov_vfs
          sriov_config.configure_sriov_vf()
        File "/usr/local/lib/python3.9/site-packages/os_net_config/sriov_config.py", line 895, in configure_sriov_vf
          common.set_driverctl_override(item['pci_address'],
      KeyError: 'pci_address'

       

      Expected behavior

      The ovs_bond and the bridges shall be created

      Device Info (please complete the following information):

      • Hardware Specs: x86 nics
      • OS Version: Red Hat Enterprise Linux release 9.4 (Plow)

       

              ksundara@redhat.com Karthik Sundaravel
              ksundara@redhat.com Karthik Sundaravel
              rhos-dfg-nfv
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: