dhcp service is unavailable if we delete dhcp port
Bug #1469615 reported by
shihanzhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
shihanzhang |
Bug Description
if we delete the dhcp port, the dhcp service for corresponding network is unavailable, because dhcp port is deleted from neutron-server, but the TAP device on network node is not deleted, and the tag for this TAP is dead vlan 4095, and the dhcp service can' t be recovered.
reproduce steps:
1. create network, subnet
2. delete the dhcp port in this network
I found the TAP device on network node was not deleted, but its tag is 4095
Changed in neutron: | |
assignee: | nobody → shihanzhang (shihanzhang) |
description: | updated |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-2 → 7.0.0 |
To post a comment you must log in.
This should be a fairly simple change:
diff --git a/neutron/ agent/dhcp/ agent.py b/neutron/ agent/dhcp/ agent.py agent/dhcp/ agent.py agent/dhcp/ agent.py manager. Manager) :
network = self.cache. get_network_ by_id(port. network_ id)
self. cache.remove_ port(port) driver( 'reload_ allocations' , network) port_on_ this_agent( port): dhcp_helper( port.network_ id) driver( 'reload_ allocations' , network)
index 6b5ac5a..1737abc 100644
--- a/neutron/
+++ b/neutron/
@@ -350,7 +350,10 @@ class DhcpAgent(
if port:
- self.call_
+ if self._is_
+ self.disable_
+ else:
+ self.call_
def enable_ isolated_ metadata_ proxy(self, network):