Public bug reported:

If irqbalance is started with the "--policyscript" option, Upstart is
unable to manage it properly (bug #406397 is being triggered), and
stopping/restarting it fails. Noticed this when the
1.0.6-2ubuntu0.14.04.2 update hit Trusty yesterday. See below:

$ /sbin/stop irqbalance
irqbalance stop/waiting
$ echo 'OPTIONS="--policyscript=/bin/true"' >> /etc/default/irqbalance
$ /sbin/start irqbalance
irqbalance start/running, process 23862
$ /sbin/status irqbalance
irqbalance start/running, process 23862
$ pgrep -a irqbalance
23859 /usr/sbin/irqbalance --policyscript=/bin/true
23871 /usr/sbin/irqbalance --policyscript=/bin/true
[note how the PIDs don't match what Upstart believes them to be]
$ /sbin/stop irqbalance
[hangs]
^C
$ /sbin/status irqbalance
irqbalance stop/killed, process 23862
$ pgrep -a irqbalance
23859 /usr/sbin/irqbalance --policyscript=/bin/true
23871 /usr/sbin/irqbalance --policyscript=/bin/true
$ /sbin/start irqbalance
[hangs]

I successfully recovered from this situation by running the hack at
https://raw.githubusercontent.com/ion1/workaround-upstart-snafu/master
/workaround-upstart-snafu on all the servers that had attempted to
upgraded the irqbalance package.

One easy way to fix this issue is to remove "expect fork" and instead
start irqbalance with the "--foreground" option. Patch attached.

On a related note, I see that the irqbalance package ships both a SysV
init script in /etc/init.d/irqbalance as well as an Upstart job
definition. That's rather confusing to a sysadmin, and could possibly
lead to collisions? As I understand it, the SysV init script for an
Upstart-managed service is supposed be replaced by a symlink to
/lib/init/upstart-job. Maybe you'll want to look into that as well.

Tore

** Affects: irqbalance (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Patch (apply to /etc/init/irqbalance.conf)"
   
https://bugs.launchpad.net/bugs/1472129/+attachment/4425604/+files/irqbalance.conf.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1472129

Title:
  irqbalance triggers Upstart bug when started with --policyscript

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/irqbalance/+bug/1472129/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to