DNSMasq loses entry for instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
sudhakar kumar srivastava |
Bug Description
After booting a large number of new instances, instances randomly lose their ip address after running for a while. The instances were all reachable before. When I login via the web console and run `ip -4 a`, the vm does not have an ipv4 address.
The host file kept by dnsmasq in /var/lib/
There is an (ugly) workaround: stop neutron-dhcp-agent, kill the dnsmasq process for the corresponding network-id, and start neutron-dhcp-agent again, and the entry gets added to the host file and the instance becomes reachable again.
It looks a lot like this bug: https:/
Except in this bug, the reporter sees entries getting added to the file, and we're seeing entries getting removed from the file.
* Pre-conditions:
This is a production environment which hosts about 350-400 VMs. We are creating and deleting about 1000+ VMs per week. The issue we are seeing can affect anyone that uses the system, but it seems to happen more in networks with a lot of activity (a lot of newly created VMs).
* Step-by-step reproduction steps:
- Boot a large number of VMs (> 10) at the same time.
- SSH into the VMs and do your work.
- After a random amount of time the VM becomes unreachable
*Expected output:
VMs keep their ip address and stay reachable after booting.
* Actual output:
VMs are available at first, but eventually lose their ip address. The dnsmasq host file is missing the entry for that ip address.
* Version:
** Openstack Mitaka 9.0, deployed with Fuel.
** Ubuntu 14.04.5 LTS, running kernel 3.13.0-92-generic
** Neutron version 2:8.0.0-
** DNSMasq version 2.68-1ubuntu0.1
Changed in neutron: | |
assignee: | nobody → sudhakar kumar srivastava (sudhakar.srivastava) |
Hi Matthijs Grünbauer,
I launched around 45 VM's in the same network and tried to check the reachability of each VM through ssh and ping from my network namespace and also verified the host file and lease file which listed all the VM's .
Specified behaviour as mentioned in the bug:
1) After login via the web console and run `ip -4 a`, the vm does not have an ipv4 address. neutron/ dhcp/<network- id>/host, shows that the entry for that VM is missing in the file
2) The host file kept by dnsmasq in /var/lib/
Actual behaviour:
1) After login via the web console and run `ip -4 a`, it is listing the ipv4 address of the vm.
2)The host file is listing all the VM's that were created even after checking it after a day
So please refer the attachments"