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

[libvirt] Using leases with virtlockd



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


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