Then I start two windows in parallel with the same command:
for i in `seq 1 50`; do quantum port-create test1 | grep fixed_ips; done
I don't see any instances of the same IP being allocated, even though there does seem to be interweaving based on the fact that the same window sometimes gets two IPs in a row.
I cannot repro this with mysql using master. Perhaps its specific to postgresql ?
Here is my test, it would be good if you could try it on your setup:
set port_quota in quantum.conf to -1 (unlimited) and restart quantum-server
In one window, i run:
quantum net-create test1
quantum subnet-create test1 10.0.0.0/24
Then I start two windows in parallel with the same command:
for i in `seq 1 50`; do quantum port-create test1 | grep fixed_ips; done
I don't see any instances of the same IP being allocated, even though there does seem to be interweaving based on the fact that the same window sometimes gets two IPs in a row.