Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

could not open /dev/net/tun: Operation not permitte

Hi

I configured Neutron and all configurations are good and kept all the configurations related to neutron in nova also according to this link

http://docs.openstack.org/havana/install-guide/install/apt/content/neutron-install.dedicated-network-node.html

after configuring the nova and neutron i'm unable to get the instane booting up there after i checked the log files both in neutron and nova the log files are as follows:

aachutha@aachuthakvm001:~$ tail -f /var/log/nova/nova-scheduler.log 2014-08-18 10:02:06.956 2198 INFO nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] Reconnecting to AMQP server on 10.192.3.25:5672 2014-08-18 10:02:11.971 2198 ERROR nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] AMQP server on 10.192.3.25:5672 is unreachable: timed out. Trying again in 30 seconds. 2014-08-18 10:02:41.984 2198 INFO nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] Reconnecting to AMQP server on 10.192.3.25:5672 2014-08-18 10:02:41.997 2198 INFO nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] Connected to AMQP server on 10.192.3.25:5672 2014-08-18 10:46:52.406 2198 INFO nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Attempting to build 1 instance(s) uuids: [u'ea407439-5a64-4dcd-98fd-61cfae41fb93'] 2014-08-18 10:46:52.416 2198 INFO nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Choosing host WeighedHost [host: aachuthakvm001, weight: 15197.0] for instance ea407439-5a64-4dcd-98fd-61cfae41fb93 2014-08-18 10:46:52.597 2198 INFO nova.openstack.common.rpc.common [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Connected to AMQP server on 10.192.3.25:5672 2014-08-18 10:47:10.336 2198 INFO nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Attempting to build 1 instance(s) uuids: [u'ea407439-5a64-4dcd-98fd-61cfae41fb93'] 2014-08-18 10:47:10.337 2198 ERROR nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] [instance: ea407439-5a64-4dcd-98fd-61cfae41fb93] Error from last host: aachuthakvm001 (node aachuthakvm001): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1043, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1426, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1423, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2091, in spawn\n block_device_info, context=context)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3249, in _create_domain_and_network\n domain = self._create_domain(xml, instance=instance, power_on=power_on)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3192, in _create_domain\n domain.XMLDesc(0))\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3187, in _create_domain\n domain.createWithFlags(launch_flags)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, args, kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,args,kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth(args,*kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/5\nkvm: -netdev tap,ifname=tap37e73e1f-4d,script=,id=hostnet0: could not open /dev/net/tun: Operation not permitted\nkvm: -netdev tap,ifname=tap37e73e1f-4d,script=,id=hostnet0: Device 'tap' could not be initialized\n\n"] 2014-08-18 10:47:10.472 2198 WARNING nova.scheduler.driver [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] [instance: ea407439-5a64-4dcd-98fd-61cfae41fb93] Setting instance to ERROR state.

I'm getting the above error in nova-scheduler and in neutron i got the following errors.

in dhcp-agent.log i got the following errors.

openstack@openstackneutron:~$ tail -f /var/log/neutron/dhcp-agent.log 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:05.329 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:10.456 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:15.502 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:20.599 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:25.672 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:30.942 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent

in server.log i got the following errors:

openstack@openstackneutron:~$ tail -f /var/log/neutron/server.log 2014-08-18 10:02:10.056 921 WARNING neutron.api.extensions [-] Extension lbaas_agent_scheduler not supported by any of loaded plugins 2014-08-18 10:02:10.058 921 WARNING neutron.api.extensions [-] Extension router-service-type not supported by any of loaded plugins 2014-08-18 10:02:10.062 921 WARNING neutron.api.extensions [-] Extension multi-provider not supported by any of loaded plugins 2014-08-18 10:02:10.064 921 WARNING neutron.api.extensions [-] Extension metering not supported by any of loaded plugins 2014-08-18 10:02:10.071 921 WARNING neutron.api.extensions [-] Extension lbaas not supported by any of loaded plugins 2014-08-18 10:02:10.073 921 WARNING neutron.api.extensions [-] Extension fwaas not supported by any of loaded plugins 2014-08-18 10:02:10.079 921 WARNING neutron.api.extensions [-] Extension routed-service-insertion not supported by any of loaded plugins 2014-08-18 10:02:10.081 921 WARNING neutron.api.extensions [-] Extension port-security not supported by any of loaded plugins 2014-08-18 10:02:10.083 921 WARNING neutron.api.extensions [-] Extension vpnaas not supported by any of loaded plugins 2014-08-18 10:02:10.273 921 WARNING neutron.scheduler.l3_agent_scheduler [-] L3 agent 073ef01a-2f9a-4ff0-b3f7-3d142a9bc627 is not active

in server.log i got the following errors:

openstack@openstackneutron:~$ tail -f /var/log/neutron/l3-agent.log 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent Traceback (most recent call last): 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 815, in _report_state 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent self.use_call) 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/rpc.py", line 72, in report_state 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent return self.call(context, msg, topic=self.topic) 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/proxy.py", line 130, in call 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent exc.info, real_topic, msg.get('method')) 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "q-plugin", RPC method: "report_state" info: "<unknown>" 2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent 2014-08-18 10:03:09.218 917 WARNING neutron.openstack.common.loopingcall [-] task run outlasted interval by 56.974593 sec

My configuration details on nova is as follows:

