Hi, I am going through the 8.4.1 to 9.1.x upgrade process and have come across an issue or two with the
First, as a test run, I executed the command with defaults to see what will happen:
First question: are those "uninitialized value" messages safe to ignore?
I didn't like the interface naming scheme, so I tried the following (after removing the interfaces.new and *.link files). The tool gave me the same pattern matching errors but seemingly completed the process.
Now for the 2nd port on the same network controller (it's a 4-port Intel E810-XXVDA4). The last line throws (what I presume to be) an error message about a "wrong interface type on slave nic2p0".
In contrast, when I tried another naming scheme (
Second question: do I play it safe and stick with
Thank you in advance.
Output of
Output of
Output of
pve-network-interface-pinning tool. I saw another thread with similar issues, but there was no discussion about the pattern matching errors.First, as a test run, I executed the command with defaults to see what will happen:
Bash:
# pve-network-interface-pinning generate
This will generate name pinning configuration for all interfaces - continue (y/N)?
y
Name for link 'eno8303' (enp99s0f0) will change to 'nic0'
Name for link 'eno8403' (enp99s0f1) will change to 'nic1'
Name for link 'ens3f0' (enp100s0f0) will change to 'nic2'
Name for link 'ens3f1' (enp100s0f1) will change to 'nic3'
Name for link 'ens3f2' (enp100s0f2) will change to 'nic4'
Name for link 'ens3f3' (enp100s0f3) will change to 'nic5'
Name for link 'eno12399np0' (enp1s0f0np0) will change to 'nic6'
Name for link 'eno12409np1' (enp1s0f1np1) will change to 'nic7'
Name for link 'idrac' will change to 'nic8'
Name for link 'eno12419np2' (enp1s0f2np2) will change to 'nic9'
Name for link 'eno12429np3' (enp1s0f3np3) will change to 'nic10'
Generating link files
Successfully generated .link files in '/usr/local/lib/systemd/network/'
Updating /etc/pve/nodes/pve-04/host.fw.new
Updating /etc/network/interfaces.new
Use of uninitialized value $iface_name in pattern match (m//) at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 273.
Use of uninitialized value $iface_name in hash element at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 280.
Use of uninitialized value $iface_name in pattern match (m//) at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 273.
Use of uninitialized value $iface_name in hash element at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 280.
Use of uninitialized value $iface_name in pattern match (m//) at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 273.
Use of uninitialized value $iface_name in hash element at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 280.
Use of uninitialized value $iface_name in pattern match (m//) at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 273.
Use of uninitialized value $iface_name in hash element at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 280.
Updating /etc/pve/sdn/controllers.cfg
Successfully updated Proxmox VE configuration files.
Please reboot to apply the changes to your configuration
First question: are those "uninitialized value" messages safe to ignore?
I didn't like the interface naming scheme, so I tried the following (after removing the interfaces.new and *.link files). The tool gave me the same pattern matching errors but seemingly completed the process.
Bash:
# pve-network-interface-pinning generate --interface eno12399np0 --target-name nic2p0
This will generate name pinning configuration for the interface 'eno12399np0' - continue (y/N)?
y
Name for link 'eno12399np0' (enp1s0f0np0) will change to 'nic2p0'
Generating link files
Successfully generated .link files in '/usr/local/lib/systemd/network/'
Updating /etc/pve/nodes/pve-04/host.fw.new
Updating /etc/network/interfaces.new
Use of uninitialized value $iface_name in pattern match (m//) at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 273.
[...] trimmed [...]
Updating /etc/pve/sdn/controllers.cfg
Successfully updated Proxmox VE configuration files.
Please reboot to apply the changes to your configuration
Now for the 2nd port on the same network controller (it's a 4-port Intel E810-XXVDA4). The last line throws (what I presume to be) an error message about a "wrong interface type on slave nic2p0".
Bash:
# pve-network-interface-pinning generate --interface eno12409np1 --target-name nic2p1
This will generate name pinning configuration for the interface 'eno12409np1' - continue (y/N)?
y
Name for link 'eno12409np1' (enp1s0f1np1) will change to 'nic2p1'
Generating link files
Successfully generated .link files in '/usr/local/lib/systemd/network/'
Updating /etc/pve/nodes/pve-04/host.fw.new
Updating /etc/network/interfaces.new
Use of uninitialized value $iface_name in pattern match (m//) at /usr/share/perl5/PVE/CLI/pve_network_interface_pinning.pm line 273.
[...] trimmed [...]
bond 'bond1' - wrong interface type on slave 'nic2p0' ('unknown' != 'eth or bond')
In contrast, when I tried another naming scheme (
pve-network-interface-pinning generate --interface eno12399np0 --target-name en2p0) I didn't receive the "wrong interface type" message. I suspect PVE is looking for a specific interface prefix (en|eth) but I haven't gone through the source code to confirm this.Second question: do I play it safe and stick with
en* prefixes?Thank you in advance.
Output of
udevadm test-builtin net_id /sys/class/net/eno12409np1
Bash:
Trying to open "/etc/systemd/hwdb/hwdb.bin"...
Trying to open "/etc/udev/hwdb.bin"...
Trying to open "/usr/lib/systemd/hwdb/hwdb.bin"...
Trying to open "/lib/systemd/hwdb/hwdb.bin"...
Trying to open "/lib/udev/hwdb.bin"...
=== trie on-disk ===
tool version: 252
file size: 13017119 bytes
header size 80 bytes
strings 2728567 bytes
nodes 10288472 bytes
Loading kernel module index.
Found cgroup2 on /sys/fs/cgroup/, full unified hierarchy
Found container virtualization none.
Using default interface naming scheme 'v252'.
Parsed configuration file "/usr/lib/systemd/network/99-default.link"
Parsed configuration file "/usr/lib/systemd/network/73-usb-net-by-mac.link"
Created link configuration context.
ID_NET_NAMING_SCHEME=v252
eno12409np1: addr_assign_type=3, MAC address is not permanent.
sd-device: Failed to chase symlinks in "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.1/of_node".
sd-device: Failed to chase symlinks in "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.1/physfn".
0000:01:00.1: acpi_index=12409
eno12409np1: dev_port=0
eno12409np1: Onboard index identifier: index=12409 phys_port=p1 dev_port=0 → o12409np1
eno12409np1: Onboard label from PCI device: Integrated NIC 1 Port 2-1
eno12409np1: Parsing slot information from PCI device sysname "0000:01:00.1": success
eno12409np1: dev_port=0
eno12409np1: PCI path identifier: domain=0 bus=1 slot=0 func=1 phys_port=p1 dev_port=0 → p1s0f1np1
ID_NET_NAME_ONBOARD=eno12409np1
ID_NET_LABEL_ONBOARD=Integrated NIC 1 Port 2-1
ID_NET_NAME_PATH=enp1s0f1np1
Unload kernel module index.
Unloaded link configuration context.
Output of
udevadm test-builtin net_setup_link /sys/class/net/eno12409np1
Bash:
Trying to open "/etc/systemd/hwdb/hwdb.bin"...
Trying to open "/etc/udev/hwdb.bin"...
Trying to open "/usr/lib/systemd/hwdb/hwdb.bin"...
Trying to open "/lib/systemd/hwdb/hwdb.bin"...
Trying to open "/lib/udev/hwdb.bin"...
=== trie on-disk ===
tool version: 252
file size: 13017119 bytes
header size 80 bytes
strings 2728567 bytes
nodes 10288472 bytes
Loading kernel module index.
Found cgroup2 on /sys/fs/cgroup/, full unified hierarchy
Found container virtualization none.
Using default interface naming scheme 'v252'.
Parsed configuration file "/usr/lib/systemd/network/99-default.link"
Parsed configuration file "/usr/lib/systemd/network/73-usb-net-by-mac.link"
Created link configuration context.
eno12409np1: Device has name_assign_type=4
eno12409np1: Device has addr_assign_type=3
ID_NET_DRIVER=ice
eno12409np1: Config file /usr/lib/systemd/network/99-default.link is applied
eno12409np1: Using static MAC address.
eno12409np1: Policy *keep*: keeping existing userspace name
ID_NET_LINK_FILE=/usr/lib/systemd/network/99-default.link
ID_NET_NAME=eno12409np1
Unload kernel module index.
Unloaded link configuration context.
Output of
pveversion:
Code:
pve-manager/8.4.14/b502d23c55afcba1 (running kernel: 6.8.12-17-pve)