[Users] Broken ploop containers after vzctl upgrade to 4.9.4-1 on Debian

Andrey Tataranovich tataranovich at gmail.com
Fri Sep 11 03:45:49 PDT 2015


On Fri, 11 Sep 2015 12:34:35 +0200
Ola Lundqvist <ola at inguza.com> wrote:

> I'll look into this today. Must be a problem with the ploop detection
> code.
> 
> If you can send the vz.con file and a listing of the private
> directory (and subdirectories) for that ct it is helpful.

# cat /etc/vz/vz.conf
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000
VE_STOP_MODE=stop

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=no
VZFASTBOOT=no

# Disable module loading. If set, vz initscript does not load any
modules. #MODULES_DISABLED=yes

# The name of the device whose IP address will be used as source IP for
CT. # By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Uncomment to limit CT IP ARP announces only to network interfaces
# having IPs within the same IP network as a container IP.
# Leave commented out to use all interfaces.
#NEIGHBOUR_DEVS=detect

## Uncomment to skip ARP queries checking for CT IP being used
## by some other machine on the network
#SKIP_ARPDETECT=yes

## Comment out to fail CT start if ARP query detects CT IP being used
ERROR_ON_ARPFAIL="no"

## Template parameters
TEMPLATE=/var/lib/vz/template

## Defaults for containers
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="vswap-2g"
DEF_OSTEMPLATE="debian-7.0-amd64-amasty"
NAMESERVER=inherit # Copy from host system's /etc/resolv.conf
## Filesystem layout for new CTs: either simfs or ploop
VE_LAYOUT=simfs

# User namespace configuration
LOCAL_UID=100000
LOCAL_GID=100000

## Load vzwdog module
VZWDOG="no"

## WARNING: IPTABLES parameter is deprecated,
## use per-container (not global!) NETFILTER instead

## iptables kernel modules to be loaded by init.d/vz script
IPTABLES_MODULES="ipt_REJECT ipt_tos ipt_limit ipt_multiport
iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length
ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT ipt_state
ipt_LOG"

## Enable IPv6
IPV6="yes"
SKIP_SYSCTL_SETUP=yes


# vzlist -o ctid,layout
      CTID LAYOUT
      1001 simfs
      1002 simfs
      1005 simfs
      1009 simfs
      1011 simfs
      1012 simfs
      1032 simfs
      1033 simfs
      1034 simfs
      1035 simfs
      1059 simfs
      1068 simfs
      1074 ploop
      1110 simfs
      1300 simfs


# ls -l /var/lib/vz/private/*/root.hdd/
/var/lib/vz/private/1068/root.hdd/:
total 1934380
-rw-r--r-- 1 root root        790 Aug 14 15:02 DiskDescriptor.xml
-rw------- 1 root root          0 Aug 14 15:02 DiskDescriptor.xml.lck
-rw------- 1 root root 1980760064 Aug 17 22:11 root.hdd

/var/lib/vz/private/1069/root.hdd/:
total 16362608
-rw-r--r-- 1 root root         790 Aug 17 11:49 DiskDescriptor.xml
-rw------- 1 root root           0 Aug 17 11:49 DiskDescriptor.xml.lck
-rw------- 1 root root 16755195904 Aug 19 11:56 root.hdd

/var/lib/vz/private/1070/root.hdd/:
total 3085320
-rw-r--r-- 1 root root        790 May 15 17:53 DiskDescriptor.xml
-rw------- 1 root root          0 May 15 17:53 DiskDescriptor.xml.lck
-rw------- 1 root root 3159359488 May 15 17:53 root.hdd

/var/lib/vz/private/1071/root.hdd/:
total 3801096
-rw-r--r-- 1 root root        790 May 22 09:39 DiskDescriptor.xml
-rw------- 1 root root          0 May 22 09:39 DiskDescriptor.xml.lck
-rw------- 1 root root 3892314112 Jul  2 09:21 root.hdd

# ls -l /var/lib/vz/private/1074/
total 80
drwxr-xr-x  2 root root 4096 Apr 13 10:12 bin
drwxr-xr-x  2 root root 4096 Dec  4  2013 boot
drwxr-xr-x  3 root root 4096 Sep  7 13:07 dev
drwxr-xr-x 81 root root 4096 Sep 11 05:07 etc
drwxr-xr-x  3 root root 4096 Jan 31  2014 home
drwxr-xr-x 13 root root 4096 Feb 24  2015 lib
drwxr-xr-x  2 root root 4096 Sep  7 13:07 lib64
drwx------  2 root root 4096 Sep  9  2014 lost+found
drwxr-xr-x  2 root root 4096 Jan 29  2014 media
drwxr-xr-x  2 root root 4096 Feb 24  2015 mnt
drwxr-xr-x  2 root root 4096 Jan 29  2014 opt
dr-xr-xr-x 40 root root 4096 May 16 10:46 proc
drwx------  7 root root 4096 Jul  6 15:42 root
drwxr-xr-x  3 root root 4096 May 16 10:46 run
drwxr-xr-x  2 root root 4096 Sep  7 13:07 sbin
drwxr-xr-x  4 root root 4096 Apr  7  2014 srv
drwxr-xr-x  2 root root 4096 May 16 10:46 sys
drwxrwxrwt  4 root root 4096 Sep 11 13:40 tmp
drwxr-xr-x 10 root root 4096 Jan 29  2014 usr
drwxr-xr-x 12 root root 4096 Jan 30  2014 var

So incorrectly patched CTIDs: 1068, 1069, 1070, 1071 (ploop detected as
simfs) and 1074 (simfs detected as ploop).

-- 
WBR, Andrey Tataranovich


More information about the Users mailing list