in one configuration file /etc/nova/nova.conf [DEFAULT] dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge logdir=/var/log/nova state_path=/var/lib/nova lock_path=/var/lock/nova force_dhcp_release=True iscsi_helper=tgtadm libvirt_use_virtio_for_bridges=True connection_type=libvirt root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf verbose=True ec2_private_dns_show_ip=True api_paste_config=/etc/nova/api-paste.ini volumes_path=/var/lib/nova/volumes enabled_apis=ec2,osapi_compute,metadata auth_strategy = keystone auth_host = 10.192.3.25 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = nova admin_password = password rabbit_password=guest my_ip=10.192.3.18 vnc_enabled=True vncserver_listen=0.0.0.0 vncserver_proxyclient_address=10.192.3.18 novncproxy_base_url=http://10.192.3.18/vnc_auto.html glance_host=10.192.3.25 network_manager=nova.network.manager.FlatDHCPManager firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver network_size=254 allow_same_net_traffic=False multi_host=True send_arp_for_ha=True share_dhcp_address=True force_dhcp_release=True flat_network_bridge=br_private flat_interface=br_private flat_interface=br_private public_interface=br_private neutron_metadata_proxy_shared_secret = METADATA_PASS service_neutron_metadata_proxy = true network_api_class=nova.network.neutronv2.api.API neutron_url=http://10.192.3.23:9696 neutron_auth_strategy=keystone neutron_admin_tenant_name=service neutron_admin_username=neutron neutron_admin_password=password neutron_admin_auth_url=http://10.192.3.25:35357/v2.0 linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver=nova.virt.firewall.NoopFirewallDriver security_group_api=neutron

in /etc/nova/api-paste.ini configuration is as follows:

[filter:keystonecontext] paste.filter_factory = nova.api.auth:NovaKeystoneContext.factory

[filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.192.3.25 auth_port = 35357 auth_protocol = http auth_uri = http://10.192.3.25:5000/v2.0 admin_tenant_name = service admin_user = nova admin_password = password

signing_dir is configurable, but the default behavior of the authtoken

middleware should be sufficient. It will create a temporary directory

in the home directory for the user the nova process is running as.

signing_dir = /var/lib/nova/keystone-signing

Workaround for https://bugs.launchpad.net/nova/+bug/1154809

auth_version = v2.0

In neutron the configuration files is as follows:

[DEFAULT] auth_strategy = keystone

Default log level is INFO

verbose and debug has the same result.

One of them will set DEBUG log level output

debug = False

verbose = False

Where to store Neutron state files. This directory must be writable by the

user executing the agent.

state_path = /var/lib/neutron

Where to store lock files

lock_path = $state_path/lock

log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s

log_date_format = %Y-%m-%d %H:%M:%S

use_syslog -> syslog

log_file and log_dir -> log_dir/log_file

(not log_file) and log_dir -> log_dir/{binary_name}.log

use_stderr -> stderr

(not user_stderr) and (not log_file) -> stdout

publish_errors -> notification system

use_syslog = False

syslog_log_facility = LOG_USER

use_stderr = True

log_file =

log_dir =

publish_errors = False

Address to bind the API server

bind_host = 0.0.0.0

Port the bind the API server to

bind_port = 9696

Path to the extensions. Note that this can be a colon-separated list of

paths. For example:

api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions

The __path__ of neutron.extensions is appended to this, so if your

extensions are in there you don't need to specify them here

api_extensions_path =

Neutron plugin provider module

core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2

Advanced service modules

service_plugins =

Paste configuration file

api_paste_config = api-paste.ini

The strategy to be used for auth.

Supported values are 'keystone'(default), 'noauth'.

auth_strategy = keystone

Base MAC address. The first 3 octets will remain unchanged. If the

4h octet is not 00, it will also used. The others will be

randomly generated.

3 octet

base_mac = fa:16:3e:00:00:00

4 octet

base_mac = fa:16:3e:4f:00:00

Maximum amount of retries to generate a unique MAC address

mac_generation_retries = 16

DHCP Lease duration (in seconds)

dhcp_lease_duration = 86400

Allow sending resource operation notification to DHCP agent

dhcp_agent_notification = True

Enable or disable bulk create/update/delete operations

allow_bulk = True

Enable or disable pagination

allow_pagination = False

Enable or disable sorting

allow_sorting = False

Enable or disable overlapping IPs for subnets

Attention: the following parameter MUST be set to False if Neutron is

being used in conjunction with nova security groups

allow_overlapping_ips = False

Ensure that configured gateway is on subnet

force_gateway_on_subnet = False

RPC configuration options. Defined in rpc __init__

The messaging module to use, defaults to kombu.

rpc_backend = neutron.openstack.common.rpc.impl_kombu

Size of RPC thread pool

rpc_thread_pool_size = 64

Size of RPC connection pool

rpc_conn_pool_size = 30

Seconds to wait for a response from call or multicall

rpc_response_timeout = 60

Seconds to wait before a cast expires (TTL). Only supported by impl_zmq.

rpc_cast_timeout = 30

Modules of exceptions that are permitted to be recreated

upon receiving exception data from an rpc call.

allowed_rpc_exception_modules = neutron.openstack.common.exception, nova.exception

AMQP exchange to connect to if using RabbitMQ or QPID

control_exchange = neutron

If passed, use a fake RabbitMQ provider

fake_rabbit = False

Configuration options if sending notifications via kombu rpc (these are

the defaults)

SSL version to use (valid only if SSL enabled)

kombu_ssl_version =

SSL key file (valid only if SSL enabled)

kombu_ssl_keyfile =

SSL cert file (valid only if SSL enabled)

kombu_ssl_certfile =

SSL certification authority file (valid only if SSL enabled)'

kombu_ssl_ca_certs =

IP address of the RabbitMQ installation

rabbit_host = 10.192.3.25 rabbit_userid = guest

Password of the RabbitMQ server

rabbit_password = guest

Port where RabbitMQ server is running/listening

rabbit_port = 5672

RabbitMQ single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)

rabbit_hosts is defaulted to '$rabbit_host:$rabbit_port'

rabbit_hosts = localhost:5672

User ID used for RabbitMQ connections

rabbit_userid = guest

Location of a virtual RabbitMQ installation.

rabbit_virtual_host = /

Maximum retries with trying to connect to RabbitMQ

(the default of 0 implies an infinite retry count)

rabbit_max_retries = 0

RabbitMQ connection retry interval

rabbit_retry_interval = 1

Use HA queues in RabbitMQ (x-ha-policy: all).You need to

wipe RabbitMQ database when changing this option. (boolean value)

rabbit_ha_queues = false

QPID

rpc_backend=neutron.openstack.common.rpc.impl_qpid

Qpid broker hostname

qpid_hostname = localhost

Qpid broker port

qpid_port = 5672

Qpid single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)

qpid_hosts is defaulted to '$qpid_hostname:$qpid_port'

qpid_hosts = localhost:5672

Username for qpid connection

qpid_username = ''

Password for qpid connection

qpid_password = ''

Space separated list of SASL mechanisms to use for auth

qpid_sasl_mechanisms = ''

Seconds between connection keepalive heartbeats

qpid_heartbeat = 60

Transport to use, either 'tcp' or 'ssl'

qpid_protocol = tcp

Disable Nagle algorithm

qpid_tcp_nodelay = True

ZMQ

rpc_backend=neutron.openstack.common.rpc.impl_zmq

ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.

The "host" option should point or resolve to this address.

rpc_zmq_bind_address = *

============ Notification System Options =====================

Notifications can be sent when network/subnet/port are create, updated or deleted.

There are three methods of sending notifications: logging (via the

log_file directive), rpc (via a message queue) and

noop (no notifications sent, the default)

Notification_driver can be defined multiple times

Do nothing driver

notification_driver = neutron.openstack.common.notifier.no_op_notifier

Logging driver

notification_driver = neutron.openstack.common.notifier.log_notifier

RPC driver. DHCP agents needs it.

notification_driver = neutron.openstack.common.notifier.rpc_notifier

default_notification_level is used to form actual topic name(s) or to set logging level

default_notification_level = INFO

default_publisher_id is a part of the notification payload

host = myhost.com

default_publisher_id = $host

Defined in rpc_notifier, can be comma separated values.

The actual topic names will be %s.%(default_notification_level)s

notification_topics = notifications

Default maximum number of items returned in a single response,

value == infinite and value < 0 means no max limit, and value must

greater than 0. If the number of items requested is greater than

pagination_max_limit, server will just return pagination_max_limit

of number of items.

pagination_max_limit = -1

Maximum number of DNS nameservers per subnet

max_dns_nameservers = 5

Maximum number of host routes per subnet

max_subnet_host_routes = 20

Maximum number of fixed ips per port

max_fixed_ips_per_port = 5

=========== items for agent management extension =============

Seconds to regard the agent as down; should be at least twice

report_interval, to be sure the agent is down for good

agent_down_time = 9

=========== end of items for agent management extension =====

=========== items for agent scheduler extension =============

Driver to use for scheduling network to DHCP agent

network_scheduler_driver = neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler

Driver to use for scheduling router to a default L3 agent

router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler

Driver to use for scheduling a loadbalancer pool to an lbaas agent

loadbalancer_pool_scheduler_driver = neutron.services.loadbalancer.agent_scheduler.ChanceScheduler

Allow auto scheduling networks to DHCP agent. It will schedule non-hosted

networks to first DHCP agent which sends get_active_networks message to

neutron server

network_auto_schedule = True

Allow auto scheduling routers to L3 agent. It will schedule non-hosted

routers to first L3 agent which sends sync_routers message to neutron server

router_auto_schedule = True

Number of DHCP agents scheduled to host a network. This enables redundant

DHCP agents for configured networks.

dhcp_agents_per_network = 1

=========== end of items for agent scheduler extension =====

=========== WSGI parameters related to the API server ==============

Number of separate worker processes to spawn. The default, 0, runs the

worker thread in the current process. Greater than 0 launches that number of

child processes as workers. The parent process manages them.

api_workers = 0

Sets the value of TCP_KEEPIDLE in seconds to use for each server socket when

starting API server. Not supported on OS X.

tcp_keepidle = 600

Number of seconds to keep retrying to listen

retry_until_window = 30

Number of backlog requests to configure the socket with.

backlog = 4096

Enable SSL on the API server

use_ssl = False

Certificate file to use when starting API server securely

ssl_cert_file = /path/to/certfile

Private key file to use when starting API server securely

ssl_key_file = /path/to/keyfile

CA certificate file to use when starting API server securely to

verify connecting clients. This is an optional parameter only required if

API clients need to authenticate to the API server using SSL certificates

signed by a trusted CA

ssl_ca_file = /path/to/cafile

======== end of WSGI parameters related to the API server ==========

[quotas]

resource name(s) that are supported in quota features

quota_items = network,subnet,port

default number of resource allowed per tenant, minus for unlimited

default_quota = -1

number of networks allowed per tenant, and minus means unlimited

quota_network = 10

number of subnets allowed per tenant, and minus means unlimited

quota_subnet = 10

number of ports allowed per tenant, and minus means unlimited

quota_port = 50

number of security groups allowed per tenant, and minus means unlimited

quota_security_group = 10

number of security group rules allowed per tenant, and minus means unlimited

quota_security_group_rule = 100

default driver to use for quota checks

quota_driver = neutron.db.quota_db.DbQuotaDriver

[agent]

Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real

root filter facility.

Change to "sudo" to skip the filtering and just run the comand directly

root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

=========== items for agent management extension =============

seconds between nodes reporting state to server; should be less than

agent_down_time, best if it is half or less than agent_down_time

report_interval = 4

=========== end of items for agent management extension =====

[keystone_authtoken] auth_host = 10.192.3.25 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = neutron admin_password = password signing_dir = $state_path/keystone-signing

[database]

This line MUST be changed to actually run the plugin.

Example:

connection = mysql://root:pass@127.0.0.1:3306/neutron

Replace 127.0.0.1 above with the IP address of the database used by the

main neutron server. (Leave it as is if the database runs on this host.)

connection = sqlite:////var/lib/neutron/neutron.sqlite

The SQLAlchemy connection string used to connect to the slave database

slave_connection =

Database reconnection retry times - in event connectivity is lost

set to -1 implies an infinite retry count

max_retries = 10

Database reconnection interval in seconds - if the initial connection to the

database fails

retry_interval = 10

Minimum number of SQL connections to keep open in a pool

min_pool_size = 1

Maximum number of SQL connections to keep open in a pool

max_pool_size = 10

Timeout in seconds before idle sql connections are reaped

idle_timeout = 3600

If set, use this value for max_overflow with sqlalchemy

max_overflow = 20

Verbosity of SQL debugging information. 0=None, 100=Everything

connection_debug = 0

Add python stack traces to SQL as comment strings

connection_trace = False

If set, use this value for pool_timeout with sqlalchemy

pool_timeout = 10

[service_providers]

Specify service providers (drivers) for advanced services like loadbalancer, VPN, Firewall.

Must be in form:

service_provider=<service_type>:<name>:<driver>[:default]

List of allowed service type include LOADBALANCER, FIREWALL, VPN

Combination of <service type=""> and <name> must be unique; <driver> must also be unique

this is multiline option, example for default provider:

service_provider=LOADBALANCER:name:lbaas_plugin_driver_path:default

example of non-default provider:

service_provider=FIREWALL:name2:firewall_driver_path

--- Reference implementations ---

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

another configuration file is as follows: /etc/neutron/api-paste.ini

[filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.192.3.25 auth_uri = http://10.192.3.25:5000 admin_tenant_name = service admin_user = neutron admin_password = password

could not open /dev/net/tun: Operation not permittepermitted

Hi

I configured Neutron and all configurations are good and kept all the configurations related to neutron in nova also according to this link

http://docs.openstack.org/havana/install-guide/install/apt/content/neutron-install.dedicated-network-node.htmlthe official install guide. I'm running the opens vswitch and i'm also using vlan.

after configuring the nova and neutron i'm unable to get the instane booting up there after i checked the log files both in neutron and nova the log files are as follows:

aachutha@aachuthakvm001:~$ tail -f /var/log/nova/nova-scheduler.log
2014-08-18 10:02:06.956 2198 INFO nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] Reconnecting to AMQP server on 10.192.3.25:5672
2014-08-18 10:02:11.971 2198 ERROR nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] AMQP server on 10.192.3.25:5672 is unreachable: timed out. Trying again in 30 seconds.
2014-08-18 10:02:41.984 2198 INFO nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] Reconnecting to AMQP server on 10.192.3.25:5672
2014-08-18 10:02:41.997 2198 INFO nova.openstack.common.rpc.common [req-79a173d4-0b52-48e3-9daf-2eb3120ac35a None None] Connected to AMQP server on 10.192.3.25:5672
2014-08-18 10:46:52.406 2198 INFO nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Attempting to build 1 instance(s) uuids: [u'ea407439-5a64-4dcd-98fd-61cfae41fb93']
2014-08-18 10:46:52.416 2198 INFO nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Choosing host WeighedHost [host: aachuthakvm001, weight: 15197.0] for instance ea407439-5a64-4dcd-98fd-61cfae41fb93
2014-08-18 10:46:52.597 2198 INFO nova.openstack.common.rpc.common [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Connected to AMQP server on 10.192.3.25:5672
2014-08-18 10:47:10.336 2198 INFO nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] Attempting to build 1 instance(s) uuids: [u'ea407439-5a64-4dcd-98fd-61cfae41fb93']
2014-08-18 10:47:10.337 2198 ERROR nova.scheduler.filter_scheduler [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] [instance: ea407439-5a64-4dcd-98fd-61cfae41fb93] Error from last host: aachuthakvm001 (node aachuthakvm001): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1043, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1426, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1423, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2091, in spawn\n    block_device_info, context=context)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3249, in _create_domain_and_network\n    domain = self._create_domain(xml, instance=instance, power_on=power_on)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3192, in _create_domain\n    domain.XMLDesc(0))\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3187, in _create_domain\n    domain.createWithFlags(launch_flags)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n    result = proxy_call(self._autowrap, f, args, kwargs)\n', *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call\n    rv = execute(f,args,kwargs)\n', execute(f,*args,**kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n    rv = meth(args,*kwargs)\n', meth(*args,**kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlags\n    if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/5\nkvm: -netdev tap,ifname=tap37e73e1f-4d,script=,id=hostnet0: could not open /dev/net/tun: Operation not permitted\nkvm: -netdev tap,ifname=tap37e73e1f-4d,script=,id=hostnet0: Device 'tap' could not be initialized\n\n"]
2014-08-18 10:47:10.472 2198 WARNING nova.scheduler.driver [req-2eadc06f-0d45-49ce-9b6b-07e1ab51a097 42750aff5f0c46ed9d2625c3b5884bfd 83927c7558df437a82620719704212c9] [instance: ea407439-5a64-4dcd-98fd-61cfae41fb93] Setting instance to ERROR state.

state. I'm getting the above error in nova-scheduler and in neutron i got the following errors.

errors. in dhcp-agent.log i got the following errors.

errors. openstack@openstackneutron:~$ tail -f /var/log/neutron/dhcp-agent.log 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:00.239 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:05.329 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) action)(**action_kwargs) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:05.329 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:10.456 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) action)(**action_kwargs) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:10.456 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:15.502 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) action)(**action_kwargs) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:15.502 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:20.599 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) action)(**action_kwargs) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:20.599 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:25.672 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) action)(**action_kwargs) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:25.672 913 TRACE neutron.agent.dhcp_agent 2014-08-18 11:10:30.942 913 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for c35b656d-c3e5-4a35-a131-a4111eac4b7a. 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 128, in call_driver 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent getattr(driver, action)(action_kwargs) action)(**action_kwargs) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 305, in plug 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 129, in add_veth 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent self._as_root('', 'link', tuple(args)) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent namespace) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 75, in execute 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent RuntimeError: 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'add', 'tap7982aa1d-2a', 'type', 'veth', 'peer', 'name', 'ns-7982aa1d-2a', 'netns', 'qdhcp-c35b656d-c3e5-4a35-a131-a4111eac4b7a'] 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Exit code: 2 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Stdout: '' 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: File exists\n' 2014-08-18 11:10:30.942 913 TRACE neutron.agent.dhcp_agent

