Ask Your Question
0

kilo neutron : neutron agent-list showing nothing

asked 2015-12-31 03:55:45 -0500

laser2016 gravatar image

Hi Guys , i checked posts like this , but nothing helped . I'm installing Kilo from scratch , 3 servers . When trying to run "neutron agent-list" on the controller node , i'm getting just blank .... here is the logs :

opstack-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.6 (Red Hat Enterprise Linux) mod_wsgi/3.4 Python/2.7.5 connection: Keep-Alive date: Thu, 31 Dec 2015 09:46:52 GMT content-type: application/json x-openstack-request-id: req-e06ba801-9441-4e8a-a257-1e3064af9452 
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: 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.base 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}58b04bdbfa6b4f04b8fa88d524a0e502b65ac8c7"
DEBUG: keystoneclient.session RESP: [200] date: Thu, 31 Dec 2015 09:46:52 GMT connection: keep-alive content-type: application/json; charset=UTF-8 content-length: 14 x-openstack-request-id: req-f9b546f2-cf6a-4414-8e00-afc8db1b3a9c 
RESP BODY: {"agents": []}

thanks in advance !!

edit retag flag offensive close merge delete

Comments

BTW - 1. I'm running it on RHEL7 2. Now i see that the clocks [network & controller] , are not sync . can it cause the problem ? and if so , how can i fix ?

thanks

laser2016 gravatar imagelaser2016 ( 2015-12-31 03:57:37 -0500 )edit

If clock are not in sync then the rabbitmq messages are not received since the nodes are out of sync. That is if your neutron configs are correct. You can fix it by setting up the correct times in BIOS on each node.

VonGoofy gravatar imageVonGoofy ( 2015-12-31 06:08:15 -0500 )edit

Can you check if you are actually version 3 API , as per the logs -: DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"

Execute keystone endpoint-list |grep 35357 to confirm

Mohit gravatar imageMohit ( 2015-12-31 11:55:53 -0500 )edit

Make sure, neutron services are there ps aux | grep neutron

Bipin gravatar imageBipin ( 2016-01-02 21:54:07 -0500 )edit

Hi Mohit & Bipin , please take a look below , i wrote you answers [it was long , so i comment as an "answer"] thanks

laser2016 gravatar imagelaser2016 ( 2016-01-04 02:15:46 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-03 02:53:54 -0500

laser2016 gravatar image

updated 2016-01-04 21:44:45 -0500

Bipin gravatar image

Hi guys , thanks for your replies .

Mohit - here is the output :

keystone endpoint-list |grep 35357

/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-6c95bdf1-e23d-4011-ab0f-238d9f2c03e8)

||||||||||||||||||||||||||||||||||||||||

Bipin -

ps aux | grep neutron

neutron   3535  0.0  0.5 443904 67096 ?        Ss    2015   5:49 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log
root     31675  0.0  0.0 112644   968 pts/0    S+   03:53   0:00 grep --color=auto neutron

||||||| BTW - my clocks are fine now ....

thanks again

edit flag offensive delete link more

Comments

Hi, Try $openstack endpoint list Also try the following commands $openstack service list $openstack network list Check the output of /var/log/neutron/server.log for more details after running the commands.

pjb gravatar imagepjb ( 2016-01-04 01:04:58 -0500 )edit

Hi , thanks for your response . i ran all those commands , and then the log ,and it's very long. can i get your mail in order to show the logs ?

laser2016 gravatar imagelaser2016 ( 2016-01-04 02:15:05 -0500 )edit

You can use the following website for posting the logs etc http://paste.openstack.org/ (here). For now, post the portion of the log entries that match for the commands you ran.(matching the time etc).
And post the output of the commands too.

pjb gravatar imagepjb ( 2016-01-04 03:15:59 -0500 )edit

the logs : 2016-01-04 11:21:04.129 1351 INFO neutron.wsgi [-] (1351) accepted ('10.56.20.238', 50324) 2016-01-04 11:21:04.312 1351 INFO neutron.wsgi [req-6892f609-b809-43cd-9073-458f137eebab ] 10.56.20.238 - - [04/Jan/2016 11:21:04] "GET /v2.0/networks HTTP/1.1" 200 229 0.181454

laser2016 gravatar imagelaser2016 ( 2016-01-04 03:21:57 -0500 )edit

and the commands output : [i deleted some unimportant values] endpoint list :

| 2 | RegionOne | neutron      | network      |
| 1 | RegionOne | glance       | image        |
| | RegionOne | nova         | compute      |
 keystone     | ident
laser2016 gravatar imagelaser2016 ( 2016-01-04 03:23:23 -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-12-31 03:55:45 -0500

Seen: 307 times

Last updated: Jan 04 '16