"nosync": pveca -l -> Use of uninitialized value in string

mangoo

Member
Feb 4, 2009
198
0
16
wpkg.org
Something happened to my node and it is shown as "nosync" in the master interface.

This is what the master shows:

# pveca -l
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
1 : 192.168.15.67 M S 21 days 02:12 4.10 40% 10% 10%
2 : 192.168.15.68 N S 4 days 15:42 1.27 77% 33% 33%


This is what the affected node shows:

# pveca -l
Use of uninitialized value in string eq at /usr/share/perl5/PVE/Cluster.pm line 184.
Use of uninitialized value in string eq at /usr/share/perl5/PVE/Cluster.pm line 184.
Use of uninitialized value in concatenation (.) or string at /usr/bin/pveca line 128.
local node '' not part of cluster


Line 184 of Cluster.pm is "if ($ni->{ip} ..." below:

my $found = 0;
foreach my $ni (@{$cinfo->{nodes}}) {
if ($ni->{ip} eq $localip) {
$cinfo->{local} = $ni;
$found = 1;
last;
}
}



Anyone has a clue what I need to fix?
 
Please can you post your network config: /etc/network/interfaces

Indeed, this is where I made some changes lately.

This is one of these rare systems which have its network configured in initrd, and network breaks if I have these (already configured) interfaces mentioned in /etc/network/interfaces. Therefore - bond0, vmbr0 - commented out, although up and working.


# cat /etc/network/interfaces
# 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 balance-rr

auto bond0.111
iface bond0.111 inet manual
vlan_raw_device bond0

auto bond0.113
iface bond0.113 inet manual
vlan_raw_device bond0

auto bond0.128
iface bond0.128 inet manual
vlan_raw_device bond0

auto bond0.160
iface bond0.160 inet manual
vlan_raw_device bond0

auto bond0.200
iface bond0.200 inet manual
vlan_raw_device bond0

auto bond0.511
iface bond0.511 inet manual
vlan_raw_device bond0

#auto vmbr0
#iface vmbr0 inet static
# address 192.168.112.74
# netmask 255.255.255.192
# gateway 192.168.112.65
# broadcast 192.168.112.127
# bridge_ports bond0
# bridge_stp off
# bridge_fd 0
# network 192.168.112.64

auto vmbr1
iface vmbr1 inet manual
bridge_ports bond0.113
bridge_stp off
bridge_fd 0

auto vmbr2
iface vmbr2 inet manual
bridge_ports bond0.128
bridge_stp off
bridge_fd 0

auto vmbr3
iface vmbr3 inet manual
bridge_ports bond0.160
bridge_stp off
bridge_fd 0

auto vmbr4
iface vmbr4 inet manual
bridge_ports bond0.200
bridge_stp off
bridge_fd 0

auto vmbr5
iface vmbr5 inet manual
bridge_ports bond0.511
bridge_stp off
bridge_fd 0

auto vmbr6
iface vmbr6 inet manual
bridge_ports bond0.111
bridge_stp off
bridge_fd 0
 
...
# pveca -l
Use of uninitialized value in string eq at /usr/share/perl5/PVE/Cluster.pm line 200.
...

This happens even in this configuration:

auto eth0
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
# address 192.168.0.7
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.250
bridge_ports eth0
bridge_stp off
bridge_fd 0

If you delete the address commented the command have no more problem.
Jan