neutron.agent.dhcp_agent

in server.log i got the following errors:

openstack@openstackneutron:~$ tail -f /var/log/neutron/server.log 
2014-08-18 10:02:10.056 921 WARNING neutron.api.extensions [-] Extension lbaas_agent_scheduler not supported by any of loaded plugins
2014-08-18 10:02:10.058 921 WARNING neutron.api.extensions [-] Extension router-service-type not supported by any of loaded plugins
2014-08-18 10:02:10.062 921 WARNING neutron.api.extensions [-] Extension multi-provider not supported by any of loaded plugins
2014-08-18 10:02:10.064 921 WARNING neutron.api.extensions [-] Extension metering not supported by any of loaded plugins
2014-08-18 10:02:10.071 921 WARNING neutron.api.extensions [-] Extension lbaas not supported by any of loaded plugins
2014-08-18 10:02:10.073 921 WARNING neutron.api.extensions [-] Extension fwaas not supported by any of loaded plugins
2014-08-18 10:02:10.079 921 WARNING neutron.api.extensions [-] Extension routed-service-insertion not supported by any of loaded plugins
2014-08-18 10:02:10.081 921 WARNING neutron.api.extensions [-] Extension port-security not supported by any of loaded plugins
2014-08-18 10:02:10.083 921 WARNING neutron.api.extensions [-] Extension vpnaas not supported by any of loaded plugins
2014-08-18 10:02:10.273 921 WARNING neutron.scheduler.l3_agent_scheduler [-] L3 agent 073ef01a-2f9a-4ff0-b3f7-3d142a9bc627 is not active

active

in server.log i got the following errors:

openstack@openstackneutron:~$ tail -f /var/log/neutron/l3-agent.log 
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent Traceback (most recent call last):
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 815, in _report_state
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent     self.use_call)
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/rpc.py", line 72, in report_state
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent     return self.call(context, msg, topic=self.topic)
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/proxy.py", line 130, in call
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent     exc.info, real_topic, msg.get('method'))
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "q-plugin", RPC method: "report_state" info: "<unknown>"
2014-08-18 10:03:09.123 917 TRACE neutron.agent.l3_agent 
2014-08-18 10:03:09.218 917 WARNING neutron.openstack.common.loopingcall [-] task run outlasted interval by 56.974593 sec

sec

My configuration details on nova is as follows:

in one configuration file /etc/nova/nova.conf /etc/nova/nova.conf

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
auth_strategy = keystone
auth_host = 10.192.3.25
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = password
rabbit_password=guest
my_ip=10.192.3.18
vnc_enabled=True
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=10.192.3.18
novncproxy_base_url=http://10.192.3.18/vnc_auto.html
glance_host=10.192.3.25
network_manager=nova.network.manager.FlatDHCPManager
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
network_size=254
allow_same_net_traffic=False
multi_host=True
send_arp_for_ha=True
share_dhcp_address=True
force_dhcp_release=True
flat_network_bridge=br_private
flat_interface=br_private
flat_interface=br_private
public_interface=br_private
neutron_metadata_proxy_shared_secret = METADATA_PASS
service_neutron_metadata_proxy = true
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.192.3.23:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.192.3.25:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron

