networkop / cx

Containerised Cumulus VX
19 stars 4 forks source link

netlink: cannot get ifname for index 32: operation failed with 'No such device' #11

Closed Sispheor closed 6 months ago

Sispheor commented 6 months ago

Hi, just testing this tool.

Here is what is get,:

Waiting for 1 interfaces to be connected
Connected 0 interfaces out of 1
Connected all interfaces
warning: syslogs: [Errno 2] No such file or directory
warning: netlink: ip link show: netlink: cannot get ifname for index 32: operation failed with 'No such device' (19)
warning: netlink: ip link show: netlink: cannot get ifname for index 36: operation failed with 'No such device' (19)

Ip config:

root@h1:~# ip a
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
31: eth0@if32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:14:14:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.20.20.2/24 brd 172.20.20.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 2001:172:20:20::2/64 scope global nodad 
       valid_lft forever preferred_lft forever
    inet6 fe80::42:acff:fe14:1402/64 scope link 
       valid_lft forever preferred_lft forever
35: eth1@if36: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether aa:c1:ab:dc:05:fc brd ff:ff:ff:ff:ff:ff link-netnsid 1
    inet 12.12.12.2/24 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a8c1:abff:fedc:5fc/64 scope link 
       valid_lft forever preferred_lft forever

The IP on eth1 is set anyway, it's just a warning. So not a big deal at all. It was just to try to understand why we have this warning.

Thanks a lot for your work here !

networkop commented 6 months ago

most likely the error comes from ifreload. I'm not sure what it complains about, might make sense to re-run it and check the /etc/network/interfaces file

Sispheor commented 6 months ago

Just a warning. I close this one.