bug in the new vzctl 3.0.23-1pve7

makcumka

New Member
Jun 10, 2009
9
0
1
after upgrade from 3.0.23-1pve6 to 3.0.23-1pve7 i've got errors on start/stop openvz containers and lost all networking in them.

looking at errors when starting containers seems an errors in /etc/vz/dists/scripts/debian-add_ip.sh:

code of function get_all_aliasid() and function get_free_aliasid() broken

Code:
IFNUMLIST=$(grep -e "^auto ${VENET_DEV}:.*$" 2>/dev/null
should be replaced with
Code:
IFNUMLIST=$(grep -e "^auto ${VENET_DEV}:.*$" 2>/dev/null [B]\[/B]

Code:
cho "${IFNUMLIST}" | grep -q -E "^${IFNUM}$" 2>/dev/null ||
should be replaced with
Code:
echo "${IFNUMLIST}" | grep -q -E "^${IFNUM}$" 2>/dev/null || [B]\[/B]

may be other scripts also broken...
 
after upgrade from 3.0.23-1pve6 to 3.0.23-1pve7 i've got errors on start/stop openvz containers and lost all networking in them.

looking at errors when starting containers seems an errors in /etc/vz/dists/scripts/debian-add_ip.sh:

code of function get_all_aliasid() and function get_free_aliasid() broken

Code:
IFNUMLIST=$(grep -e "^auto ${VENET_DEV}:.*$" 2>/dev/null
should be replaced with
Code:
IFNUMLIST=$(grep -e "^auto ${VENET_DEV}:.*$" 2>/dev/null [B]\[/B]

I can confirm that bug. Will upload a fix.

Code:
cho "${IFNUMLIST}" | grep -q -E "^${IFNUM}$" 2>/dev/null ||
should be replaced with
Code:
echo "${IFNUMLIST}" | grep -q -E "^${IFNUM}$" 2>/dev/null || [B]\[/B]

Why is that needed?

may be other scripts also broken...

Why do you think so?
 
comparsion files from 3.0.23-1pve6 to 3.0.23-1pve show that only these files differ:
/etc/bash_completion.d/vzctl
/etc/vz/dists/scripts/debian-add_ip.sh
/usr/lib/libvzctl-0.0.2.so
/usr/lib/libvzctl.so
/usr/sbin/vzctl
/usr/share/doc/vzctl/changelog.Debian.gz

debian-add_ip.sh have huge modifications but only one line was broken ;)
 
Hello,

i have the problem, that the internet.head & internet.tail are not patched into the internet configurations file. The problem whas with vzctl 3.0.23-1pve7, too.

Regards, Valle
 
sorry :D

i mean interfaces.head and tail.

cat /etc/network/interfaces.head

allow-hotplug eth0 eth1
iface eth0 inet static
address 192.168.1.244
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

iface eth1 inet static
address 192.168.2.244
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.1.1
 

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!