dhcp-agent with reserved_dhcp_port raise cannot find tap device error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
=====
my env
=====
upstream code.
2 dhcp-agents, setting dhcp_agents_
optional: checkout [1] https:/
===========
steps to reproduce
===========
1, create a private net and its subnet, enable_dhcp(True) by default.
2, verify both two dhcp-agents host net, by "ip netns", and we can find dhcp-port tapA is used by dhcp-agent-1, and dhcp-port tapB is used by dhcp-agent-2.
3, stop/kill two dhcp-agnets.
4, update two dhcp-ports device_id from previous one to "reserved_
>>neutron port-update --device_
5, start two dhcp-agents again, when dhcp-agent-1 try to setup tapB and dhcp-agent-2 try to setup tapA, error like 'Cannot find device "tapX" ' will raise.
---------------
explanation
---------------
1. step 4 is try to simulate case remove_
2, about patch in [1], it's optional, even without that patch, this issue can still raise. But sometime for stale ports existing, this issue will not raise, but that's not a good reason to keep stale dhcp-port. That patch will help to cleanup stale ports, and make this issue easier to be seen.
=======
TRACE log
=======
2015-11-06 05:46:41.634 DEBUG neutron.
2015-11-06 05:46:41.635 DEBUG neutron.
2015-11-06 05:46:41.664 ERROR neutron.
Command: ['ip', 'netns', 'exec', u'qdhcp-
Exit code: 1
Stdin:
Stdout:
Stderr: Cannot find device "tapbcd64879-be"
2015-11-06 05:46:41.665 ERROR neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
2015-11-06 05:46:41.665 TRACE neutron.
Changed in neutron: | |
assignee: | nobody → ZongKai LI (lzklibj) |
Changed in neutron: | |
status: | New → Incomplete |
This bug is > 240 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.
If the bug is still valid, then update the bug status.