security_group_api=neutron

in /etc/nova/api-paste.ini configuration is as follows:

[filter:keystonecontext]
paste.filter_factory = nova.api.auth:NovaKeystoneContext.factory

nova.api.auth:NovaKeystoneContext.factory [filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.192.3.25 auth_port = 35357 auth_protocol = http auth_uri = http://10.192.3.25:5000/v2.0 admin_tenant_name = service admin_user = nova admin_password = password

password # signing_dir is configurable, but the default behavior of the authtoken

authtoken # middleware should be sufficient. It will create a temporary directory

directory # in the home directory for the user the nova process is running as.

signing_dir = /var/lib/nova/keystone-signing

as. #signing_dir = /var/lib/nova/keystone-signing # Workaround for https://bugs.launchpad.net/nova/+bug/1154809

https://bugs.launchpad.net/nova/+bug/1154809 auth_version = v2.0

v2.0

In neutron the configuration files is as follows:

 [DEFAULT]
auth_strategy = keystone

keystone # Default log level is INFO

INFO # verbose and debug has the same result.

result. # One of them will set DEBUG log level output

output # debug = False

False # verbose = False

False # Where to store Neutron state files. This directory must be writable by the

the # user executing the agent.

agent. state_path = /var/lib/neutron

/var/lib/neutron # Where to store lock files

files lock_path = $state_path/lock

$state_path/lock # log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s

%(message)s # log_date_format = %Y-%m-%d %H:%M:%S

%H:%M:%S # use_syslog -> syslog

syslog # log_file and log_dir -> log_dir/log_file

log_dir/log_file # (not log_file) and log_dir -> log_dir/{binary_name}.log

log_dir/{binary_name}.log # use_stderr -> stderr

stderr # (not user_stderr) and (not log_file) -> stdout

stdout # publish_errors -> notification system

system # use_syslog = False

False # syslog_log_facility = LOG_USER

LOG_USER # use_stderr = True

True # log_file =

= # log_dir =

= # publish_errors = False

False # Address to bind the API server

server # bind_host = 0.0.0.0

0.0.0.0 # Port the bind the API server to

to # bind_port = 9696

9696 # Path to the extensions. Note that this can be a colon-separated list of

of # paths. For example:

example: # api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions

extensions:/path/to/more/extensions:/even/more/extensions # The __path__ of neutron.extensions is appended to this, so if your

your # extensions are in there you don't need to specify them here

here # api_extensions_path =

= # Neutron plugin provider module

module core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2

neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2 # Advanced service modules

modules # service_plugins =

= # Paste configuration file

file # api_paste_config = api-paste.ini

api-paste.ini # The strategy to be used for auth.

auth. # Supported values are 'keystone'(default), 'noauth'.

'noauth'. # auth_strategy = keystone

keystone # Base MAC address. The first 3 octets will remain unchanged. If the

the # 4h octet is not 00, it will also used. The others will be

be # randomly generated.

generated. # 3 octet

octet # base_mac = fa:16:3e:00:00:00

fa:16:3e:00:00:00 # 4 octet

octet # base_mac = fa:16:3e:4f:00:00

fa:16:3e:4f:00:00 # Maximum amount of retries to generate a unique MAC address

address # mac_generation_retries = 16

16 # DHCP Lease duration (in seconds)

seconds) # dhcp_lease_duration = 86400

86400 # Allow sending resource operation notification to DHCP agent

agent # dhcp_agent_notification = True

True # Enable or disable bulk create/update/delete operations

operations # allow_bulk = True

True # Enable or disable pagination

pagination # allow_pagination = False

False # Enable or disable sorting

sorting # allow_sorting = False

False # Enable or disable overlapping IPs for subnets

subnets # Attention: the following parameter MUST be set to False if Neutron is

is # being used in conjunction with nova security groups

groups # allow_overlapping_ips = False

False # Ensure that configured gateway is on subnet

subnet # force_gateway_on_subnet = False

False # RPC configuration options. Defined in rpc __init__

__init__ # The messaging module to use, defaults to kombu.

kombu. rpc_backend = neutron.openstack.common.rpc.impl_kombu

neutron.openstack.common.rpc.impl_kombu # Size of RPC thread pool

pool # rpc_thread_pool_size = 64

64 # Size of RPC connection pool

pool # rpc_conn_pool_size = 30

30 # Seconds to wait for a response from call or multicall

multicall # rpc_response_timeout = 60

60 # Seconds to wait before a cast expires (TTL). Only supported by impl_zmq.

impl_zmq. # rpc_cast_timeout = 30

30 # Modules of exceptions that are permitted to be recreated

recreated # upon receiving exception data from an rpc call.

call. # allowed_rpc_exception_modules = neutron.openstack.common.exception, nova.exception

nova.exception # AMQP exchange to connect to if using RabbitMQ or QPID

QPID control_exchange = neutron

neutron # If passed, use a fake RabbitMQ provider

provider # fake_rabbit = False

False # Configuration options if sending notifications via kombu rpc (these are

are # the defaults)

defaults) # SSL version to use (valid only if SSL enabled)

enabled) # kombu_ssl_version =

= # SSL key file (valid only if SSL enabled)

enabled) # kombu_ssl_keyfile =

= # SSL cert file (valid only if SSL enabled)

enabled) # kombu_ssl_certfile =

= # SSL certification authority file (valid only if SSL enabled)'

