[libvirt] [PATCH] libvirt-guests: Weaken dependency on libvirtd

Martin Kletzander mkletzan at redhat.com
Mon Oct 10 13:59:54 UTC 2016


On Fri, Oct 07, 2016 at 10:19:53AM +0200, Andrea Bolognani wrote:
>The Requires relationship is very strong, in that it prevents
>a unit from running unless all the units it Requires are
>running as well.
>
>This turns out to be a problem because we want to be able to
>restart libvirtd at any time without having libvirt-guests
>suspend or shutdown running guests.
>
>Turn the Requires relationship into a Wants relationship:
>this way starting libvirt-guests will cause systemd to (attempt
>to) start libvirtd as well, but stopping or restarting libvirtd
>will not alter libvirt-guests' running state.

I can't figure out how exactly this works, even when looking at the
systemd.unit documentation.  You are saying that Wants= means that if
you issue 'service libvirtd stop' it will not save your guests after
this patch.  What if you stop the service and then shutdown the machine?
I would agree that it's your fault if it doesn't save your guests.  From
what I am reading, it makes sense, so ACK from me.  Basically because I
can't come up with scenarios that could be broken by this change =)

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161010/1517e660/attachment-0001.sig>


More information about the libvir-list mailing list