[openstack-dev] [nova] Distributed locking
Matthew Booth
mbooth at redhat.com
Thu Jun 12 14:48:55 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/06/14 15:35, Julien Danjou wrote:
> On Thu, Jun 12 2014, Matthew Booth wrote:
>
>> We have a need for a distributed lock in the VMware driver, which
>> I suspect isn't unique. Specifically it is possible for a VMware
>> datastore to be accessed via multiple nova nodes if it is shared
>> between clusters[1]. Unfortunately the vSphere API doesn't
>> provide us with the primitives to implement robust locking using
>> the storage layer itself, so we're looking elsewhere.
>
> The tooz library has been created for this purpose:
>
> https://pypi.python.org/pypi/tooz
>
> https://git.openstack.org/cgit/stackforge/tooz/
>
>> Although I haven't worked through the detail, I believe lock and
>> unlock would be implementable in all 3 of the current service
>> group drivers. Fencing would be implemented separately.
>
> The plan is to leverage tooz to replace the Nova service group
> drivers, as this is also usable in a lot of others OpenStack
> services.
This looks interesting. It doesn't have hooks for fencing, though.
What's the status of tooz? Would you be interested in adding fencing
hooks?
Matt
- --
Matthew Booth
Red Hat Engineering, Virtualisation Team
Phone: +442070094448 (UK)
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlOZvc8ACgkQNEHqGdM8NJCgHQCcCTGaZ9520HCa60MJ0xhkD81O
pi4AnA2x9nwGD5F5xD8SHYEYNOpRri/2
=WIsg
-----END PGP SIGNATURE-----
More information about the OpenStack-dev
mailing list