auto_allocated_topology network creation isn't atomic per tenant
Bug #1591766 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Armando Migliaccio |
Bug Description
I've written a tempest test which creates 2 servers in nova which don't have any networking available in the tenant when the server create request is made. This invokes the auto_allocated_
The test failed because it expects at the end that there is only one private network for the tenant created but in this case there were two:
Showing that the network create wasn't atomic per tenant in concurrent requests from nova's compute manager.
Changed in neutron: | |
importance: | High → Low |
tags: | added: mitaka-backport-potential |
Changed in neutron: | |
assignee: | Armando Migliaccio (armando-migliaccio) → Kevin Benton (kevinbenton) |
Changed in neutron: | |
assignee: | Kevin Benton (kevinbenton) → Armando Migliaccio (armando-migliaccio) |
tags: | removed: mitaka-backport-potential |
tags: | added: mitaka-backport-potential |
tags: | removed: mitaka-backport-potential |
To post a comment you must log in.
Currently neutron does catch this and recover from it[1], but there is a small window where the network will be visible to the networks listing. Network creation can require the coordination of an external backend so it's hard to do this in an atomic fashion.
We can definitely figure out a way to hide it if we have to, but is it possible for Nova to just call the auto allocate API to get the network that it needs to use? During the development of auto allocate we discussed this specific issue and assumed nova would just get the auto allocated topology via the auto allocate API to avoid the problem.
1. http:// logs.openstack. org/01/ 327901/ 1/check/ gate-tempest- dsvm-neutron- full/9972b81/ logs/screen- q-svc.txt. gz#_2016- 06-12_14_ 46_57_349