GNU bug report logs -
#27887
[PATCH] services: Add libvirt services
Previous Next
Reported by: Ryan Moe <ryan.moe <at> gmail.com>
Date: Mon, 31 Jul 2017 18:23:01 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
I did some more testing and everything looks good to me. I've
addressed your previous comments as well (see below). I wasn't sure if
I needed to squash the commits so I just included all three patches. I
did reorder them to place your wrap patch before mine since the
libvirt service depends on that change.
>> +(define libvirt-service-type
>> + (service-type (name 'libvirt)
>> + (extensions
>> + (list
>> + (service-extension polkit-service-type (compose list libvirt-configuration-libvirt))
>
> Line length could be better here, just by putting the (compose ... )
> bit on the line after the polkit-service-type.
>
Agreed. This is fixed in the attached patch.
>> + (service-extension profile-service-type
>> + (compose list
>> + (lambda (package) qemu)
>> + libvirt-configuration-libvirt))
>
> This confused me for a bit, until I realised that a simpler way of
> expressing this would be (const (list qemu)) if I'm correct? Also, it
> would be good to explain why this needs to happen in a comment.
>
That didn't work. qemu doesn't need to be installed in the system
profile anyway so I've removed this.
>> +(define virtlog-service-type
>> + (service-type (name 'virtlogd)
>> + (extensions
>> + (list
>> + (service-extension profile-service-type
>> + (compose list
>> +
>> virtlog-configuration-libvirt))
>
> What function does this extension have? As far as I understood from the
> documentation you wrote, this is used from the libvirt service.
Now that I have a better understanding of how this works I realize
this was unnecessary and it's been removed too.
[0001-packages-virtualization-Wrap-libvirtd-with-iproute-a.patch (text/x-patch, attachment)]
[0002-services-Add-libvirt-services.patch (text/x-patch, attachment)]
[0003-tests-Add-libvirt-service-type-test.patch (text/x-patch, attachment)]
This bug report was last modified 7 years and 330 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.