08-24-2019 01:48 PM - last edited on 05-29-2020 10:25 AM by Monica Lluis
Hi,
My goal is to play around with OpenStack and ACI, so I'm setting a two node lab Openstack (Liberty) environment on Ubuntu (Trusty) servers. I've setup MySQL, RabbitMQ, Keystone, Glance and Nova successfully.
However, after installing and configuring Neutron, the DHCP agent is missing from the list.
I've gone through the nova.conf and dhcp_agent.ini files but can't see the problem.
I've restarted the dhcp agent service:
root@ubuntu-145:~# service neutron-dhcp-agent restart neutron-dhcp-agent stop/waiting neutron-dhcp-agent start/running, process 14741
But the DHCP agent is not in the list.
These are the contents of the config files:
dhcp_agent.ini
[DEFAULT] interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq enable_isolated_metadata = True [AGENT]e_agent
nova.conf
[DEFAULT] ... dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge ... force_dhcp_release=True ...
The "neutron agent-list" command shows the metadata agent in the controller node as well as the linux bridge agent in both controller and compute nodes, but I think I should also see the DHCP agent in the controller node.
Currently, I see this:
root@ubuntu-145:~# neutron agent-list +--------------------------------------+--------------------+------------+-------+----------------+---------------------------+ | id | agent_type | host | alive | admin_state_up | binary | +--------------------------------------+--------------------+------------+-------+----------------+---------------------------+ | 623b253d-d7cf-4e9b-85e3-34c9ce3d076e | Linux bridge agent | ubuntu-144 | :-) | True | neutron-linuxbridge-agent | | c7571a6a-9e44-434b-8e35-9fdddb7073bb | Linux bridge agent | ubuntu-145 | :-) | True | neutron-linuxbridge-agent | | ca27b709-f2e4-4b72-8415-e8c37a69adf1 | Metadata agent | ubuntu-145 | :-) | True | neutron-metadata-agent | +--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
The dhcp-agent.log has thrown nothing in the past few hours, so no clues there:
root@ubuntu-145:~# date Sat Aug 24 22:24:46 CEST 2019 root@ubuntu-145:~# root@ubuntu-145:~# tail /var/log/neutron/dhcp-agent.log 2019-08-24 19:21:24.566 13352 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 348, in wait 2019-08-24 19:21:24.566 13352 ERROR neutron.agent.dhcp.agent message = self.waiters.get(msg_id, timeout=timeout) 2019-08-24 19:21:24.566 13352 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 253, in get 2019-08-24 19:21:24.566 13352 ERROR neutron.agent.dhcp.agent 'to message ID %s' % msg_id) 2019-08-24 19:21:24.566 13352 ERROR neutron.agent.dhcp.agent MessagingTimeout: Timed out waiting for a reply to message ID f9d8d0b3e2ef4d21a88f42af5914454a 2019-08-24 19:21:24.566 13352 ERROR neutron.agent.dhcp.agent 2019-08-24 19:21:24.570 13352 WARNING oslo.service.loopingcall [req-351b4137-49c5-4145-a8f3-46f9b00b4516 - - - - -] Function 'neutron.agent.dhcp.agent.DhcpAgentWithStateReport._report_state' run outlasted interval by 30.01 sec 2019-08-24 19:21:50.279 13352 INFO oslo_service.service [req-1820bd4a-7007-4c24-bb37-3781d0470998 - - - - -] Caught SIGTERM, exiting 2019-08-24 19:21:50.280 13352 WARNING oslo_messaging.server [req-1820bd4a-7007-4c24-bb37-3781d0470998 - - - - -] start/stop/wait must be called in the same thread 2019-08-24 19:21:50.280 13352 WARNING oslo_messaging.server [req-1820bd4a-7007-4c24-bb37-3781d0470998 - - - - -] start/stop/wait must be called in the same thread root@ubuntu-145:~#
What else can I check?
Thanks!
08-25-2019 08:16 AM
---- Update ------
I just noticed that the Neutron DHCP agent service is hogging the cpu:
root@ubuntu-145:~# top
top - 12:14:31 up 41 min, 1 user, load average: 1.06, 1.16, 1.09 Tasks: 134 total, 2 running, 132 sleeping, 0 stopped, 0 zombie %Cpu(s): 85.9 us, 14.0 sy, 0.0 ni, 0.0 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 4139144 total, 1118912 used, 3020232 free, 40980 buffers KiB Swap: 4190204 total, 0 used, 4190204 free. 193544 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 15372 neutron 20 0 26576 19108 8724 R 93.7 0.5 0:00.26 neutron-dhcp-ag 1 root 20 0 4580 3668 2572 S 0.0 0.1 0:37.00 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:04.52 ksoftirqd/0
But still, I don't see it in the list from the openstack client.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide