yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26816
[Bug 1410067] [NEW] Add network to new dhcp agent cause the dhcp port status to be BUILD
Public bug reported:
SYMPTOM:
1.neutron dhcp-agent-network-remove [dhcp agent of network Node1] [network]
2.neutron dhcp-agent-network-add [dhcp agent of network Node2] [network]
3.neutron port-show [dhcp-port]
Then the status of dhcp port change to BUILD, and this will cause the dhcp server and the metadata server can't work normally.
CAUSE:
First I find the binding:host_id of dhcp port doesn't change to the new host_id after dhcp-agent-network-add.
Then I check the code, I find it the status of port change to BUILD in the devices_details_list = self.plugin_rpc.get_devices_details_list in ovs_neutron_agent.py.
And it should change the status of port to ACTIVE in update_device_up,but in the update_device_up we can see:
if (host and not plugin.port_bound_to_host(rpc_context,
port_id, host)):
LOG.debug(_("Device %(device)s not bound to the"
" agent host %(host)s"),
{'device': device, 'host': host})
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.
** Affects: neutron
Importance: Undecided
Assignee: KaiLin (linkai3)
Status: New
** Changed in: neutron
Assignee: (unassigned) => KaiLin (linkai3)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1410067
Title:
Add network to new dhcp agent cause the dhcp port status to be BUILD
Status in OpenStack Neutron (virtual network service):
New
Bug description:
SYMPTOM:
1.neutron dhcp-agent-network-remove [dhcp agent of network Node1] [network]
2.neutron dhcp-agent-network-add [dhcp agent of network Node2] [network]
3.neutron port-show [dhcp-port]
Then the status of dhcp port change to BUILD, and this will cause the dhcp server and the metadata server can't work normally.
CAUSE:
First I find the binding:host_id of dhcp port doesn't change to the new host_id after dhcp-agent-network-add.
Then I check the code, I find it the status of port change to BUILD in the devices_details_list = self.plugin_rpc.get_devices_details_list in ovs_neutron_agent.py.
And it should change the status of port to ACTIVE in update_device_up,but in the update_device_up we can see:
if (host and not plugin.port_bound_to_host(rpc_context,
port_id, host)):
LOG.debug(_("Device %(device)s not bound to the"
" agent host %(host)s"),
{'device': device, 'host': host})
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1410067/+subscriptions
Follow ups
References