enabled)' # kombu_ssl_ca_certs =

= # IP address of the RabbitMQ installation

installation rabbit_host = 10.192.3.25 rabbit_userid = guest

guest # Password of the RabbitMQ server

server rabbit_password = guest

guest # Port where RabbitMQ server is running/listening

running/listening rabbit_port = 5672

5672 # RabbitMQ single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)

host2:5672) # rabbit_hosts is defaulted to '$rabbit_host:$rabbit_port'

'$rabbit_host:$rabbit_port' # rabbit_hosts = localhost:5672

localhost:5672 # User ID used for RabbitMQ connections

connections # rabbit_userid = guest

guest # Location of a virtual RabbitMQ installation.

installation. # rabbit_virtual_host = /

/ # Maximum retries with trying to connect to RabbitMQ

RabbitMQ # (the default of 0 implies an infinite retry count)

count) # rabbit_max_retries = 0

0 # RabbitMQ connection retry interval

interval # rabbit_retry_interval = 1

1 # Use HA queues in RabbitMQ (x-ha-policy: all).You need to

to # wipe RabbitMQ database when changing this option. (boolean value)

value) # rabbit_ha_queues = false

QPID

rpc_backend=neutron.openstack.common.rpc.impl_qpid

false # QPID # rpc_backend=neutron.openstack.common.rpc.impl_qpid # Qpid broker hostname

hostname # qpid_hostname = localhost

localhost # Qpid broker port

port # qpid_port = 5672

5672 # Qpid single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)

host2:5672) # qpid_hosts is defaulted to '$qpid_hostname:$qpid_port'

'$qpid_hostname:$qpid_port' # qpid_hosts = localhost:5672

localhost:5672 # Username for qpid connection

connection # qpid_username = ''

'' # Password for qpid connection

connection # qpid_password = ''

'' # Space separated list of SASL mechanisms to use for auth

auth # qpid_sasl_mechanisms = ''

'' # Seconds between connection keepalive heartbeats

heartbeats # qpid_heartbeat = 60

60 # Transport to use, either 'tcp' or 'ssl'

'ssl' # qpid_protocol = tcp

tcp # Disable Nagle algorithm

algorithm # qpid_tcp_nodelay = True

ZMQ

rpc_backend=neutron.openstack.common.rpc.impl_zmq

True # ZMQ # rpc_backend=neutron.openstack.common.rpc.impl_zmq # ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.

IP. # The "host" option should point or resolve to this address.

address. # rpc_zmq_bind_address = *

* # ============ Notification System Options =====================

===================== # Notifications can be sent when network/subnet/port are create, updated or deleted.

deleted. # There are three methods of sending notifications: logging (via the

the # log_file directive), rpc (via a message queue) and

and # noop (no notifications sent, the default)

default) # Notification_driver can be defined multiple times

times # Do nothing driver

driver # notification_driver = neutron.openstack.common.notifier.no_op_notifier

neutron.openstack.common.notifier.no_op_notifier # Logging driver

driver # notification_driver = neutron.openstack.common.notifier.log_notifier

neutron.openstack.common.notifier.log_notifier # RPC driver. DHCP agents needs it.

it. notification_driver = neutron.openstack.common.notifier.rpc_notifier

neutron.openstack.common.notifier.rpc_notifier # default_notification_level is used to form actual topic name(s) or to set logging level

level # default_notification_level = INFO

INFO # default_publisher_id is a part of the notification payload

payload # host = myhost.com

myhost.com # default_publisher_id = $host

$host # Defined in rpc_notifier, can be comma separated values.

values. # The actual topic names will be %s.%(default_notification_level)s

%s.%(default_notification_level)s # notification_topics = notifications

notifications # Default maximum number of items returned in a single response,

response, # value == infinite and value < 0 means no max limit, and value must

must # greater than 0. If the number of items requested is greater than

than # pagination_max_limit, server will just return pagination_max_limit

pagination_max_limit # of number of items.

items. # pagination_max_limit = -1

-1 # Maximum number of DNS nameservers per subnet

subnet # max_dns_nameservers = 5

5 # Maximum number of host routes per subnet

subnet # max_subnet_host_routes = 20

20 # Maximum number of fixed ips per port

port # max_fixed_ips_per_port = 5

5 # =========== items for agent management extension =============

============= # Seconds to regard the agent as down; should be at least twice

twice # report_interval, to be sure the agent is down for good

good # agent_down_time = 9

9 # =========== end of items for agent management extension =====

===== # =========== items for agent scheduler extension =============

============= # Driver to use for scheduling network to DHCP agent

agent # network_scheduler_driver = neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler

neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler # Driver to use for scheduling router to a default L3 agent

agent # router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler

neutron.scheduler.l3_agent_scheduler.ChanceScheduler # Driver to use for scheduling a loadbalancer pool to an lbaas agent

agent # loadbalancer_pool_scheduler_driver = neutron.services.loadbalancer.agent_scheduler.ChanceScheduler

neutron.services.loadbalancer.agent_scheduler.ChanceScheduler # Allow auto scheduling networks to DHCP agent. It will schedule non-hosted

non-hosted # networks to first DHCP agent which sends get_active_networks message to

to # neutron server

server # network_auto_schedule = True

True # Allow auto scheduling routers to L3 agent. It will schedule non-hosted

non-hosted # routers to first L3 agent which sends sync_routers message to neutron server

server # router_auto_schedule = True

