Ask Your Question
1

Install and configure network node - neutron agent-list emty

asked 2014-10-24 09:39:43 -0500

klonitklonit gravatar image

updated 2014-10-27 06:16:46 -0500

I'm fallowing documentation for juno multinode (3 node) setup. In the chapter "6. Add a networking component" in section "Install and configure network node" I have fallowing problem:

command neutron agent-list (on the controller node) should return table with 4 results but my response is empty. Everything else was successful until now. Any guidance?

Edit: log from l3-agent on network node shows:

...
[req-bd89639e-5ce2-4b3a-bc51-2b9ccf6fb356 None] Exception during rpc cleanup.
...
ImportError: No module named rabbit

But if I run sudo pip install librabbitmq: Requirement already satisfied

pyrabbit is also already satisfied.

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
1

answered 2014-10-27 06:57:27 -0500

klonitklonit gravatar image

updated 2014-10-27 06:58:01 -0500

Based on this https://bugs.launchpad.net/openstack-... I commented rpc_backend = rabbbit in /etc/neutron/neutron.conf on network node. After restarting neutron services neutron agent-list was successful.

edit flag offensive delete link more
1

answered 2014-10-24 11:09:52 -0500

dbaxps gravatar image

updated 2014-10-25 00:27:53 -0500

Are neutron-* services running ?

# service --status-all | grep neutron

Check also Network node.
Just in case you may view also http://sayalilunkad.github.io/posts/D...
Select the required service and add the respective lines to your local.config.

Neutron - Networking Service

    ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron

Make checks via service service_name status

# service neutron-plugin-openvswitch-agent status
# service neutron-l3-agent status
# service neutron-dhcp-agent status
# service neutron-metadata-agent status
edit flag offensive delete link more

Comments

If I run sudo service neutron-server status on controller node I get:

neutron-server start/running

But if I run # service --status-all | grep neutron I get:

[ ? ]  apport  [ ? ]  console-setup [ ? ]  cryptdisks [ ? ]  cryptdisks-early [ ? ]  dns-clean [ ? ]  irqbalance
 [ ? ]  killprocs..
klonitklonit gravatar imageklonitklonit ( 2014-10-24 16:20:26 -0500 )edit

[ ? ] kmod [ ? ] mysql [ ? ] networking [ ? ] ondemand [ ? ] open-vm-tools [ ? ] pppd-dns [ ? ] rc.local [ ? ] screen-cleanup [ ? ] sendsigs [ ? ] umountfs [ ? ] umountnfs.sh [ ? ] umountroot

klonitklonit gravatar imageklonitklonit ( 2014-10-24 16:21:01 -0500 )edit

On network node: # service neutron-plugin-openvswitch-agent status - running # service neutron-l3-agent status - running # service neutron-dhcp-agent status - running # service neutron-metadata-agent status - running Any other ideas? Thank you for your help so far.

klonitklonit gravatar imageklonitklonit ( 2014-10-27 04:18:15 -0500 )edit
0

answered 2016-07-07 06:17:32 -0500

I had same issue

[root@controller ~]# neutron agent-list

[root@controller ~]#

server.log under /var/log/neutron/ showing following error

 ERROR oslo_messaging._drivers.common [req-935a551c-7c73-40b8-846d-4fbadb343e80 ] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n    executor_callback))\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n    executor_callback)\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch\n    result = func(ctxt, **new_args)\n', '  File "/usr/lib/python2.7/site-packages/neutron/api/rpc/handlers/l3_rpc.py", line 81, in sync_routers\n    context, host, router_ids))\n', '  File "/usr/lib/python2.7/site-packages/neutron/db/l3_agentschedulers_db.py", line 290, in list_active_sync_routers_on_active_l3_agent\n    context, constants.AGENT_TYPE_L3, host)\n', '  File "/usr/lib/python2.7/site-packages/neutron/db/agents_db.py", line 197, in _get_agent_by_type_and_host\n    host=host)\n', 'AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=network could not be found\n']

2016-07-06 15:11:06.444 28571

I pasted above error ( AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=network could not be found) I found following link and it says it is NTP issue

https://ask.openstack.org/en/question/55489/agentnotfoundbytypehost-agent-with-agent_typel3-agent-and-hosthost-could-not-be-found/ (link text)

I checked NTP status and found it was in error state

[root@controller neutron]# ntpq -p
ntpq: read: Connection refused
[root@controller neutron]# ntpq -c peers
ntpq: read: Connection refused
[root@controller neutron]# systemctl status ntpd.service
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2016-07-05 13:19:51 EDT; 1 day 1h ago

     [root@compute ~]# systemctl status ntpd.service
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: failed

Once I ensured the condition column of controller, compute and network node showing sys.peer everything is working fine

[root@controller neutron]# neutron agent-list
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+
| id                                   | agent_type         | host    | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+
| 441ad4f9-4c63-4e51-9bd4-362f42ccc791 | L3 agent           | network | :-)   | True           | neutron-l3-agent          |
| 4e9eb327-9d1b-4d51-a6e5-5d16f9ffc314 | DHCP agent         | network | :-)   | True           | neutron-dhcp-agent        |
| 5bc9d1e9-31d8-4b96-9e0e-8330572f26e6 | Open vSwitch agent | network | :-)   | True           | neutron-openvswitch-agent |
| 7db260f3-1605-4276-9da1-55167709e556 | Open vSwitch agent | compute | :-)   | True           | neutron-openvswitch-agent |
| b50f0c9e-9c3e-4651-a715-5f5b68896974 | Metadata agent     | network | :-)   | True           | neutron-metadata-agent    |
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+

So as the initial link suggested it all because of NTP

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-10-24 09:39:43 -0500

Seen: 4,136 times

Last updated: Jul 07 '16