[Backport 1447883] Restrict netmask of CIDR to avoid DHCP resync is not enough
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Critical
|
Alexander Ignatov | ||
6.0.x |
Fix Released
|
Critical
|
Denis Meltsaykin | ||
6.1.x |
Fix Released
|
Critical
|
Kevin Benton | ||
7.0.x |
Fix Released
|
Critical
|
Alexander Ignatov |
Bug Description
There are a couple of ways that a tenant can setup their subnet to cause the DHCP agent to go into a failure loop when it tries to create a port. This creates extra load on the agent that makes its response to other changes slower.
This is a backport of https:/
Description
===========
Restrict netmask of CIDR to avoid DHCP resync is not enough.
https:/
I'd like to prevent following case:
[Condition]
- Plugin: ML2
- subnet with "enable_dhcp" is True
[Operations]
A. Specify "[]"(empty list) at "allocation_pools" when create/
-------
$ $ curl -X POST -d '{"subnet": {"name": "test_subnet", "cidr": "192.168.200.0/24", "ip_version": 4, "network_id": "649c5531-
Then, the dhcp-agent creates own DHCP-port, it is reproduced resync bug.
B. Create port and exhaust allocation_pools
-------
1. Create subnet with 192.168.1.0/24. And, DHCP-port has alteady created.
gateway_ip: 192.168.1.1
DHCP-port: 192.168.1.2
allocation_
the number of availability ip_addresses is 252.
2. Create non-dhcp port and exhaust ip_addresses in allocation_pools
In this case, user creates a port 252 times.
the number of availability ip_addresses is 0.
3. User deletes the DHCP-port(
the number of availability ip_addresses is 1.
4. User creates a non-dhcp port.
the number of availability ports are 0.
Then, dhcp-agent tries to create DHCP-port. It is reproduced resync bug.
Changed in mos: | |
assignee: | nobody → MOS Neutron (mos-neutron) |
summary: |
- icehouse, juno, and kilo are susceptible to exception loops in the dhcp - agent + [Backport 1447883] Restrict netmask of CIDR to avoid DHCP resync is not + enough |
Changed in mos: | |
milestone: | none → 6.1 |
description: | updated |
tags: | added: neutron |
tags: | added: on verification |
tags: | added: 6.0 release-notes-done |
Fix proposed to branch: openstack- ci/fuel- 6.1/2014. 2 /review. fuel-infra. org/6555
Change author: Kevin Benton <email address hidden>
Review: https:/