Ask Your Question
0

performing "neutron agent-list" reports 500 error

asked 2017-07-11 23:16:40 -0500

Oct gravatar image

updated 2017-07-12 00:42:40 -0500

Bernd Bausch gravatar image

Help~ I am having issues with installation of OpenStack with CentOS 7 ~ performing "neutron agent-list" reports 500 error, details :

[root@node1 ~]# neutron agent-list --debug
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://192.168.16.27:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] Date: Tue, 11 Jul 2017 09:45:01 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-7cbd6791-6a9e-4ac9-84dd-dbabb72fbd36 Content-Length: 253 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json 
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://192.168.16.27:35357/v3/", "rel": "self"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')
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, noindent=False, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))
DEBUG: keystoneclient.auth.identity.v3.base Making authentication request to http://192.168.16.27:35357/v3/auth/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://192.168.16.27:9696/v2.0/agents.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}1b7a18b97259331bbe4cf62761be34eda0580639"
DEBUG: keystoneclient.session RESP: [500] Content-Length: 114 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-cb357b2e-2dcb-45e0-b89e-b77e22536156 Date: Tue, 11 Jul 2017 09:45:02 GMT Connection: keep-alive 
RESP BODY: 500 Internal Server Error

The server has either erred or is incapable of performing the requested operation.



DEBUG: neutronclient.v2_0.client Error message: 500 Internal Server Error

The server has either erred or is incapable of performing the requested operation.


ERROR: neutronclient.shell 500 Internal Server Error

The server has either erred or is incapable of performing the requested operation.


Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 814, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 110, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 716, in get_data
    data = self.retrieve_list(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0 ...
(more)
edit retag flag offensive close merge delete

Comments

You need to check the Neutron logs, which are probably under /var/log/neutron. Start with the server log and see if you find ERROR or WARNING messages around the time this happened.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-12 00:44:21 -0500 )edit

Followed by the contents of the log, please help me diagnose the problem, thanks all~

Oct gravatar imageOct ( 2017-07-12 02:41:09 -0500 )edit

@ oct, how you have deployed the openstack. Please verify the steps. Restart the rabbitmq server. Are all the neutron service are configured properly and up ?

Praveen N gravatar imagePraveen N ( 2017-07-12 06:16:20 -0500 )edit

I configured the document in this way(https://docs.openstack.org/ocata/install-guide-rdo/neutron-controller-install-option2.html#configure-the-server-component), and even the service can't start now, following is the detailed content of the document, please help to check and diagnose ~

Oct gravatar imageOct ( 2017-07-14 04:12:00 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-12 02:40:42 -0500

Oct gravatar image

updated 2017-07-14 04:09:02 -0500

Followed by the contents of the log, please help me diagnose the problem, thanks all~ details: 2017-07-12 15:27:42.585 2780 INFO neutron.wsgi [-] (2780) accepted ('192.168.16.27', 37672) 2017-07-12 15:27:42.591 2780 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token Traceback (most recent call last): 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 849, in _fetch_token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token data = self._identity_server.verify_token(token) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 213, in verify_token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token auth_ref = self._request_strategy.verify_token(user_token) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 165, in _request_stra tegy 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token strategy_class = self._get_strategy_class() 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 187, in _get_strategy _class 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token if self._adapter.get_endpoint(version=klass.AUTH_VERSION): 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 129, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return self.session.get_endpoint(auth or self.auth, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 660, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return auth.get_endpoint(self, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 315, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token service_catalog = self.get_access(session).service_catalog 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token self.auth_ref = self.get_auth_ref(session) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 184, in get_auth_re f 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token self._plugin = self._do_create_plugin(session) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 139, in _do_create_ plugin 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=False) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 400, in get_discovery 2017-07-12 15:27 ... (more)

edit flag offensive delete link more

Comments

I guess that Neutron's authentication config is incorrect. Find it in the [keystone_authtoken] section in /etc/neutron/neutron.conf. Here is a correct example: https://docs.openstack.org/ocata/inst....

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-12 07:22:30 -0500 )edit

I configured the document in this way(https://docs.openstack.org/ocata/install-guide-rdo/neutron-controller-install-option2.html#configure-the-server-component), and even the service can't start now, following is the detailed content of the document, please help to check and diagnose ~

Oct gravatar imageOct ( 2017-07-14 04:11:10 -0500 )edit

What you display is keystone.conf, not neutron.conf.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-14 04:12:15 -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: 2017-07-11 23:16:40 -0500

Seen: 53 times

Last updated: Jul 14