Bug #20173

Concurrent calls to Subnet#unused_ip may return the same ip address
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
In the time between lock file existence check and lock file creation it is possible for other threads to successfully pass File.exists? check, therefore creating a race condition.
Related issues
Associated revisions
History
#1
Updated by Anonymous over 5 years ago
- Bugzilla link set to 1459644
#2
Updated by Anonymous over 5 years ago
- Category set to DHCP
#3
Updated by The Foreman Bot over 5 years ago
- Assignee set to Anonymous
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/534 added
#4
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 37e4072970858618140d0c9692b6e4727b5202be.
#5
Updated by Lukas Zapletal over 5 years ago
- Related to Bug #20474: Multiple free IPs returned after record deletion added
#6
Updated by Lukas Zapletal over 5 years ago
- Legacy Backlogs Release (now unused) set to 287
BZ associated, we need a cherry pick thanks.
#7
Updated by Lukas Zapletal almost 5 years ago
- Related to Feature #23406: Foreman should pre allocate ip addresses in IPAM to prevent conflicts added
#8
Updated by Anonymous almost 5 years ago
- Related to Bug #23523: Infoblox DHCP gives unreliable free IPs added
Fixes #20173,#6819 - removed race condition in Subnet#unused_ip