wrong gateway_ip setting in subnet constantly resyncs dhcp-agent, causing DHCP NAK dropping connection in guests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Security Advisory |
Won't Fix
|
Undecided
|
Unassigned | ||
neutron |
Fix Released
|
Low
|
Unassigned |
Bug Description
If any tenant creates a subnet with a wrong gateway ip (outside the subnet CIDR),
ip route will fail to set the route into the qdhcp namespace, and that
will cause constant resyncs and neutron-dhcp-agent malfunction.
This needs a fix either in parameter acceptance in API, or/and before calling iproute
into the neutron-dhcp-agent to avoid this problem.
[root@controllerNN ~(keystone_admin)]# neutron subnet-create privnet2 192.168.126.0/24 --gateway 192.168.222.1 --name badsubnet
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.126.1", "end": "192.168.126.254"} |
| cidr | 192.168.126.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.222.1 |
| host_routes | |
| id | 4f41041f-
| ip_version | 4 |
| name | badsubnet |
| network_id | 9ef49c17-
| tenant_id | 60b2f5dcf34542f
+------
And this is the log of the dhcp server:
[root@controllerNN ~(keystone_admin)]# tail -f /var/log/
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.107 3767 TRACE neutron.
2014-06-22 08:41:08.108 3767 INFO neutron.
2014-06-22 08:41:38.109 3767 INFO neutron.
2014-06-22 08:41:38.426 3767 ERROR neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.426 3767 TRACE neutron.
2014-06-22 08:41:38.427 3767 INFO neutron.
Changed in ossa: | |
status: | New → Incomplete |
Changed in ossa: | |
status: | Incomplete → Won't Fix |
information type: | Private Security → Public |
Changed in neutron: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in neutron: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-3 → 2014.2 |
I think this bug report duplicates this:
https:/ /review. openstack. org/#/c/ 92619/
https:/ /bugs.launchpad .net/neutron/ +bug/1304181
just it's more severe than it looks.