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

os-net-command mapping NIC name mis-match

XMLWordPrintable

      The "ip a show" and "os-net-config -i" don't have uniform NIC names: 

       

      [cloud-admin@edpm-compute-0 ~]$ ip a show
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
             valid_lft forever preferred_lft forever
          inet6 ::1/128 scope host 
             valid_lft forever preferred_lft forever
      2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
          link/ether e4:43:4b:5c:96:60 brd ff:ff:ff:ff:ff:ff
          altname enp25s0f0
          inet6 2620:52:0:2592:e643:4bff:fe5c:9660/64 scope global dynamic mngtmpaddr 
             valid_lft 2348724sec preferred_lft 361524sec
          inet6 fe80::e643:4bff:fe5c:9660/64 scope link 
             valid_lft forever preferred_lft forever
      3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
          link/ether e4:43:4b:5c:96:61 brd ff:ff:ff:ff:ff:ff
          altname enp25s0f1
          inet 192.168.122.100/24 brd 192.168.122.255 scope global eno2
             valid_lft forever preferred_lft forever
          inet6 fe80::e643:4bff:fe5c:9661/64 scope link 
             valid_lft forever preferred_lft forever
      6: ens2f0np0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
          link/ether 08:c0:eb:f3:b6:80 brd ff:ff:ff:ff:ff:ff
          altname enp94s0f0np0
      7: ens2f1np1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
          link/ether 08:c0:eb:f3:b6:81 brd ff:ff:ff:ff:ff:ff
          altname enp94s0f1np1
      8: ovs-netdev: <BROADCAST,MULTICAST,PROMISC> mtu 1500 qdisc noop state DOWN group default qlen 1000
          link/ether a2:69:53:2a:b1:01 brd ff:ff:ff:ff:ff:ff
      9: br-link1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
          link/ether e4:43:4b:5c:96:62 brd ff:ff:ff:ff:ff:ff
          inet 172.19.0.100/24 brd 172.19.0.255 scope global br-link1
             valid_lft forever preferred_lft forever
          inet6 fe80::e643:4bff:fe5c:9662/64 scope link 
             valid_lft forever preferred_lft forever
      10: br-link2: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
          link/ether e4:43:4b:5c:96:63 brd ff:ff:ff:ff:ff:ff
          inet6 fe80::e643:4bff:fe5c:9663/64 scope link 
             valid_lft forever preferred_lft forever
      11: vlan202@eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether e4:43:4b:5c:96:61 brd ff:ff:ff:ff:ff:ff
          inet 172.17.0.100/24 brd 172.17.0.255 scope global vlan202
             valid_lft forever preferred_lft forever
          inet6 fe80::e643:4bff:fe5c:9661/64 scope link 
             valid_lft forever preferred_lft forever
      12: vlan203@eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether e4:43:4b:5c:96:61 brd ff:ff:ff:ff:ff:ff
          inet 172.18.0.100/24 brd 172.18.0.255 scope global vlan203
             valid_lft forever preferred_lft forever
          inet6 fe80::e643:4bff:fe5c:9661/64 scope link 
             valid_lft forever preferred_lft forever
      15: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
          link/ether 36:b4:ec:91:17:69 brd ff:ff:ff:ff:ff:ff
      16: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
          link/ether 3e:dd:69:af:58:9c brd ff:ff:ff:ff:ff:ff
      17: podman0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether 02:d0:3a:6a:9d:5f brd ff:ff:ff:ff:ff:ff
          inet 10.255.255.1/24 brd 10.255.255.255 scope global podman0
             valid_lft forever preferred_lft forever
          inet6 fc00:2222:3333::1/64 scope global 
             valid_lft forever preferred_lft forever
          inet6 fe80::d0:3aff:fe6a:9d5f/64 scope link 
             valid_lft forever preferred_lft forever
      18: veth0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master podman0 state UP group default qlen 1000
          link/ether 06:bc:65:cc:22:ab brd ff:ff:ff:ff:ff:ff link-netns netns-0722b4b5-a3ac-78df-7b53-f9a5feb8dd3d
          inet6 fe80::4bc:65ff:fecc:22ab/64 scope link 
             valid_lft forever preferred_lft forever
      [cloud-admin@edpm-compute-0 ~]
      [cloud-admin@edpm-compute-0 ~]$ sudo os-net-config -i

      {"nic4": "eno4", "nic1": "eno1", "nic3": "eno3", "nic2": "eno2"}

      [cloud-admin@edpm-compute-0 ~]
      [cloud-admin@edpm-compute-0 ~]$ sudo vi /etc/os-net-config/
      [cloud-admin@edpm-compute-0 ~]$ sudo vi /etc/os-net-config/config.yaml 
      [cloud-admin@edpm-compute-0 ~]$ ethtool -i ens2f0np0
      driver: mlx5_core
      version: 5.14.0-410.el9.x86_64
      firmware-version: 14.32.2004 (DEL2420110034)
      expansion-rom-version: 
      bus-info: 0000:5e:00.0
      supports-statistics: yes
      supports-test: yes
      supports-eeprom-access: no
      supports-register-dump: no
      supports-priv-flags: yes

              vcandapp@redhat.com Vijayalakshmi Candappa
              vcandapp@redhat.com Vijayalakshmi Candappa
              rhos-dfg-nfv
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: