Re: [Users] 'vzctl start CTID --wait' hangs
On Mon, 2014-01-13 at 11:03 -0800, Kir Kolyshkin wrote: > On 01/13/2014 10:08 AM, Kir Kolyshkin wrote: > > On 01/13/2014 01:20 AM, Roman Haefeli wrote: > >> When you mentioned the scripts > >> in /etc/init/ I found that all our flawlessly running Debian 6 CTs don't > >> have this folder at all. I removed it completely also in the Debian 7 CT > >> and from then on I was able to start it flawlessly with the --wait flag. > > > > Good that you have mentioned it, now I see that /etc/init existence > > doesn't > > mean we have upstart, so we have to patch /etc/inittab regardless. > > > > Will fix vzctl accordingly soon. I only now seem to understand the source of the problem. You are right: The mere existence of /etc/init/ directory does not necessarily indicate that upstart is available (at least not on Debian 7 system). > Can you test this patch? > > http://git.openvz.org/?p=vzctl;a=commit;h=9a2a60f7f > > You can either build and install it yourself: > > git clone git://git.openvz.org/vzctl > cd vzctl && ./autogen.sh && ./configure && ./setver -U > I just tested with the most recent git version (4.6.1-21.1.ge5f3995) and it works. Thank you very much. Roman ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users
Re: [Users] 'vzctl start CTID --wait' hangs
On 01/13/2014 10:08 AM, Kir Kolyshkin wrote: On 01/13/2014 01:20 AM, Roman Haefeli wrote: On Wed, 2014-01-08 at 23:57 -0800, Kir Kolyshkin wrote: On 01/08/2014 08:36 AM, Roman Haefeli wrote: Hi When I start Debian 7 containers with the '--wait' option, it does start the CT, but the vzctl command never returns. The same works fine with Debian 6 containers. I figured that 'vzctl start CTID --wait' usually adds a line to the CT's /etc/inittab: vz:2345:once:touch /.vzfifo However, such a line is never added to Debian 7 CTs. On Debian 6 CTs, this line is automatically added whenever the CT is started, even if it has been removed manually. A work-around is to add the line manually to /etc/inittab, but I still wonder why the automatism doesn't work for Debian 7 CTs. Please file a bug for vzctl, I will take a look soon. Thanks for addressing this issue. In your notes on bugzilla [ Just for the sake of people reading it: https://bugzilla.openvz.org/2859 ] you mention that the original reason for the hangs is the missing lo interface. Yes, this is what I found with the official Debian 7 templates (that I will fix soon). In fact, on the CT I tested lo was configured properly and up and running. I should mention that I made the template myself according to the instructions found here [1]. Hey, this makes it a perfect example of how to NOT file bug reports! ;-) When you mentioned the scripts in /etc/init/ I found that all our flawlessly running Debian 6 CTs don't have this folder at all. I removed it completely also in the Debian 7 CT and from then on I was able to start it flawlessly with the --wait flag. Good that you have mentioned it, now I see that /etc/init existence doesn't mean we have upstart, so we have to patch /etc/inittab regardless. Will fix vzctl accordingly soon. Can you test this patch? http://git.openvz.org/?p=vzctl;a=commit;h=9a2a60f7f You can either build and install it yourself: git clone git://git.openvz.org/vzctl cd vzctl && ./autogen.sh && ./configure && ./setver -U Alternatively, I just build packages for you to test: http://download.openvz.org/utils/nightlies/vzctl/4.6.1-6.g9a2a60f/ More info on test builds are at http://openvz.org/Download/vzctl/nightly ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users
Re: [Users] 'vzctl start CTID --wait' hangs
On 01/13/2014 01:20 AM, Roman Haefeli wrote: On Wed, 2014-01-08 at 23:57 -0800, Kir Kolyshkin wrote: On 01/08/2014 08:36 AM, Roman Haefeli wrote: Hi When I start Debian 7 containers with the '--wait' option, it does start the CT, but the vzctl command never returns. The same works fine with Debian 6 containers. I figured that 'vzctl start CTID --wait' usually adds a line to the CT's /etc/inittab: vz:2345:once:touch /.vzfifo However, such a line is never added to Debian 7 CTs. On Debian 6 CTs, this line is automatically added whenever the CT is started, even if it has been removed manually. A work-around is to add the line manually to /etc/inittab, but I still wonder why the automatism doesn't work for Debian 7 CTs. Please file a bug for vzctl, I will take a look soon. Thanks for addressing this issue. In your notes on bugzilla [ Just for the sake of people reading it: https://bugzilla.openvz.org/2859 ] you mention that the original reason for the hangs is the missing lo interface. Yes, this is what I found with the official Debian 7 templates (that I will fix soon). In fact, on the CT I tested lo was configured properly and up and running. I should mention that I made the template myself according to the instructions found here [1]. Hey, this makes it a perfect example of how to NOT file bug reports! ;-) When you mentioned the scripts in /etc/init/ I found that all our flawlessly running Debian 6 CTs don't have this folder at all. I removed it completely also in the Debian 7 CT and from then on I was able to start it flawlessly with the --wait flag. Good that you have mentioned it, now I see that /etc/init existence doesn't mean we have upstart, so we have to patch /etc/inittab regardless. Will fix vzctl accordingly soon. I wonder about two things: * How important are those scripts in /etc/init, considering that I was running Debian CTs for years without them? This is standard upstart directory. Upstart can be used used instead of sysvinit. Google for debian upstart for more details. * How did that folder /etc/init sneak into my self-made Debian 7 template? Perhaps dpkg -S can shed some light? I observe this on one of my Debian boxes (not running upstart): root@kir-deb71-ovz:~# dpkg -S /etc/init sysvinit-utils, ifupdown, udev: /etc/init /etc/init/ isn't a standard path in Debian. Apparently it is (if you choose to use upstart). ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users
Re: [Users] 'vzctl start CTID --wait' hangs
On Wed, 2014-01-08 at 23:57 -0800, Kir Kolyshkin wrote: > On 01/08/2014 08:36 AM, Roman Haefeli wrote: > > Hi > > > > When I start Debian 7 containers with the '--wait' option, it does start > > the CT, but the vzctl command never returns. The same works fine with > > Debian 6 containers. > > > > I figured that 'vzctl start CTID --wait' usually adds a line to the > > CT's /etc/inittab: > > > > vz:2345:once:touch /.vzfifo > > > > However, such a line is never added to Debian 7 CTs. On Debian 6 CTs, > > this line is automatically added whenever the CT is started, even if it > > has been removed manually. > > > > A work-around is to add the line manually to /etc/inittab, but I still > > wonder why the automatism doesn't work for Debian 7 CTs. > > > Please file a bug for vzctl, I will take a look soon. Thanks for addressing this issue. In your notes on bugzilla you mention that the original reason for the hangs is the missing lo interface. In fact, on the CT I tested lo was configured properly and up and running. I should mention that I made the template myself according to the instructions found here [1]. When you mentioned the scripts in /etc/init/ I found that all our flawlessly running Debian 6 CTs don't have this folder at all. I removed it completely also in the Debian 7 CT and from then on I was able to start it flawlessly with the --wait flag. I wonder about two things: * How important are those scripts in /etc/init, considering that I was running Debian CTs for years without them? * How did that folder /etc/init sneak into my self-made Debian 7 template? /etc/init/ isn't a standard path in Debian. Roman [1] http://openvz.org/Debian_template_creation ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users
Re: [Users] 'vzctl start CTID --wait' hangs
On 01/08/2014 08:36 AM, Roman Haefeli wrote: Hi When I start Debian 7 containers with the '--wait' option, it does start the CT, but the vzctl command never returns. The same works fine with Debian 6 containers. I figured that 'vzctl start CTID --wait' usually adds a line to the CT's /etc/inittab: vz:2345:once:touch /.vzfifo However, such a line is never added to Debian 7 CTs. On Debian 6 CTs, this line is automatically added whenever the CT is started, even if it has been removed manually. A work-around is to add the line manually to /etc/inittab, but I still wonder why the automatism doesn't work for Debian 7 CTs. Please file a bug for vzctl, I will take a look soon. ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users
[Users] 'vzctl start CTID --wait' hangs
Hi When I start Debian 7 containers with the '--wait' option, it does start the CT, but the vzctl command never returns. The same works fine with Debian 6 containers. I figured that 'vzctl start CTID --wait' usually adds a line to the CT's /etc/inittab: vz:2345:once:touch /.vzfifo However, such a line is never added to Debian 7 CTs. On Debian 6 CTs, this line is automatically added whenever the CT is started, even if it has been removed manually. A work-around is to add the line manually to /etc/inittab, but I still wonder why the automatism doesn't work for Debian 7 CTs. Roman Kernel: 2.6.32-042stab081.3 vzctl: 4.2 Hostnode: Debian 7 amd64 ___ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users