commit 779421e48147442a97e9e51d76c803f52834dd88
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Apr 5 22:21:01 2016 +0000
When ip_alloc request lands in different api servers the bitarray local to the
api-server wont have marked the ip is used, However the other api-server might
have allocated the ip and locked it in zookeeper with id "user-opaque-alloc".
So this api-server assumes that the ip is not allocated and try to create a lock
with same id "user-opaque-alloc", zookeeper respoonds with the last allocated ip
as the id(user-opaque-alloc) is same.
Reviewed: https:/ /review. opencontrail. org/19083 github. org/Juniper/ contrail- controller/ commit/ 779421e48147442 a97e9e51d76c803 f52834dd88
Committed: http://
Submitter: Zuul
Branch: R3.0
commit 779421e48147442 a97e9e51d76c803 f52834dd88
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Apr 5 22:21:01 2016 +0000
When ip_alloc request lands in different api servers the bitarray local to the alloc". alloc", zookeeper respoonds with the last allocated ip opaque- alloc) is same.
api-server wont have marked the ip is used, However the other api-server might
have allocated the ip and locked it in zookeeper with id "user-opaque-
So this api-server assumes that the ip is not allocated and try to create a lock
with same id "user-opaque-
as the id(user-
Fix is to use unique id for every ip allocation.
Change-Id: I2afdca95a1f8f4 6e584c8497c806d 75a14acfe86
Closes-bug: 1565730