[libvirt] [PATCH] qemu: Do not reset labels when migration fails

Peter Krempa pkrempa at redhat.com
Fri Jul 31 12:39:13 UTC 2015


On Fri, Jul 31, 2015 at 13:57:29 +0200, Jiri Denemark wrote:
> When stopping a domain on the destination host after a failed migration,
> we need to avoid reseting security labels since the domain is still
> running on the source host. While we were correctly doing so in some
> cases, there were still some paths which did this wrong.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1242904
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/qemu/qemu_driver.c    |  5 ++++-
>  src/qemu/qemu_migration.c |  3 ++-
>  src/qemu/qemu_process.c   | 14 ++++++++++----
>  3 files changed, 16 insertions(+), 6 deletions(-)
> 

You also need to fix the case where an incomming migration is killed on
daemon restart in qemuProcessReconnect.

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150731/1bc8314b/attachment-0001.sig>


More information about the libvir-list mailing list