Upgrading from pve-manager v1.8.15 to v1.8.17 errors

apmuthu

Renowned Member
Feb 26, 2009
871
12
83
Chennai - India & Singapore
github.com
Did an apt-get update and apt-get dist-upgrade on ProxMox v1.8 starting with the following versions:
Code:
pve-manager: 1.8-15 (pve-manager/1.8/5754)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.8-32
pve-kernel-2.6.32-4-pve: 2.6.32-32
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-11
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.0-3
ksm-control-daemon: 1.0-5

The fragment that errored out was:
Code:
Checking vzevent kernel module .....done
Starting vzeventd:
fixing OpenVZ startup priority
OpenVZ already running..failed
removing old OpenVZ cron scripts

In such an instance how do we check if the OpenVZ startup priority is fixed?

On reboot of the host, the following versions were obtained:
Code:
# pveversion -v
pve-manager: 1.8-17 (pve-manager/1.8/5948)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.8-33
pve-kernel-2.6.32-4-pve: 2.6.32-33
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.26-1pve4
vzdump: 1.2-12
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.0-3
ksm-control-daemon: 1.0-5

Also in /etc/vz/dists/scripts/functions file coming from the upgrade the following diffs were found of which one is clearly (localhost_aliass - typo) an error:

Code:
Configuration file `/etc/vz/dists/scripts/functions'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** functions (Y/I/N/O/D/Z) [default=N] ? D
--- /etc/vz/dists/scripts/functions     2011-03-11 07:27:46.000000000 +0800
+++ /etc/vz/dists/scripts/functions.dpkg-new    2011-05-10 17:09:09.000000000 +0800
@@ -324,12 +324,17 @@
                        for (i=2; i <= NF; i++) { EXTRANAMES[$i] = 1 }
                        next;
                }
-               $1 == "127.0.0.1" { ate_localhost = 1; next; }
+               $1 == "127.0.0.1" {
+                       for (i=2; i <= NF; i++) { if ($i != "localhost" && $i != "localhost.localdomain") { LOCALHOST_ALIASES[$i] = 1 } }
+                       for (localhost_alias in LOCALHOST_ALIASES) { localhost_aliases = [B]localhost_aliass[/B] " " localhost_alias }
+                       ate_localhost = 1;
+                       next;
+               }
                {print}
                END {
                        if (ip == "") { ip ="127.0.0.1" }
                        if (ate_localhost && ip != "127.0.0.1") {
-                               print "127.0.0.1 localhost.localdomain localhost";
+                               print "127.0.0.1 localhost.localdomain localhost" localhost_aliases;
                        }
                        print comm;
                        if ((i=index(host, ".")) > 1) {
@@ -345,6 +350,7 @@
                                if (! ("localhost.localdomain" in EXTRANAMES)) {
                                        EXTRANAMES["localhost.localdomain"] = 1;
                                }
+                               extranames = localhost_aliases;
                        }
                        for (extraname in EXTRANAMES) { extranames = extranames " " extraname }
                        print ip " " host extranames;

The erroneous line in the above is:
Code:
+                       for (localhost_alias in LOCALHOST_ALIASES) { localhost_aliases = [B]localhost_aliass[/B] " " localhost_alias }
 
Last edited: