commit bdead2d55e79e1c333ff9c823946e2673d1e2988
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Apr 5 04:36:39 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" to get the last allocated ip as response from
zookeeper as the id(user-opaque-alloc) is same.
Reviewed: https:/ /review. opencontrail. org/19078 github. org/Juniper/ contrail- controller/ commit/ bdead2d55e79e1c 333ff9c823946e2 673d1e2988
Committed: http://
Submitter: Zuul
Branch: master
commit bdead2d55e79e1c 333ff9c823946e2 673d1e2988
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Apr 5 04:36:39 2016 +0000
When ip_alloc request lands in different api servers the bitarray local to the alloc". 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-alloc" to get the last allocated ip as response from
zookeeper as the id(user-
Fix is to use unique id for every ip allocation.
Change-Id: I08c368e88e136e 9e52db135f9ca76 e000497c22c
Closes-bug: 1565730