C
cirroz
Guest
There is a bug inside /usr/sbin/vzifup-post
When you restart network with service networking restart there is a bug with wrong usage of $IFACE variable
Here are the fixes
1.
Link.
When you restart network with service networking restart there is a bug with wrong usage of $IFACE variable
Here are the fixes
1.
2.*** /etc/network/if-up.d/vzifup-post.original 2013-09-16 16:46:01.000000000 +0400
--- /etc/network/if-up.d/vzifup-post 2013-09-16 16:45:40.000000000 +0400
***************
*** 1,3 ****
--- 1,6 ----
#!/bin/sh
+ # Fix bug - grep: unrecognized option '--all'
+ [ "$ADDRFAM" = "inet" ] || [ "$ADDRFAM" = "inet6" ] || exit 0
+
exec /usr/sbin/vzifup-post "$IFACE"
*** /usr/sbin/vzifup-post.original 2013-09-16 16:36:00.000000000 +0400
--- /usr/sbin/vzifup-post 2013-09-16 16:46:12.000000000 +0400
***************
*** 36,42 ****
# Check if a device name given is in the list returned by vzgetnetdev
# Indeed we do not want to add arp entries for e.g. 'lo'
! echo "${NETDEVICES}" | grep -qw "${DEV}" || exit 0
NETDEVICES="${DEV}"
update_arp
--- 36,42 ----
# Check if a device name given is in the list returned by vzgetnetdev
# Indeed we do not want to add arp entries for e.g. 'lo'
! echo "${NETDEVICES}" | grep -qw -- "${DEV}" || exit 0
NETDEVICES="${DEV}"
update_arp
# pveversion -v
proxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-23-pve)
pve-manager: 3.1-4 (running version: 3.1-4/f6816604)
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-19-pve: 2.6.32-96
pve-kernel-2.6.32-10-pve: 2.6.32-63
pve-kernel-2.6.32-22-pve: 2.6.32-107
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-7
qemu-server: 3.1-1
pve-firmware: 1.0-23
libpve-common-perl: 3.0-6
libpve-access-control: 3.0-6
libpve-storage-perl: 3.0-10
pve-libspice-server1: 0.12.4-1
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.0-2
Link.
Last edited by a moderator: