ML2 doesn't return fixed_ips on a port update with binding
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Hong Hui Xiao |
Bug Description
I found this yesterday while working on deferred IP allocation for routed networks. However, it isn't unique to deferred port binding. With my deferred IP allocation patch [2], I need to be able to make a port create call [1] without binding information that doesn't allocate an IP address. Then, I need to follow it up with a port update which sends host binding information and allocates an IP address. But, when I do that, the response doesn't contain the IP addresses that were allocated [3]. However, immediately following it with a GET on the same port shows the allocation [4].
This doesn't happen in other plugins besides ML2. Only with ML2. I've put up a patch to run unit tests with ML2 that expose this problem [5]. The problem can be reproduced on master [6]. I can get it to happen by creating a network without a subnet, creating a port on the network (with no IP address), and then calling port update to allocate an IP address.
If this goes unaddressed, Nova will have to make a GET call after doing a port update with binding information when working with a port with deferred IP allocation.
[1] http://
[2] https:/
[3] http://
[4] http://
[5] http://
[6] https:/
Changed in neutron: | |
assignee: | nobody → Hong Hui Xiao (xiaohhui) |
status: | New → In Progress |
Changed in neutron: | |
assignee: | Hong Hui Xiao (xiaohhui) → Carl Baldwin (carl-baldwin) |
Changed in neutron: | |
assignee: | Carl Baldwin (carl-baldwin) → Hong Hui Xiao (xiaohhui) |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
I marked this High because we need to start doing deferred IP allocation when host binding information is provided on port update. This is for routed networks.