[NETVIRT-135] controller dhcp-service not run when controller-dhcp-enabled=false Created: 12/Sep/16  Updated: 05/Oct/16  Resolved: 05/Oct/16

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Boron
Fix Version/s: None

Type: Bug
Reporter: Koby Aizer Assignee: Ravit Peretz
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6693

 Description   

Currently, the default implementation for DHCP server is not using the controller (controller-dhcp-enabled=false by default). The flag only affected the rules, but didn't disable the DHCP service itself. Therefore if a DHCP packet is somehow punted to the controller, the dhcpservice will handle it and even respond. This can probably cause severe IP conflicts.

Until https://git.opendaylight.org/gerrit/#/c/44785/ is merged, this constantly happens when the DHCP packets are reaching table=46 (PNAT), and therefore punted to the controller by mistake. This causes the controller DHCP server to respond to them.

Probably need to implement the following:
1. The DHCP Server should only respond to DHCP requests punted from its table. DHCP requests arriving from other tables should be ignored.
2. The DHCP server should not run at all when the controller-dhcp-enabled flag is false)



 Comments   
Comment by Ravit Peretz [ 19/Sep/16 ]

patch fix:
https://git.opendaylight.org/gerrit/#/c/45529/

Generated at Wed Feb 07 20:20:47 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.