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

Unable to match the mac address with appropriate interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhos-18.0.8
    • None
    • os-net-config
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    •  os-net-config-18.0.1-18.0.20250213074735.22b9a65.el9osttrunk
    • rhos-dfg-nfv
    • None
    • NFV 002, NFV 003, NFV 004, NFV 005
    • 4
    • Moderate

      Rerunning os-net-config -i on a setup with linux bonds throws the error mac f8:f2:1e:03:a5:c2 not found in available nics

      [root@compute-0 cloud-admin]# os-net-config -i 2024-12-20 11:53:46.247 ERROR os_net_config.objects.mapped_nics mac f8:f2:1e:03:a5:c2 not found in available nics (eno1, eno2, eno3, eno4, enp4s0f0np0, enp4s0f1np1, enp6s0f0, enp6s0f1, enp6s0f2, enp6s0f3, enp130s0f0, enp130s0f1, enp130s0f2, enp130s0f3) 2024-12-20 11:53:46.289 WARNING os_net_config.objects.mapped_nics no mapping for interface enp130s0f1 because nic10 is mapped to enp6s0f3 {"nic1": "eno1", "nic10": "enp6s0f3", "nic11": "enp4s0f0np0", "nic12": "enp4s0f1np1", "nic2": "eno2", "nic3": "enp130s0f0", "nic5": "enp130s0f2", "nic6": "enp130s0f3", "nic7": "enp6s0f0", "nic8": "enp6s0f1", "nic9": "enp6s0f2"} [root@compute-0 cloud-admin]#

       

      How to Fix?

      In file  os_net_config/common.py

      Instead of 
              with open(get_dev_path(name, 'bonding_slave/perm_hwaddr'),

      need to change to 
              with open(get_dev_path(name, '_bonding_slave/perm_hwaddr'),

       

              arn1@redhat.com Abhiram R N
              arn1@redhat.com Abhiram R N
              rhos-dfg-nfv
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: