Bug#879751: [PATCH] init scripts: Do not kill per-domain qemu processes.

2018-03-04 Thread Kojedzinszky Richárd

Dear Ian,

For some reason, I've missed your reply. We are using the scripts with the 
same two lines removed, and I can confirm it works as expected, a simple 
upgrade now will not stop existing, running qemu processes.


Thanks for your efforts.

Regards,
Kojedzinszky Richárd
Euronet Magyarorszag Informatika Zrt.

On Fri, 23 Feb 2018, Ian Jackson wrote:


Date: Fri, 23 Feb 2018 17:11:12 +
From: Ian Jackson 
To: Kojedzinszky Richárd 
Cc: 879...@bugs.debian.org
Subject: Re: [PATCH] init scripts: Do not kill per-domain qemu processes.

Richard, thanks for your perseverence.
Can you please test the patch I have just sent to the bug ?

You should be able to
 patch <0001-init-scripts-Do-not-kill-per-domain-qemu-processes.patch 
/etc/init.d/xen

It WFM.  That is, I checked that it kills the global qemu but leaves
a domU one alone.

I am considering shipping this change in a stable update for Xen 4.8.

Ian.


Bug#879751: [PATCH] init scripts: Do not kill per-domain qemu processes.

2018-02-23 Thread Ian Jackson
Richard, thanks for your perseverence.
Can you please test the patch I have just sent to the bug ?

You should be able to
  patch <0001-init-scripts-Do-not-kill-per-domain-qemu-processes.patch 
/etc/init.d/xen

It WFM.  That is, I checked that it kills the global qemu but leaves
a domU one alone.

I am considering shipping this change in a stable update for Xen 4.8.

Ian.



Bug#879751: [PATCH] init scripts: Do not kill per-domain qemu processes.

2018-02-23 Thread Ian Jackson
Control: tags -1 + patch

>From 1bb0ee913b35da4d4e6a86b92beb01aa5f77e5c9 Mon Sep 17 00:00:00 2001
From: Ian Jackson 
Date: Fri, 23 Feb 2018 17:04:16 +
Subject: [PATCH] init scripts: Do not kill per-domain qemu processes.

Drop 2nd start-stop-daemon from qemu_stop_real xen init script.
Closes:#879751.

This code was introduced in
  8ad8a8221d9884b76f6942acabd9465e11ca23bd
  Start a qemu process in dom0 to service the toolstacks loopback disk attaches.

Ie the commit which introduced the global qemu.  There is no
indication that there was any intent to do anything to the per-domain
qemus.

I think the 2nd s-s-d invocation is there to stop a qemu which is for
some reason not mentioned in the pidfile and somehow escaped.  That
seems like a thing we should try to prevent.  I don't think if it
comes to pass, that it can be cleaned up without trashing the domUs.

So remove it.

Signed-off-by: Ian Jackson 
---
 debian/xen-utils-common.xen.init | 2 --
 1 file changed, 2 deletions(-)

diff --git a/debian/xen-utils-common.xen.init b/debian/xen-utils-common.xen.init
index a153885..3411c15 100644
--- a/debian/xen-utils-common.xen.init
+++ b/debian/xen-utils-common.xen.init
@@ -235,8 +235,6 @@ qemu_stop_real()
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile 
"$QEMU_PIDFILE" --exec "$QEMU"
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
-   start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec 
"$QEMU"
-   [ "$?" = 2 ] && return 2
rm -f $QEMU_PIDFILE
return "$RETVAL"
 }
-- 
2.1.4


-- 
Ian Jackson    These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.