[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#624322: marked as done (/etc/init.d/vz Improvements)



Your message dated Wed, 31 Aug 2022 17:32:28 +0000
with message-id <[🔎] E1oTRZk-00G9DK-DX@fasolo.debian.org>
and subject line Bug#1018823: Removed package(s) from unstable
has caused the Debian Bug report #624322,
regarding /etc/init.d/vz Improvements
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
624322: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624322
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: vzctl
Version: 3.0.24-12

As per http://wiki.openvz.org/Disable_venet_interface I'm attempting to
rid the system of venet.

As mentioned in the above page, just commenting out the VEDEV= line is
not enough, the init script also has to be editted.

I have attached a patch for the init script that does two things:
1. It adds a check for the VEDEV variable in both the start_net and
stop_net functions
2. It splits out the variables defined in the init script to /etc/default/vz

The contents of /etc/default/vz are as follows:
VZQUOTA=/usr/sbin/vzquota
CONFIG_DIR=/etc/vz/conf
LOCKFILE=$VARLOCK/vz_lock
SUBSYS_VZ=$VARLOCK/vz
VESTAT=/proc/vz/vestat
# VZDEV=venet0
PRELOAD_MODULES=
MODULES=
MODULES_OTHER=
NET_MODULES=
IPT_MODULES=

The reason for splitting out the definition of the variables is so that
the next time vzctl is updated, VENET won't suddenly get re-enabled!

-- 
The virus contained in this message was not detected.

http://niall.donegan.tel
--- vz.orig	2011-04-27 13:37:05.000000000 +0100
+++ vz	2011-04-27 13:41:44.000000000 +0100
@@ -40,17 +40,9 @@
 
 . /usr/lib/vzctl/scripts/initd-functions
 
-VZQUOTA=/usr/sbin/vzquota
-CONFIG_DIR=/etc/vz/conf
-LOCKFILE=$VARLOCK/vz_lock
-SUBSYS_VZ=$VARLOCK/vz
-VESTAT=/proc/vz/vestat
-VZDEV=venet0
-PRELOAD_MODULES=
-MODULES=
-MODULES_OTHER=
-NET_MODULES=
-IPT_MODULES=
+if [ -f /etc/default/vz ] ; then
+        . /etc/default/vz
+fi
 
 if [ "${MODULES_DISABLED}" != "yes" ]; then
 	PRELOAD_MODULES="af_packet"
@@ -182,14 +174,16 @@
 	if [ -z "$VEINFO" ]; then
 		return 0
 	fi
-	__echo "Bringing up interface $VZDEV: "
-	ip link set $VZDEV up
-	print_result
-	ip addr add 0.0.0.0/0 dev $VZDEV
-	if [ "${IPV6}" = "yes" ]; then
-		ip -6 addr add fe80::1/128 dev $VZDEV
+	if [ -n "$VZDEV" ]; then
+		__echo "Bringing up interface $VZDEV: "
+		ip link set $VZDEV up
+		print_result
+		ip addr add 0.0.0.0/0 dev $VZDEV
+		if [ "${IPV6}" = "yes" ]; then
+			ip -6 addr add fe80::1/128 dev $VZDEV
+		fi
+		sysctl -q -w net.ipv4.conf.$VZDEV.send_redirects=0
 	fi
-	sysctl -q -w net.ipv4.conf.$VZDEV.send_redirects=0
 	if [ "$(sysctl -n -e net.ipv4.ip_forward)" != "1" ]; then
 		print_warning "IP forwarding is not enabled"
 	fi
@@ -198,11 +192,13 @@
 stop_net()
 {
 	local mod
-
-	if ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
-		__echo "Bringing down interface $VZDEV: "
-		ip link set $VZDEV down
-		print_result
+	
+	if [ -n "$VZDEV" ]; then
+		if ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
+			__echo "Bringing down interface $VZDEV: "
+			ip link set $VZDEV down
+			print_result
+		fi
 	fi
 	for mod in ${NET_MODULES}; do
 		/sbin/modprobe -r ${mod} > /dev/null 2>&1

--- End Message ---
--- Begin Message ---
Version: 4.9.4-6+rm

Dear submitter,

as the package vzctl has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1018823

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply to: