]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirtd: Explicit dependency on systemd-machined
authorMichal Koutný <mkoutny@suse.com>
Wed, 10 Jan 2018 22:06:41 +0000 (23:06 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Mon, 22 Jan 2018 15:55:12 +0000 (16:55 +0100)
commit1b0c42ff7af3026b7986f81989dece0da53c8b5d
treecdceb795f1eb3b310f67f940bfc8b7bb368a88bf
parented2049ea19f53baf276804a8d1e620ab843a01cc
libvirtd: Explicit dependency on systemd-machined

The libvirtd daemon uses systemd-machined D-Bus API when manipulating
domains. The systemd-machined is D-Bus activated on demand.

However, during system shutdown systemd-machined is stopped concurrently
with libvirtd and virsh users also doing their final cleanup may
transitively fail due to unavailability of systemd-machined. Example
error message

> libvirtd[1390]: 2017-12-20 18:55:56.182+0000: 32700: error : virSystemdTerminateMachine:503 : Refusing activation, D-Bus is shutting down.

To circumvent this we need to explicitly specify both ordering and
requirement dependency (to avoid late D-Bus activation) on
systemd-machined. See [1] for the dependency debate.

[1] https://lists.freedesktop.org/archives/systemd-devel/2018-January/040095.html
daemon/libvirtd.service.in