I deployed openstack HA with openvswitch. During creating the instances we found few instances get the ip address from dhcp agent. But after some time we are seeing issue with agent with the following error.
dnsmasq: failed to create inotify: Too many open files
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent [-] Unable to enable dhcp for 1346711a-66b8-4d24-81b8-e9d7a2e28248.
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent Traceback (most recent call last):
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp/agent.py", line 112, in call_driver
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent getattr(driver, action)(**action_kwargs)
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 210, in enable
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent self.spawn_process()
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 424, in spawn_process
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent self._spawn_or_reload_process(reload_with_HUP=False)
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 438, in _spawn_or_reload_process
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent pm.enable(reload_cfg=reload_with_HUP)
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/external_process.py", line 92, in enable
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent run_as_root=self.run_as_root)
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 927, in execute
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent log_fail_as_error=log_fail_as_error, **kwargs)
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 140, in execute
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent raise RuntimeError(msg)
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent RuntimeError: Exit code: 5; Stdin: ; Stdout: ; Stderr:
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent dnsmasq: failed to create inotify: Too many open files
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent
2016-06-16 02:57:22.712 35607 ERROR neutron.agent.dhcp.agent
root@rack-6-m1:/var/log/neutron# pastebinit neutron-dhcp-agent.log
http://paste.ubuntu.com/17389205/
pastebinit ../juju/unit-neutron-gateway-0.log
http://paste.ubuntu.com/17389255/
When i tried the same bundle with trusty then it works fine.
after making this change it is ok how can i do it using charm and which charm can i include in?