test_router_add_interface_port may fail due to extra port created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Shih-Hao Li |
Bug Description
test_router_
created during add_router_
The potential problem is introduced by Commit 6281fddbcb4c
(https:/
which adds an additional update_port inside add_router_
to update device_id and device_owner on the newly created router port.
The problem could happen when users attach a subnet (for example 10.0.0.0/24)
to a router. During the add_router_
create an internal metadata subnet (such as 169.254.169.252/30) and attach
it to the same router. Since two router ports (10.0.0.1 and 169.254.169.253)
are created during this operation, the extra update_port was called for both
router ports.
Before Commit 6281fddbcb4c, test_router_
update_port call on 10.0.0.1. After the change, it now sees three
update_port calls, two on 10.0.0.1 and one on 169.254.169.253. Because it
doesn't expect to see the update_port call on port 169.254.169.253 (which is
the last update_port call), the update_
Changed in neutron: | |
assignee: | nobody → Shih-Hao Li (shihli) |
status: | New → In Progress |
tags: | added: l3-dvr-backlog unittest |
A possible solution is posted at
https:/ /review. openstack. org/#/c/ 355094/