IP could be handed out twice from single node

Description

sniffle_ip is a single gen_server process, but the interface of claim/1 accepts an object of IPRange which could be the cause of IP conflict.

Assuming two processes want IP from the same IPRange, and sniffle_iprange:get it at the same time (nearly), sniffle_ip would definitely give the same IP twice.

I see it happens at my cluster.

Environment

None

Status

Assignee

Heinz N. Gies

Reporter

刘振

Labels

None

Components

Affects versions

Priority

Medium
Configure