[fuel-devops 3.0] AddressPool._safe_create_network does not protect from race condition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Anton Studenov |
Bug Description
When multiple environments are being created at the same time, there is a race condition
for AddressPool networks.
Steps to reproduce:
Run two dos.py create-env simultaneously
Expected result:
Environments are created properly
Actual result:
Second environment gets error stacktrace:
File "/home/
exec(
File "/home/
main()
File "/home/
Shell(
File "/home/
self.
File "/home/
self.
File "/home/
self.env = Environment.
File "/home/
environment
File "/home/
**data.
File "/home/
**params
File "/home/
**params
File "/home/
return func(*args, **kwargs)
File "/home/
transaction
File "/home/
get_
File "/home/
self.
File "/home/
"This is forbidden when an 'atomic' block is active.")
django.
Workaround:
Create environments consecutively
Impact:
May affect CI
Changed in fuel: | |
assignee: | nobody → Anton Studenov (astudenov) |
status: | New → In Progress |
Changed in fuel: | |
milestone: | none → 10.0 |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/336566
Review: https:/