Add network to new dhcp agent cause the dhcp port status to be BUILD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Confirmed
|
Medium
|
KaiLin |
Bug Description
SYMPTOM:
1.neutron dhcp-agent-
2.neutron dhcp-agent-
3.neutron port-show [dhcp-port]
Then the status of dhcp port change to BUILD, and this may cause some problem of the dhcp server and the metadata server .
CAUSE:
First I find the binding:host_id of dhcp port doesn't change to the new host_id after dhcp-agent-
Then I check the code, I find it the status of port change to BUILD in the devices_
And it should change the status of port to ACTIVE in update_
if (host and not plugin.
return
We can see this,it return directly because the port didn't bind to the new host, so cause the problem.
FIX:
I think we should update the binding:host_id of dhcp port to the new host.
Changed in neutron: | |
assignee: | nobody → KaiLin (linkai3) |
description: | updated |
tags: | added: dhcp |
tags: |
added: l3-ipam-dhcp removed: dhcp |
Changed in neutron: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
I am not able to reproduce it on Liberty.
vagrant@ controller: ~/devstack$ neutron port-list ------- ------- ------- ------- ----+-- ----+-- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ ------- ------- ------- ------- ----+-- ----+-- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ e341-471c- a251-348ac3f232 1c | | fa:16:3e:e1:53:96 | {"subnet_id": "56a5d77a- c12d-4d5d- bc62-5365991343 e4", "ip_address": "10.0.2.2"} | ------- ------- ------- ------- ----+-- ----+-- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ controller: ~/devstack$ neutron port-show 913f85c0- e341-471c- a251-348ac3f232 1c ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ address_ pairs | | a0d1-5d71- 9947-f17125c357 bb-fcbaa8b8- eeb7-4319- 8993-b8cff593b3 15 | c12d-4d5d- bc62-5365991343 e4", "ip_address": "10.0.2.2"} | e341-471c- a251-348ac3f232 1c | eeb7-4319- 8993-b8cff593b3 15 | e9197809e7a871d dc |
+------
| id | name | mac_address | fixed_ips |
+------
| 913f85c0-
+------
vagrant@
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | controller |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | bridge |
| binding:vnic_type | normal |
| device_id | dhcpd3377d3c-
| device_owner | network:dhcp |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "56a5d77a-
| id | 913f85c0-
| mac_address | fa:16:3e:e1:53:96 |
| name | |
| network_id | fcbaa8b8-
| security_groups | |
| status | ACTIVE |
| tenant_id | ac3914a6532f41b
+--...