Ask Your Question
0

'neutron agent-list' show nothing

asked 2014-11-27 03:18:42 -0600

yuecong1104 gravatar image

I am installing openstack juno according to the install guide of http://docs.openstack.org/juno/install-guide/install/apt/content/neutron-network-node.html (http://docs.openstack.org/juno/instal...)

After I installed neutron into network node, and trying to do the verification, but I can not get any output with the command of 'neutron agent-list' from controller node. There are some error in the network node for some agents as follows.

root@network:~# tail /var/log/neutron/openvswitch-agent.log 
2014-11-27 01:12:20.329 12920 TRACE neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/rpc.py", line 43, in create_consumers
2014-11-27 01:12:20.329 12920 TRACE neutron     connection = rpc.create_connection(new=True)
2014-11-27 01:12:20.329 12920 TRACE neutron   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/__init__.py", line 89, in create_connection
2014-11-27 01:12:20.329 12920 TRACE neutron     return _get_impl().create_connection(CONF, new=new)
2014-11-27 01:12:20.329 12920 TRACE neutron   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/__init__.py", line 274, in _get_impl
2014-11-27 01:12:20.329 12920 TRACE neutron     _RPCIMPL = importutils.import_module(impl)
2014-11-27 01:12:20.329 12920 TRACE neutron   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/importutils.py", line 57, in import_module
2014-11-27 01:12:20.329 12920 TRACE neutron     __import__(import_str)
2014-11-27 01:12:20.329 12920 TRACE neutron ImportError: No module named rabbit
2014-11-27 01:12:20.329 12920 TRACE neutron

Here "No module named rabbit" is shown, but I checked the configuration file in /etc/neutron/*.conf and *.ini, which are just the same as the installattion guide.

Also from the controller side, there are some error for sql as follows.

user1@controller:~$ tail  -40 /var/log/neutron/server.log 
2014-11-27 00:07:53.511 10524 TRACE neutron   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
2014-11-27 00:07:53.511 10524 TRACE neutron     reraise(type(exception), exception, tb=exc_tb)
2014-11-27 00:07:53.511 10524 TRACE neutron   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 951, in _execute_context
2014-11-27 00:07:53.511 10524 TRACE neutron     context)
2014-11-27 00:07:53.511 10524 TRACE neutron   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 436, in do_execute
2014-11-27 00:07:53.511 10524 TRACE neutron     cursor.execute(statement, parameters)
2014-11-27 00:07:53.511 10524 TRACE neutron   File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
2014-11-27 00:07:53.511 10524 TRACE neutron     self.errorhandler(self, exc, value)
2014-11-27 00:07:53.511 10524 TRACE neutron   File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
2014-11-27 00:07:53.511 10524 TRACE neutron     raise errorclass, errorvalue
2014-11-27 00:07:53.511 10524 TRACE neutron ProgrammingError: (ProgrammingError) (1146, "Table 'neutron.ml2_gre_allocations' doesn't exist") 'SELECT ml2_gre_allocations.gre_id AS ml2_gre_allocations_gre_id, ml2_gre_allocations.allocated AS ml2_gre_allocations_allocated \nFROM ml2_gre_allocations' ()
2014-11-27 00:07:53.511 10524 TRACE neutron 
2014-11-27 00:07:58.637 10539 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-11-27 04:15:13 -0600

Ram.Meena gravatar image

Hi,

The same problem has been reported here already, would be great if you can refer to the below post:-

No module named rabbit

edit flag offensive delete link more

Comments

Thanks, I will make a reference for that thread also. But I have a question that whethere I need also need the message broker service into network node or not? Currently, I did not install rabbit server into network node nor compute nodes.

yuecong1104 gravatar imageyuecong1104 ( 2014-11-27 17:58:25 -0600 )edit

what is the neutron version, can you post the o/p of "neutron --version"

vikrant gravatar imagevikrant ( 2014-11-28 04:11:21 -0600 )edit
0

answered 2014-11-27 19:01:04 -0600

yuecong1104 gravatar image

My issue is solved with removing rpc_backend = rabbit from /etc/neutron/neutron.conf in my network node. I suspect this may be the bug of the installation manual. I will report it and confirm whether we need update the installation manual. Also this issue is discussed here https://bugs.launchpad.net/openstack-manuals/+bug/1320451 (https://bugs.launchpad.net/openstack-...)

edit flag offensive delete link more
0

answered 2014-12-30 08:13:00 -0600

The removal of rpc_backend has worked for me. Thanks!

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

1 follower

Stats

Asked: 2014-11-27 03:18:42 -0600

Seen: 2,727 times

Last updated: Nov 27 '14