Port create/delete issue in etcd when setting/removing Neutron Router gateway
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-vpp |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce on a HA setup on OpenStack Newton.
(1) Create a Neutron Router, and set up an external gateway with it. You will see below entries are created in etcd:
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
Compared to neutron port-list:
+------
| id | name | mac_address | fixed_ips |
+------
| 084973a8-
| 6409b006-
| 8bb3104b-
| d2f40e95-
+------
So we will see port 084973a8-
[root@c45-mgmt yicwang]# neutron port-show 084973a8-
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | c45-control-2 |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | plugtap |
| binding:vnic_type | normal |
| created_at | 2017-02-
| description | |
| device_id | e5cb36fc-
| device_owner | network:
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "f3a717c1-
| id | 084973a8-
| mac_address | fa:16:3e:a3:dd:d5 |
| name | |
| network_id | 47730fc8-
| port_security_
| project_id | |
| revision_number | 8 |
| security_groups | |
| status | ACTIVE |
| tenant_id | |
| updated_at | 2017-02-
+------
2. Clear the gateway from OpenStack API/Horizon, and the corresponding port is only removed from its binding:host_id, but not from all three. From etcd:
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
/networking-
So questions:
(1) Are we expected to create the port on all three controllers for external gateway Neutron port?
(2) If yes, the bug is about we should delete all three ports from etcd when port is being deleted. If no, the bug is about we only need to create the port on on one of the controller.
Changed in networking-vpp: | |
status: | Fix Released → In Progress |
Changed in networking-vpp: | |
importance: | Undecided → High |
Changed in networking-vpp: | |
milestone: | none → 17.10.0 |
Changed in networking-vpp: | |
status: | In Progress → Fix Released |
This has gone away as a consequence of fixing the unbind bug - it was an unbind/cleanup issue.