Your message dated Thu, 09 Sep 2010 06:02:20 +0000
with message-id <[email protected]>
and subject line Bug#594003: fixed in vzctl 3.0.24-4
has caused the Debian Bug report #594003,
regarding vzctl overwrites 127.0.0.1 in /etc/hosts
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 [email protected]
immediately.)


-- 
594003: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594003
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: vzctl
Version: 3.0.24-1
Severity: minor


vzctl makes adjustments to /etc/hosts via scripts to account
for the IP-adress and hostname that has been set in the VE configuration.

However, it also adjusts the entry for localhost.

This is problematic if, for example, you have an alias for localhost:

127.0.0.1 localhost localhost.localdomain mysql

When the vserver is restarted, the "mysql" alias is gone which causes
problems for the application.

The responsible code is in /etc/vz/dists/scripts/functions :

   313                  $1 == "127.0.0.1" { ate_localhost = 1; next; }
   314                  {print}
   315                  END {
   316                          if (ip == "") { ip ="127.0.0.1" }
   317                          if (ate_localhost && ip != "127.0.0.1") {
   318                                  print "127.0.0.1 localhost.localdomain 
localhost";
   319                          }
   320                          print comm;
   321                          if ((i=index(host, ".")) > 1) {
   322                                  alias= " " substr(host, 1, i -
1);
   323                                  if (! (alias in EXTRANAMES)) {
   324                                          EXTRANAMES[alias] = 1;
   325                                  }
   326                          }


So - first is the 127.0.0.1 entry regenerated, then is the "comm"
information ("# Autogenerated hostname ...") appended, and then the
hostname.

I do not see a reason for 127.0.0.1 to be regenerated. Usually it points at
localhost, in which case the code provides no benefit. If the admin has added
an alias to localhost, it will be overwritten, which can be quite annoying.

I suggest contacting upstream if there is a reason for this manipulation,
and if not, leave 127.0.0.1 alone by commenting line #313, perhaps with
a reference to this bug report.

Best regards,
 Stefan

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to 
sv_SE)
Shell: /bin/sh linked to /bin/bash

Versions of packages vzctl depends on:
ii  iproute                       20080417-1 networking and traffic control too
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  vzquota                       3.0.12-3   server virtualization solution - q

Versions of packages vzctl recommends:
ii  rsync                         3.0.7-1    fast remote file copy program (lik

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: vzctl
Source-Version: 3.0.24-4

We believe that the bug you reported is fixed in the latest version of
vzctl, which is due to be installed in the Debian FTP archive:

vzctl_3.0.24-4.diff.gz
  to main/v/vzctl/vzctl_3.0.24-4.diff.gz
vzctl_3.0.24-4.dsc
  to main/v/vzctl/vzctl_3.0.24-4.dsc
vzctl_3.0.24-4_i386.deb
  to main/v/vzctl/vzctl_3.0.24-4_i386.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 vzctl 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.8
Date: Tue, 08 Sep 2010 22:56:50 +0200
Source: vzctl
Binary: vzctl
Architecture: source i386
Version: 3.0.24-4
Distribution: unstable
Urgency: medium
Maintainer: Ola Lundqvist <[email protected]>
Changed-By: Ola Lundqvist <[email protected]>
Description: 
 vzctl      - server virtualization solution - control tools
Closes: 411902 576227 592991 594003
Changes: 
 vzctl (3.0.24-4) unstable; urgency=medium
 .
   * Backported solution from upstream to solve the problem with vz
     container reboot and insserv. Closes: #576227. This solution is provided
     by a series of patches. A new vzeventd function is introduced and removes
     the need for cron jobs.
   * Had to run the upstream build commands. Stored in autogen.sh.
   * Now starts after installation as well. But only if the kernel support
     openvz in order to avoid installation failures. Closes: #411902.
   * Use correct install target install-debian instead of install-redhat. This
     introduces a vzufup-post network rule to add arp parameters.
   * Updated the README.Debian file to reflect the recent changes in the
     vzctl package.
   * Backport of solutions in from 3.0.24.1:
      vzmigrate: ignore error 24 from the first rsync run
      vzmigrate: migrate premount/postumount action scripts
      Revert "Check for memory granted by get_dist_name"
      bash_completion: vzlist's stderr goes to /dev/null
   * Backport of solutions in 3.0.24.2:
      Restore vzgetnetdev incompatibility with mawk. Closes: #592991.
      debian-add_ip.sh: fixlet for Ubuntu networking
      vzctl start: do not remove 127.0.0.1 aliases in /etc. Closes: #594003.
      list2str_c produces wrong string when list is empty (data corruption)
Checksums-Sha1: 
 296a13ec0fc96c53bd5bf464e6fe6cbc6c2b4cf7 966 vzctl_3.0.24-4.dsc
 386a6e9b850c0270778529ddd0ebf24f6e69cfa2 446023 vzctl_3.0.24-4.diff.gz
 621f99f192982d14c6384cb64343901e3cbb20c2 208066 vzctl_3.0.24-4_i386.deb
Checksums-Sha256: 
 bd154825b9d345470d0fcebbdcc415ce5bf6b874a6ea4c0362adaa76eab7d21c 966 
vzctl_3.0.24-4.dsc
 0b61c5003b0febd172e5ccc0ee1aeb47a4254500abcab75b8cad2093120ed090 446023 
vzctl_3.0.24-4.diff.gz
 deacea1df0f9c1175db3e8c85c18cf6106e41bacdbedbb94bf57667b26073da7 208066 
vzctl_3.0.24-4_i386.deb
Files: 
 ee73964de0d80fc6b349da1ccd06b7b1 966 admin optional vzctl_3.0.24-4.dsc
 1d5f14dad4fa83d235866e0fb293bd5b 446023 admin optional vzctl_3.0.24-4.diff.gz
 6eb52b1aa8ebcab2b94c3b726dd75199 208066 admin optional vzctl_3.0.24-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkyIdukACgkQGKGxzw/lPdnaxwCgh1RirGa33VHVZtC/KkCM6wMO
1vsAoJQmEE9mFCXKHXdfPBbpllAfGKcg
=yAbM
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to