Comment 16 for bug 1777968

Revision history for this message
Maciej Jozefczyk (maciejjozefczyk) wrote :

This bug is still happening and it hurts big Openstack Deployments.
Its easy to reproduce with Parallel on latest devstack with the fixes that were introduced.

for i in {1..300}; do echo port${i};done | parallel -vv -j 50 neutron port-create public --name {}

According to what LIU Yulong say the main issue is the generator of IP addresses:
https://github.com/openstack/neutron/blob/master/neutron/ipam/drivers/neutrondb_ipam/driver.py#L153-L178

We can confirm that also it is visible when it generates IP from large IPv6 class, even with latest patch.

Introduced patch makes the whole ip-generation process very slow due a lot of retries and waits.
We consider to rewrite the gen function to make it Deadlock and Duplicate Error resistant.