Cinder passes same 'image_id', from which the
lock_name is created. This 'lock_name' is used
by 'tooz.locking' to acquire the lock.
In this flow, based on 'lock_name' it creates the
'key' and stored in 'etcd'. etcd3gw client does
not allow to modify the same key several times
within one transactionn. so to aviod this, pass
unique 'lock_name' which in turn creates unique
key.
Reviewed: https:/ /review. openstack. org/487694 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=35ae6fb9038 0a8e9db936827a4 414cb249ef399b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 35ae6fb90380a8e 9db936827a4414c b249ef399b
Author: Vivek Soni <email address hidden>
Date: Wed Jul 26 22:09:17 2017 -0700
Handle concurrent volume creation request
Cinder passes same 'image_id', from which the
lock_name is created. This 'lock_name' is used
by 'tooz.locking' to acquire the lock.
In this flow, based on 'lock_name' it creates the
'key' and stored in 'etcd'. etcd3gw client does
not allow to modify the same key several times
within one transactionn. so to aviod this, pass
unique 'lock_name' which in turn creates unique
key.
Change-Id: Ib78ba6aa1fcc48 8aa2ab7db25a370 21f206519dd
Closes-Bug: #1705442