Your message dated Tue, 02 Oct 2007 06:47:12 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#444886: fixed in vserver-debiantools 0.4.0 has caused the attached Bug report 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 I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: vserver-debiantools Version: 0.3.6.2 Severity: wishlist File: /usr/sbin/newvserver Tags: patch Hi, if you are creating many VServers using the newvserver script, it is a bit cumbersome to always give the correct combination of --hostname and --ip. An alternative strategy would be to set up a name server which knows about the IP<->hostname assignments and to derive either the hostname or the IP address by querying the name server. This is implemented by the appended patch. Using the patch you can just use newvserver --ip 1.2.3.4/24 and the script looks up hostname and domain (if not given) using the name server. Alternatively you can use newvserver --hostname x --domain y.z and the script looks up the IP address using the name server. In this case the prefix length (/24 in the above example) is taken from the netmask of the given network interface. I hope this helps, Jochen -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-2-vserver-amd64 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages vserver-debiantools depends on: ii binutils 2.18-1 The GNU assembler, linker and bina ii debootstrap 1.0.3 Bootstrap a basic Debian system ii dnsutils 1:9.4.1-P1-1 Clients provided with BIND ii iproute 20070313-1 Professional tools to control the ii rsync 2.6.9-5 fast remote file copy program (lik ii util-vserver 0.30.214-3 user-space tools for Linux-VServer vserver-debiantools recommends no packages. -- no debconf information -- http://seehuhn.de/diff -ur vserver-debiantools-0.3.6.1/debian/control vserver-debiantools-0.3.6.2/debian/control --- vserver-debiantools-0.3.6.1/debian/control 2007-08-20 07:37:48.000000000 +0100 +++ vserver-debiantools-0.3.6.2/debian/control 2007-10-01 16:17:00.000000000 +0100 @@ -8,7 +8,7 @@ Package: vserver-debiantools Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver (>= 0.30.204-5sarge2), debootstrap (>= 0.3.3), binutils, rsync, iproute +Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver (>= 0.30.204-5sarge2), debootstrap (>= 0.3.3), binutils, rsync, iproute, dnsutils Conflicts: vserver Description: Tools to manage debian virtual servers This package contain tools to manage debian based virtual servers. diff -ur vserver-debiantools-0.3.6.1/newvserver.sh vserver-debiantools-0.3.6.2/newvserver.sh --- vserver-debiantools-0.3.6.1/newvserver.sh 2007-10-01 14:22:34.000000000 +0100 +++ vserver-debiantools-0.3.6.2/newvserver.sh 2007-10-01 17:06:22.000000000 +0100 @@ -122,12 +122,17 @@ --pkgcache Package caching. -v, --verbose show extra output during setup --vsroot location of "/vserver/" directory + Required: --hostname hostname for new vserver (eg. "alpha") --domain dns domain for new vserver (eg. "example.com") --ip IPv4 address for new vserver (syntax: --ip <ip>[/<netmask|prefixlength>]) + Either --ip or --domain/--hostname may be omitted if the + corresponding information is can be found by a name server + query. + You can also set variables in /etc/vservers/newvserver-vars. EOF @@ -348,6 +353,24 @@ parse_args $@ +if [ -n "$IP" -a \( -z "$VHOST" -o -z "$VDOMAIN" \) ]; then + tmp=$(dig +short -x $(echo $IP | sed 's;/[0-9]*$;;')) + if [ -n "$tmp" ]; then + if [ -z "$VHOST" ]; then + VHOST=$(echo $tmp | sed 's/\..*//') + fi + if [ -z "$VDOMAIN" ]; then + VDOMAIN=$(echo $tmp | sed 's/[^.]*\.//') + fi + fi +fi + +if [ -n "$VHOST" -a -n "$VDOMAIN" -a -n "$INTERFACE" -a -z "$IP" ]; then + prefix=$(ip -o addr show dev "$INTERFACE" primary scope global | \ + sed -n 's;.*inet [0-9.]*/\([0-9]*\).*;\1;p') + IP="$(dig +short "$VHOST.$VDOMAIN")/$prefix" +fi + if ! [ -n "$VHOST" -a -n "$VDOMAIN" -a -n "$IP" ]; then echo "${0##*/} error: --hostname, --domain and --ip are required" 1>&2 usage
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: vserver-debiantools Source-Version: 0.4.0 We believe that the bug you reported is fixed in the latest version of vserver-debiantools, which is due to be installed in the Debian FTP archive: vserver-debiantools_0.4.0.dsc to pool/main/v/vserver-debiantools/vserver-debiantools_0.4.0.dsc vserver-debiantools_0.4.0.tar.gz to pool/main/v/vserver-debiantools/vserver-debiantools_0.4.0.tar.gz vserver-debiantools_0.4.0_all.deb to pool/main/v/vserver-debiantools/vserver-debiantools_0.4.0_all.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ola Lundqvist <[EMAIL PROTECTED]> (supplier of updated vserver-debiantools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Tue, 2 Oct 2007 08:31:27 +0200 Source: vserver-debiantools Binary: vserver-debiantools Architecture: source all Version: 0.4.0 Distribution: unstable Urgency: low Maintainer: Ola Lundqvist <[EMAIL PROTECTED]> Changed-By: Ola Lundqvist <[EMAIL PROTECTED]> Description: vserver-debiantools - Tools to manage debian virtual servers Closes: 444868 444886 Changes: vserver-debiantools (0.4.0) unstable; urgency=low . * Correction for VROOTDIR assignment. Thanks to Justin Pryzby <[EMAIL PROTECTED]> for spotting this. * Applied patch from Jochen Voss <[EMAIL PROTECTED]> that make only one of hostname or ip option necessary if a nameserver is available. Closes: #444886. * Modified the patch so that dnsutils is not required, only recommended. * Applied patch from Jochen Voss <[EMAIL PROTECTED]> to allow alternative mirrors for security and non-us(woody). Closes: #444868. * Make sure to strip trailing slashes for the other mirrors as well. * Manually merged the patches from Justin to apply on newnfsvserver.sh as well as some other merges. Files: 76c06151deda2dd00c9850cb65c1838d 550 utils optional vserver-debiantools_0.4.0.dsc 7023a91b80e75640cc34a3215f981462 34054 utils optional vserver-debiantools_0.4.0.tar.gz 2d10b31e023b26bc5ca1600fa0333c4d 31232 utils optional vserver-debiantools_0.4.0_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHAehgGKGxzw/lPdkRApaTAJkBaClUQ91D1LpVW+brakcc1pVeqACgo+Pm CoF7G5CQ4IrPM8LG6LBXWKM= =AQnq -----END PGP SIGNATURE-----
--- End Message ---

