Comment 5 for bug 1565730

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19083
Committed: http://github.org/Juniper/contrail-controller/commit/779421e48147442a97e9e51d76c803f52834dd88
Submitter: Zuul
Branch: R3.0

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.

Fix is to use unique id for every ip allocation.

Change-Id: I2afdca95a1f8f46e584c8497c806d75a14acfe86
Closes-bug: 1565730