Very often in DHCP agent we have ""Duplicate IP addresses found, DHCP cache is out of sync"
Bug #1828423 reported by
Slawek Kaplonski
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Slawek Kaplonski |
Bug Description
As described in comment https:/
To reproduce this it is enough to create new network, subnet and port in this network. It will then be allocated to dhcp agent and in logs there will be such warning.
Changed in neutron: | |
importance: | Undecided → Low |
Changed in neutron: | |
importance: | Low → Medium |
To post a comment you must log in.
Hi:
I tried to (in this order):
- Create a network
- Create a subnet
I've tested a bit adding more log information. I've seen that, when the event "network create" is processed [1], tries to retrieve the network information, NOT from the cache but from the RPC client [2]. Then in [3], this new information (network, subnet and port) is added to the cache (debug log added at the beginning of [4]):
WARNING neutron. agent.dhcp. agent [-] RAH - put network: _ns_name= qdhcp-a46c2769- fd1c-49f5- 889f-6f019b727a 48, admin_state_ up=True, availability_ zone_hints= [], availability_ zones=[ 'nova'] , created_ at=2019- 05-20T11: 20:38Z, description=, id=a46c2769- fd1c-49f5- 889f-6f019b727a 48, ipv4_address_ scope=None, ipv6_address_ scope=None, mtu=1500, name=net9, non_local_ subnets= [], port_security_ enabled= True, ports=[{'id': '3ba19af8- 26fd-481e- bc60-2e294c74c7 d4', 'name': '', 'network_id': 'a46c2769- fd1c-49f5- 889f-6f019b727a 48', 'tenant_id': '159b38ee91dc46 a59a40536b26cc4 233', 'mac_address': 'fa:16: 3e:07:1f: a8', 'admin_state_up': True, 'status': 'ACTIVE', 'fixed_ips': [{'subnet_id': '38695b5e- ad25-4993- a851-8e1e18b053 cf', 'ip_address': '10.103.0.2', 'subnet': {'id': '38695b5e- ad25-4993- a851-8e1e18b053 cf', 'name': 'subnet3_a', 'tenant_id': '159b38ee91dc46 a59a40536b26cc4 233', 'network_id': 'a46c2769- fd1c-49f5- 889f-6f019b727a 48', 'ip_version': 4, 'subnetpool_id': None, 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_ mode': None, 'gateway_ip': '10.103.0.1', 'cidr': '10.103.0.0/24', 'allocation_pools': [{'start': '10.103.0.2', 'end': '10.103.0.254'}], 'host_routes': [], 'dns_nameservers': [], 'shared': False, 'description': '', 'service_types': [], 'tags': [], 'created_at': '2019-05- 20T11:20: 45Z', 'updated_at': '2019-05- 20T11:20: 45Z', 'revision_number': 0, 'project_id': '159b38ee91dc46 a59a40536b26cc4 233'}}] , 'device_id': 'dhcp95cf1ac9- 7fbf-5be6- bc93-e3471f4e5b 33-a46c2769- fd1c-49f5- 889f-6f019b727a 48', 'device_owner': 'network:dhcp', 'allowed_ address_ pairs': [], 'extra_dhcp_opts': [], 'security_groups': [], 'description': '', 'binding: vnic_type' : 'normal', 'binding:profile': {}, 'binding:host_id': 'osdev18', 'binding:vif_type': 'ovs', 'binding: vif_details' : {'port_filter': True, 'ovs_hybrid_plug': False, 'datapath_type': 'system', 'bridge_name': 'br-int'}, 'port_security_ enabled' : False, 'qos_policy_id': None, 'resource_request': None, 'tags': [], 'created_at': '2019-05- 20T11:20: 46Z', 'updated_at': '2019-05- 20T11:20: 49Z', 'revision_number': 4, 'project_id': '159b38ee91dc46 a59a40536b26cc4 233'}], project_ id=159b38ee91dc 46a59a40536b26c c4233, provider: network_ type=vlan, provider: physical_ network= default, provider: segmentation_ id=1072, qos_policy_id=None, revision_number=3, router: external= False, shared=False, status=ACTIVE, subnets=[{'id': '38695b5e- ad25-4993- a851-8e1e18b053 cf', 'name': 'subnet3_a', 'tenant_id': '159b38ee91dc46 a59a40536b26cc4 233', 'network_id': 'a46c2769- fd1c-49f5- 889f-6f019b727a 48', 'ip_version': 4, 'subnetpool_id': None, 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_ mode': None, 'gateway_ip': '10.103.0.1', 'cidr': '10.103.0.0/24', 'allocation_pools': [{'start': '10.103.0.2', 'end': '10.103.0.254'}], 'host_routes': [], 'dns_nameservers': []...