infix icon indicating copy to clipboard operation
infix copied to clipboard

Etherlike interfaces that appear after initial configuration is created is handled as ethernet interfaces

Open mattiaswal opened this issue 1 year ago • 3 comments

In qemu: Have a startup configuration with only one interface. Change number of interfaces, the new intefaces will now be handled as ethernet interfaces. With this as result when trying to configure the new interface:

Aug 22 13:24:14 infix-00-00-00 klishd: Service process for client was forked: 3549
Aug 22 13:24:14 infix-00-00-00 klishd[3479]: klishd: Service process for client was forked: 3549
Aug 22 13:24:14 infix-00-00-00 klishd-service: Start SysRepo session for "admin"
Aug 22 13:24:14 infix-00-00-00 klishd[3479]: klishd-service: Start SysRepo session for "admin"
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Interface e1.IPv6 no longer relevant for mDNS.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Leaving mDNS multicast group on interface e1.IPv6 with address fe80::ff:fe00:1.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Interface e1.IPv4 no longer relevant for mDNS.
Aug 22 13:27:13 infix-00-00-00 kernel: 8021q: adding VLAN 0 to HW filter on device e1
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Leaving mDNS multicast group on interface e1.IPv4 with address 192.168.50.1.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Withdrawing address record for fe80::ff:fe00:1 on e1.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Withdrawing address record for 192.168.50.1 on e1.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Joining mDNS multicast group on interface e1.IPv4 with address 192.168.50.1.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: New relevant interface e1.IPv4 for mDNS.
Aug 22 13:27:13 infix-00-00-00 avahi-daemon[3493]: Registering new address record for 192.168.50.1 on e1.IPv4.

Aug 22 13:27:13 infix-00-00-00 dagger[3069]: Aborting: /run/net/1/action/init/e2/10-ethtool-aneg.sh failed with exitcode 75
Aug 22 13:27:13 infix-00-00-00 dagger[3069]: Abandoned generation 1
Aug 22 13:27:13 infix-00-00-00 confd[3069]: Failed to apply interface configuration
Aug 22 13:27:13 infix-00-00-00 confd[3069]: [ERR] Oups, error detected in SR_EV_DONE 

Aug 22 13:27:22 infix-00-00-00 klishd-service: Stop SysRepo session for "admin"
Aug 22 13:27:22 infix-00-00-00 klishd[3479]: klishd-service: Stop SysRepo session for "admin"

mattiaswal avatar Aug 22 '24 14:08 mattiaswal

Would be great to support this a bit better. Currently, when I do the same, I just do a factory reset.

troglobit avatar Aug 22 '24 14:08 troglobit

Would be great to support this a bit better. Currently, when I do the same, I just do a factory reset.

Yes, no blocker bug, but irritating.

mattiaswal avatar Aug 22 '24 18:08 mattiaswal

Steps to reproduce

(Presumably)

  1. ./images/qemu.sh -c
  2. Choose TAP networking, 1 port
  3. ./images/qemu.sh
  4. Shutdown
  5. ./images/qemu.sh -c
  6. Choose TAP networking, 2 ports
  7. ./images/qemu.sh
  8. configure set interface e2 leave

Since e2 is not in running, the old confd logic (which did not discriminate between ethernet and etherlike) will kick in, configuring the interface as ethernet. This then triggers ethtool setup, which fails.

Proposal

Use the same iftype resolution logic in confd as in gen-interfaces.

wkz avatar Oct 01 '24 12:10 wkz