Package: vzctl
Version: 3.0.24-10
Severity: normal

"vzctl start $ID --wait" does not work for some time now:

# vzctl start 205 --wait
Starting container ...
Container is mounted
Adding IP address(es): 10.122.2.5
Setting CPU units: 1000
Setting CPUs: 1
Set hostname: foo.example.com
File resolv.conf was modified
Container start in progress, waiting ...
^Z
[1]  + 29226 suspended  vzctl start 205 --wait
r...@hn { ~ } [Debian squeeze/sid] [es:20][jobs:1s]
# fg
[1]  + 29226 continued  vzctl start 205 --wait
Error in waitpid(3): No child processes
Container wait failed
Stopping container ...
Container was stopped
Container is unmounted


Suspending the job and resuming it instantly again used to work
around this (that is where I am using Ctrl-Z/^Z above).

It did not help in this case.

Starting the container normally works:

# vzctl start 205
Starting container ...
Container is mounted
Adding IP address(es): 10.122.2.5
Setting CPU units: 1000
Setting CPUs: 1
Set hostname: foo.example.com
File resolv.conf was modified
Container start in progress...
r...@hn { ~ } [Debian squeeze/sid]                                              
             !10014 23:26:20
# vzctl enter 205
entered into CT 205
r...@foo:/# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.1  0.0   2028   712 ?        Ss   23:26   0:00 init [2]
root       237  0.2  0.0  27188  1304 ?        Sl   23:26   0:00 
/usr/sbin/rsyslogd -c4
root       311  0.0  0.0   4364   936 ?        Ss   23:26   0:00 /usr/sbin/cron
root       368  0.1  0.1   7148  5416 ?        Ss   23:26   0:00 
/usr/sbin/munin-node
root       668  0.0  0.0  18624   624 ?        Ss   23:26   0:00 vzctl: pts/0
root       669  4.0  0.0   4504  3184 pts/0    Ss   23:26   0:00 -bash
root       683  0.0  0.0   2348   928 pts/0    R+   23:26   0:00 ps aux
r...@foo:/#


I've tried debugging this using "strace", but it messed up the startup process
even more (when using "-f" IIRC), without "-f" it looks like this:

--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x7f658ed581e0}, NULL, 8) = 0
stat("/usr/sbin/vzquota", {st_mode=S_IFREG|0755, st_size=58248, ...}) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], SA_RESTORER, 0x7f658ed581e0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f658ed581e0}, 
NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f658f8c89d0) = 1654
wait4(1654, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1654
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x7f658ed581e0}, NULL, 8) = 0
stat("/etc/vz/conf/205.start", 0x7fff0186cd00) = -1 ENOENT (No such file or 
directory)
close(8)                                = 0
read(9, "", 4)                          = 0
write(1, "Container start in progress, wai"..., 41Container start in progress, 
waiting ...
) = 41
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "2010-12-09T23:36:56+0100 vzctl :"..., 83) = 83
ioctl(4, 0x400c2e05, 0x7fff0186cd10)    = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f658f8c89d0) = 1655
wait4(1655, 


I would be glad to provide any additional info, especially if it is not
reproducible for you.

I have just tried it on another container, which is build just upon a minimal
debootstrap template, and it hangs in the same way.

My kernel is the Debian kernel, with customized config.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5+blueyed.1-openvz-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vzctl depends on:
ii  iproute                       20100519-3 networking and traffic control too
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  vzquota                       3.0.12-3   server virtualization solution - q

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

vzctl suggests no packages.

-- Configuration Files:
/etc/bash_completion.d/vzctl.sh changed:
 -- irrelevant --

/etc/init.d/vz changed:
 -- should be just this: --
        ip addr add 10.122.1.1/32 dev $VZDEV

/etc/vz/conf/ve-vps.basic.conf-sample changed:
 -- irrelevant --

/etc/vz/vz.conf changed:
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=10000
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0
DISK_QUOTA=yes
VZFASTBOOT=no
NEIGHBOUR_DEVS=detect
ERROR_ON_ARPFAIL="no"
TEMPLATE=/var/lib/vz/template
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="basic"
DEF_OSTEMPLATE="debian-testing-minimal_6.0_i386"
VZWDOG="no"
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter 
iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"
IPV6="no"
IP6TABLES="ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to