Ask Your Question
1

Kilo Install: neutron agent-list returns no entries

asked 2015-07-22 22:46:26 -0500

ivarh gravatar image

updated 2015-07-24 02:09:06 -0500

foexle gravatar image

I am installing Kilo from scratch. When I get to the step in networking (the end) where I enter the command: neutron agent-list I get nothing in return a few millisecond pause and then the command prompt returns.

Is there a debugging or tracing mechanism for me to see what is going wrong? Thank You Foexle for the --debug.

This is my return from that command:

ivar@controller:~$ neutron --debug agent-list
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] content-length: 250 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Thu, 23 Jul 2015 11:39:54 GMT x-openstack-request-id: req-7b789a92-d5cd-41cd-bd8a-31be9ea36a6b content-type: application/json x-distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
DEBUG: neutronclient.neutron.v2_0.agent.ListAgent get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:9696/v2.0/agents.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}16c08f0bead4736e52a4305f6c821e223d4b8b33"
DEBUG: keystoneclient.session RESP: [200] date: Thu, 23 Jul 2015 11:39:55 GMT connection: keep-alive content-type: application/json; charset=UTF-8 content-length: 14 x-openstack-request-id: req-ffae0139-a0ab-4c5c-a5c4-6c427ef0186b
RESP BODY: {"agents": []}

Does anyone have an opinion on why I have no agents? I also wonder why my network machine runs so hot - dual core and over 60% proc utilization. neutron-openvsw, neutron-l3-agen and neutron-dhcp-agen are the top processes - but maybe thats normal.

Further research: I am running a KVM host (2-quad cores 32GB RAM) that is hosting my controller and network nodes in VMs. I found that the processor load is due to the log files growing at a huge velocity. Almost every neutron log on the network node is constantly logging variations of:

2015-07-23 09:46:35.923 14327 TRACE neutron.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/threadgroup.py", line 125, in wait
2015-07-23 09:46:35.923 14327 TRACE neutron.openstack.common.threadgroup     x.wait()
2015-07-23 09:46:35.923 14327 TRACE neutron.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/threadgroup.py", line 47, in wait
2015-07-23 09:46:35.923 14327 TRACE neutron.openstack.common.threadgroup     return self.thread.wait()
2015-07-23 09:46:35.923 14327 TRACE neutron.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-07-23 16:44:00 -0500

ivarh gravatar image

This was user stupidity. I forgot to install the base Ubuntu cloud package on the node. I apt-get installed it and it worked fine. Sorry and thanks for the help

edit flag offensive delete link more
0

answered 2015-07-23 01:23:08 -0500

foexle gravatar image

Hi Ivarh,

it could be your Neutron API is taking some time to get all informations. That could be some reasons, slow database, slow keystone, slow API ...

You can enable verbose, so debug, output for each OpenStack client with the option --debug, in your case:

neutron --debug agent-list

Cheers Heiko

edit flag offensive delete link more

Comments

So, it seems to be Keystone is working. So we should take a look on other places:

  • Check all neutron logs (DB connection problems; RabbitMQ problems)

How many servers do you have ? You have separate servers for network and controller (API) ?

foexle gravatar imagefoexle ( 2015-07-23 08:55:02 -0500 )edit

I added some log info above in problem

ivarh gravatar imageivarh ( 2015-07-23 10:42:25 -0500 )edit

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: 2015-07-22 22:46:26 -0500

Seen: 205 times

Last updated: Jul 24 '15