NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
90 stars 6 forks source link

Migration: can't start PPPoE interface #493

Closed gsanchietti closed 2 months ago

gsanchietti commented 2 months ago

Description

After migrating from NethServer 7, if the name of the PPPoE interface is too long, it cannot be started in NethSecurity 8.

Steps to reproduce

  1. On NethServer 7, configure a PPPoE and name it "MYVERYLONGNAME"
  2. Migrate from NS 7 to NethSecurity 8.
  3. Ensure the PPPoE interface name exceeds the maximum allowed characters (15).
  4. Attempt to start the PPPoE interface in NethSecurity 8.

Expected behavior

The PPPoE interface should start successfully, regardless of the length of its name, without triggering any error messages.

Actual behavior

The PPPoE interface fails to start due to the name exceeding the maximum allowed characters (15), resulting in an error message.

The original interface name: "MYVERYLONGNAME" becomes pppoe-MYVERYLONGNAME. Extract from log:

May  7 08:14:53 fw netifd: Cannot set device name: 'pppoe-MYVERYLONGNAME' is longer than max size 15
...
May  7 12:03:57 fw kernel: [15027.034675] pppoe-MYVER: renamed from ppp0

Luci also shows an error on the interface page, maximum allowed characters: 15.

Components

NethSecurity version: 8-23.05.3-ns.0.0.3-rc1-80-g615c01e

gsanchietti commented 2 months ago

Testing image: 23.05.3-ns.0.0.5-rc2-26-gb3db7a3

gsanchietti commented 2 months ago

Verified by @francio87