[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
And openvz thinks that this is bug in upstart: http://bugzilla.openvz.org/show_bug.cgi?id=2165#c4 ** Bug watch added: OpenVZ Bugzilla #2165 http://bugzilla.openvz.org/show_bug.cgi?id=2165 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
On Wed, Nov 23, 2011 at 6:08 PM, David Schoen <880...@bugs.launchpad.net> wrote: > I was able to work around this by replacing /dev/console with a symlink to > /dev/null and rebooting, i.e.: > # rm /dev/console > # cd /dev > # ln -s null console > # reboot Container will not boot (only mount) if the above is attempted. Not a solution... -- Kristian Erik Hermansen https://profiles.google.com/kristian.hermansen -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I would like to add something to the opinion that openvz should fix this. I agree that it should be fixed by openvz. But many people are not in control of the openvz/ Virtuozzo installation, because they just have rent a virtual server. And as it worked before it should still work because else those affected people don't trust into the dependability of Ubuntu any more. And by the way, there are many fixes for bad hardware in the kernel, why shouldn't there be fixes in Ubuntu for bad virtual hardware. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
This has actually stopped happening on my server, after an upgrade by my hosting provider. For those still affected by the issue, I have created a PPA that contains the latest oneiric package, with just this one upstream bugfix added: https://code.launchpad.net/~jammy/+archive/upstart.fix-880049 Its waiting to build on launchpad now, packages should be available in a few hours. ** Branch linked: lp:~jammy/ubuntu/oneiric/upstart/upstart.fix-880049 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
** Branch linked: lp:~jammy/upstart/upstart.fix-880049 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
> On Mon, Nov 7, 2011 at 4:45 AM, Cedric Schieli wrote: > > I found another workaround which do not involve patching : simply delete > > /dev/console in the VE and replace it with a plain file. > > Doesn't work. VE will not boot if the file is a regular file... I was able to work around this by replacing /dev/console with a symlink to /dev/null and rebooting, i.e.: # rm /dev/console # cd /dev # ln -s null console # reboot This was on something the vendor is calling a "Virtuozzo" which I think might just be OpenVZ under the hood. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I'm sorry Scott, I will not do that again. Thanks for your patience. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
Please don't subscribe people to bugs without their permission -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
It seems like there is a patch for this in the upstart trunk already? http://bazaar.launchpad.net/~upstart-devel/upstart/trunk/revision/1326 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
On Mon, Nov 7, 2011 at 4:45 AM, Cedric Schieli wrote: > I found another workaround which do not involve patching : simply delete > /dev/console in the VE and replace it with a plain file. Doesn't work. VE will not boot if the file is a regular file... -- Kristian Erik Hermansen https://profiles.google.com/kristian.hermansen -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I found another workaround which do not involve patching : simply delete /dev/console in the VE and replace it with a plain file. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I'm using Parallel Virtuozzo. After upgrade from 11.04 to 11.10, init is using 100% of cpu all the time. About the patch,how to use it.? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
The specified vzctl command does not fix anything... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
This is definitely still broken :( -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I would consider this a regression - it was working fine in Natty, so has been broken for oneiric. I would like to see a default ubuntu instance work without changes in an openvz environment - it would help encourage the use of ubuntu for virtualized environments. For me, ubuntu wouldn't start at all until I had made some changes to the init scripts. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
@Ajunne Unfortunately that doesn't work for me. After granting access to /dev/console to the VE (and rebooting it), I get "No such device" instead of "Operation not permitted" when trying to access the device and init still hogs the cpu. Maybe it is a problem with the host (Debian 6.0, linux-image-2.6.32-5-openvz-686 = 2.6.32-31) ? I'll investigate more deeply in a few days. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I have the same issue here, physical server runs CentOS 6.0, VE runs Ubuntu. You can easily grant access to the physical version of /dev/console with the following command on your physical server: vzctl set 105 --devices c:5:1:rw --save Replace 105 with the number of you VE. After this, reboot and init will no longer be hogging 100% cpu. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
Just wanted to confirm the patch is working for me, many thanks! Hope to see it in upstream soon :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
Oh, I'm sorry for my stupidity... can confirm that the patch above works here - no more 100% cpu usage after rebooting. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I totally agree the proper fix would be that OpenVZ provides a /dev/console. My patch is rather a workaround. Concerning jobs specifying console access, they already fallback to CONSOLE_NONE in job_process_spawn so they are working (maybe not exactly with the same behaviour though). Concerning jobs specifying console ownership, they will fail indeed, but those jobs (rcS, mountall-shell, ...) really can't be used in a OpenVZ environment anyway. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
Thanks for reporting this issue. However, the console device is a device expected to exist on all Linux systems. The problem here is that Upstart *needs* access to the console: if it has no console access, jobs would behave differently in an OpenVZ container to running outside a container (bad). The patch above will not help jobs that have specified they want console access or ownership ("console output" or "console owner"). I am not an OpenVZ expert, but I do feel that the "fix" for this issue is for the OpenVZ environment to provide a /dev/console that Upstart is able to use such as would be provided by other virtualization technologies (LXC, qemu/kvm, Xen, VirtualBox) otherwise Upstart cannot guarantee job behaviour. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I have the same basic problem, but the patch given doesn't do anything. Trying installing upstart 1.6.7, no better. init is always at 100% cpu. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: upstart (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
I am affected by this and do not have the technical knowledge to modify and rebuild the upstart source code. Is there a fix that does not require altering the source, or is this likely to make it into an update some time soon? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880049] Re: 100% CPU usage in init if /dev/console is not available
** Attachment added: "Reopen /dev/null if opening /dev/console failed" https://bugs.launchpad.net/bugs/880049/+attachment/2567049/+files/no_dev_console.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880049 Title: 100% CPU usage in init if /dev/console is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880049/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs