Two DHCP ports on same network due to cleanup failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Stephen Ma | ||
Icehouse |
New
|
Undecided
|
Unassigned |
Bug Description
On a network, "neutron port-list --network_id <net-id> --device_owner 'network:dhcp'" shows there are two ports. This is checked from the mysql database:
mysql> select * from ports where tenant_id='abcd' and device_
+------
| tenant_id | id | name | network_id | mac_address | admin_state_up | status | device_id | device_owner |
+------
| abcd | 3d6a7627-
| abcd | a4c0eb19-
+------
2 rows in set (0.00 sec)
However, the "neutron dhcp-agent-
This problem is observed in an environment with 4 nodes running dhcp-agents. The neutron API server and the DHCP agents are NOT running on the same node.
What happened is that error occurred when the DHCP server is being "moved" from DHCP-agentA running on nodeA to DHCP-agentB running on nodeB. The sequence is
neutron dhcp-agent-
neutron dhcp-agent-
Right before or during the time step 1 is done, nodeA was rebooted. So the DHCP-port ws never removed. When nodeA came back and the DHCP-agent restarted, it didn't do the unplug of the dhcp port device. THe DHCP agent also failed to make the release_dhcp_port RPC call to the API-server to have the port deleted from mysql.
Changed in neutron: | |
assignee: | nobody → Stephen Ma (stephen-ma) |
description: | updated |
Changed in neutron: | |
assignee: | Stephen Ma (stephen-ma) → Mark McClain (markmcclain) |
Changed in neutron: | |
assignee: | Mark McClain (markmcclain) → Stephen Ma (stephen-ma) |
Changed in neutron: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-1 → 2014.2 |
Correction to the bug description: Nodes running Neutron DHCP-agents ARE NOT RUNNING Neutron API servers.