Possible bug in pve-manager

mir

Famous Member
Apr 14, 2012
3,568
127
133
Copenhagen, Denmark
Hi all,

I think I might have discovered a bug in the network GUI.

Description:
When I need to make changes to the network configuration through the GUI the node will always come up without connection to the cluster but it can be easily fixed by manually rearrange the configuration file made by the pve-manager.

The reason for the failed cluster membership is because pve-manager insists on placing the vlan configuration before the bond configuration in the config file which causes the activation of the vlan's to fail because at the time of activating the vlan's the bond is unknown. Activating the bond before the vlan's always fixes this.

Example:

Created by pve-manager. Will fail

# network interface settings
auto vlan10
iface vlan10 inet manual
vlan-raw-device bond0

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer2+3
bond_lacp_rate fast

auto vmbr10
iface vmbr10 inet static
address 172.16.1.9
netmask 255.255.255.0
bridge_ports vlan10
bridge_stp off
bridge_fd 0

Working example hand edited by me

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer2+3
bond_lacp_rate fast

auto vlan10
iface vlan10 inet manual
vlan-raw-device bond0

iface vmbr10 inet static
address 172.16.1.9
netmask 255.255.255.0
bridge_ports vlan10
bridge_stp off
bridge_fd 0
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!