Using leases with virtlockd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nearly a question for the users list, but I might be encountering a bug too.

I'm using virtlockd with 'auto_disk_leases = 0' and struggle with the
correct configuration for a lease in the domXML.  Using

    <lease>
      <lockspace>test-ls</lockspace>
      <key>test-lock</key>
      <target path='/var/lib/libvirt/lockd'/>
    </lease>

results in the following error when starting the domain

internal error Lockspace for path /var/lib/libvirt/lockd/test-ls

It appears the path attribute + lockspace are used as the Lockspace for
this lease.  But I'm not sure what "Lockspace" means in this context. 
Is it a directory?  A file?  I assume the latter since it is just
flock()ed when the domain is started, right?

I'll be happy to provide patches to fix any bugs that might exist here
(docs included), but need understand the correct configuration of leases
with virtlockd first :).

BTW, nice piece of work Daniel!

Regards,
Jim

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]