分享

neutron agent-list报500错误

h3hlh18 发表于 2017-7-12 17:11:51 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 6721
请各位大神帮忙看看,谢谢!

[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/__init__.py", line 679, in retrieve_list
    data = self.call_server(neutron_client, search_opts, parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 651, in call_server
    data = obj_lister(**search_opts)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1217, in list_agents
    return self.get(self.agents_path, params=_params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 211, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 83, in exception_handler_v20
    message=message)
NeutronClientException: 500 Internal Server Error

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

已有(4)人评论

跳转到指定楼层
h3hlh18 发表于 2017-7-12 17:12:35
日志:

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:42.591 2780 ERROR keystonemiddleware.auth_token     authenticated=authenticated)
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/_discover.py", line 142, in __init__
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token     authenticated=authenticated)
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/_discover.py", line 40, in get_version_data
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token     resp = session.get(url, headers=headers, authenticated=authenticated)
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 493, in get
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token     return self.request(url, 'GET', **kwargs)
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/session.py", line 319, in request
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token     if not urllib.parse.urlparse(url).netloc:
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token   File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token     tuple = urlsplit(url, scheme, allow_fragments)
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token   File "/usr/lib64/python2.7/urlparse.py", line 181, in urlsplit
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token     i = url.find(':')
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token AttributeError: 'NoneType' object has no attribute 'find'
2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token
2017-07-12 15:27:42.598 2780 INFO neutron.wsgi [-] 192.168.16.27 - - [12/Jul/2017 15:27:42] "GET /v2.0/agents.json HTTP/1.1" 500 341 0.010664
回复

使用道具 举报

nextuser 发表于 2017-7-12 21:14:22
h3hlh18 发表于 2017-7-12 17:12
日志:

2017-07-12 15:27:42.585 2780 INFO neutron.wsgi [-] (2780) accepted ('192.168.16.27', 37672 ...

上面反映两个问题
1.keystone有问题
2.控制节点产生问题,到控制节点看看日志
keep-alive
RESP BODY: 500 Internal Server Error

回复

使用道具 举报

h3hlh18 发表于 2017-7-14 16:43:33
nextuser 发表于 2017-7-12 21:14
上面反映两个问题
1.keystone有问题
2.控制节点产生问题,到控制节点看看日志

帮忙看看,我这个就是在控制节点上运行的。
[root@node1 neutron]# cat /etc/keystone/keystone.conf|grep -v "^#"|grep -v "^$"
[DEFAULT]
admin_token = a5beca86c67e16f014c6
[assignment]
[auth]
[cache]
[catalog]
[cors]
[cors.subdomain]
[credential]
[database]
connection = mysql://keystone:keystone@192.168.16.27/keystone
[domain_config]
[endpoint_filter]
[endpoint_policy]
[eventlet_server]
[eventlet_server_ssl]
[federation]
[fernet_tokens]
[identity]
[identity_mapping]
[kvs]
[ldap]
[matchmaker_redis]
[matchmaker_ring]
[memcache]
servers = 192.168.16.27:11211
[oauth1]
[os_inherit]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
[oslo_middleware]
[oslo_policy]
[paste_deploy]
[policy]
[resource]
[revoke]
[role]
[saml]
[signing]
[ssl]
[token]
[tokenless_auth]
[trust]


回复

使用道具 举报

einhep 发表于 2017-7-14 17:21:43
h3hlh18 发表于 2017-7-14 16:43
帮忙看看,我这个就是在控制节点上运行的。
[root@node1 neutron]# cat /etc/keystone/keystone.conf|gr ...

列出版本来。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条