[libvirt] [PATCH] admin: Fix the default uri for session daemon to libvirtd:///session

Michal Privoznik mprivozn at redhat.com
Fri Jul 29 13:40:28 UTC 2016


On 29.07.2016 14:08, Daniel P. Berrange wrote:
> On Fri, Jul 29, 2016 at 02:06:00PM +0200, Erik Skultety wrote:
>> Just like we decide on which URI we go with based on EUID for qemu in remote
>> driver, do a similar thing for admin except we do not spawn a daemon in this
>> case.
> 
> IMHO we should auto-spawn the daemon too, so we have consistent
> behaviour virsh virsh.
> 

I don't think this is a good idea. The session daemon dies after 30
seconds after last connection was closed. There's no point in setting
something via admin API just to find it back on defaults after 1 minute
because new daemon has been spawned. It's not like our domain APIs where
libvirt refreshes the internal state of drivers upon their init.

Michal




More information about the libvir-list mailing list