Re: [vserver] vserver stop fails with upstart guest

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Thu 08 Jul 2010 - 01:28:45 BST
Message-ID: <20100708002845.GB26334@MAIL.13thfloor.at>

On Wed, Jul 07, 2010 at 03:09:16PM -0600, Dan Urist wrote:
> On Wed, 7 Jul 2010 22:18:05 +0200 (CEST)
> "Daniel Hokka Zakrisson" <daniel@hozac.com> wrote:

> > Dan Urist wrote:
> > > I'm running a debian lenny kernel with ubuntu guests. I'm currently
> > > trying to upgrade a guest from jaunty to lucid, which uses the new
> > > upstart init style. I've followed the guide on the wiki (set init
> > > style to plain, etc.), and the guest now starts properly and runs
> > > fine.

> > > My problem is "vserver stop" doesn't work; it times out and
> > > eventually kills the vserver. I can shut down the vserver cleanly
> > > with "telinit 0" or "shutdown -h now" from within the vserver, or
> > > by using one of those commands with "vserver exec". The reason this
> > > is a problem for me is I'm running these vservers under a pacemaker
> > > cluster, and the resource agent uses the vserver command to manage
> > > the vservers. I'm going to have a mixture of jaunty and lucid
> > > guests for awhile, and "telinit 0" or "shutdown -h now" doesn't
> > > work for the jaunty guests (I get "shutdown: Unable to send
> > > message: Connection refused"), so changing the resource agent to
> > > use one of those won't work.

> > > Is there some way to make the "vserver stop" command work with lucid
> > > (upstart) guests? Is this an issue with the "plain" init style?

> > Make sure that your upstart is configured to handle SIGINT as a
> > shutdown signal, as that is the method by which vserver ... stop will
> > shutdown a plain init guest.

> Thanks for the suggestion, but do you have any hints on how to do this?
> The upstart documentation is pretty thin.

google suggests that there is an /etc/event.d/control-alt-delete
on fedora and that the feature is/was broken on ubuntu some time
ago ...

besides that, the source is probably the best 'source' of information
about upstart, unless you manage to ask the author himself ...

best,
Herbert

> --
> Dan Urist
> durist@ucar.edu
> 303-497-2459
Received on Thu Jul 8 01:29:29 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 08 Jul 2010 - 01:29:32 BST by hypermail 2.1.8