True # Number of DHCP agents scheduled to host a network. This enables redundant

redundant # DHCP agents for configured networks.

networks. # dhcp_agents_per_network = 1

1 # =========== end of items for agent scheduler extension =====

===== # =========== WSGI parameters related to the API server ==============

============== # Number of separate worker processes to spawn. The default, 0, runs the

the # worker thread in the current process. Greater than 0 launches that number of

of # child processes as workers. The parent process manages them.

them. # api_workers = 0

0 # Sets the value of TCP_KEEPIDLE in seconds to use for each server socket when

when # starting API server. Not supported on OS X.

X. # tcp_keepidle = 600

600 # Number of seconds to keep retrying to listen

listen # retry_until_window = 30

30 # Number of backlog requests to configure the socket with.

with. # backlog = 4096

4096 # Enable SSL on the API server

server # use_ssl = False

False # Certificate file to use when starting API server securely

securely # ssl_cert_file = /path/to/certfile

/path/to/certfile # Private key file to use when starting API server securely

securely # ssl_key_file = /path/to/keyfile

/path/to/keyfile # CA certificate file to use when starting API server securely to

to # verify connecting clients. This is an optional parameter only required if

if # API clients need to authenticate to the API server using SSL certificates

certificates # signed by a trusted CA

CA # ssl_ca_file = /path/to/cafile

/path/to/cafile # ======== end of WSGI parameters related to the API server ==========

[quotas]

========== [quotas] # resource name(s) that are supported in quota features

features # quota_items = network,subnet,port

network,subnet,port # default number of resource allowed per tenant, minus for unlimited

unlimited # default_quota = -1

-1 # number of networks allowed per tenant, and minus means unlimited

unlimited # quota_network = 10

10 # number of subnets allowed per tenant, and minus means unlimited

unlimited # quota_subnet = 10

10 # number of ports allowed per tenant, and minus means unlimited

unlimited # quota_port = 50

50 # number of security groups allowed per tenant, and minus means unlimited

unlimited # quota_security_group = 10

10 # number of security group rules allowed per tenant, and minus means unlimited

unlimited # quota_security_group_rule = 100

100 # default driver to use for quota checks

checks # quota_driver = neutron.db.quota_db.DbQuotaDriver

[agent]

neutron.db.quota_db.DbQuotaDriver [agent] # Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real

real # root filter facility.

facility. # Change to "sudo" to skip the filtering and just run the comand directly

directly root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

/etc/neutron/rootwrap.conf # =========== items for agent management extension =============

============= # seconds between nodes reporting state to server; should be less than

than # agent_down_time, best if it is half or less than agent_down_time

agent_down_time # report_interval = 4

4 # =========== end of items for agent management extension =====

===== [keystone_authtoken] auth_host = 10.192.3.25 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = neutron admin_password = password signing_dir = $state_path/keystone-signing

[database]

$state_path/keystone-signing [database] # This line MUST be changed to actually run the plugin.

Example:

plugin. # Example: # connection = mysql://root:pass@127.0.0.1:3306/neutron

mysql://root:pass@127.0.0.1:3306/neutron # Replace 127.0.0.1 above with the IP address of the database used by the

the # main neutron server. (Leave it as is if the database runs on this host.)

host.) connection = sqlite:////var/lib/neutron/neutron.sqlite

sqlite:////var/lib/neutron/neutron.sqlite # The SQLAlchemy connection string used to connect to the slave database

database # slave_connection =

= # Database reconnection retry times - in event connectivity is lost

lost # set to -1 implies an infinite retry count

count # max_retries = 10

10 # Database reconnection interval in seconds - if the initial connection to the

the # database fails

fails # retry_interval = 10

10 # Minimum number of SQL connections to keep open in a pool

pool # min_pool_size = 1

1 # Maximum number of SQL connections to keep open in a pool

pool # max_pool_size = 10

10 # Timeout in seconds before idle sql connections are reaped

reaped # idle_timeout = 3600

3600 # If set, use this value for max_overflow with sqlalchemy

sqlalchemy # max_overflow = 20

20 # Verbosity of SQL debugging information. 0=None, 100=Everything

100=Everything # connection_debug = 0

0 # Add python stack traces to SQL as comment strings

strings # connection_trace = False

False # If set, use this value for pool_timeout with sqlalchemy

sqlalchemy # pool_timeout = 10

[service_providers]

10 [service_providers] # Specify service providers (drivers) for advanced services like loadbalancer, VPN, Firewall.

Firewall. # Must be in form:

service_provider=<service_type>:<name>:<driver>[:default]

form: # service_provider=<service_type>:<name>:<driver>[:default] # List of allowed service type include LOADBALANCER, FIREWALL, VPN

VPN # Combination of <service type=""> type> and <name> must be unique; <driver> must also be unique

unique # this is multiline option, example for default provider:

service_provider=LOADBALANCER:name:lbaas_plugin_driver_path:default

provider: # service_provider=LOADBALANCER:name:lbaas_plugin_driver_path:default # example of non-default provider:

service_provider=FIREWALL:name2:firewall_driver_path

provider: # service_provider=FIREWALL:name2:firewall_driver_path # --- Reference implementations ---

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

--- service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default another configuration file is as follows: /etc/neutron/api-paste.ini

/etc/neutron/api-paste.ini [filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.192.3.25 auth_uri = http://10.192.3.25:5000 admin_tenant_name = service admin_user = neutron admin_password = password

password