分享

OpenStack M版本ceilometer实行命令报404错误

445433045 发表于 2017-3-2 11:27:31 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 8455
命令:ceilometer meter-list
debug报错信息:
DEBUG (session) REQ: curl -g -i -X GET http://172.16.1.11:5000/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool) Starting new HTTP connection (1): 172.16.1.11
DEBUG (connectionpool) "GET /v3 HTTP/1.1" 200 193
DEBUG (session) RESP: [200] Date: Thu, 02 Mar 2017 03:24:47 GMT Server: Apache/2.4.6 (CentOS) Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-7a84205d-b326-48ff-a557-16854077faee Content-Encoding: gzip Content-Length: 193 Connection: close Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://172.16.1.11:5000/v3/", "rel": "self"}]}}

DEBUG (base) Making authentication request to http://172.16.1.11:5000/v3/auth/tokens
INFO (connectionpool) Resetting dropped connection: 172.16.1.11
DEBUG (connectionpool) "POST /v3/auth/tokens HTTP/1.1" 201 7222
DEBUG (client) REQ: curl -g -i -X 'GET' 'http://172.16.1.11:8042/' -H 'User-Agent: ceilometerclient.openstack.common.apiclient' -H 'X-Auth-Token: {SHA1}132888cf93f5d7b959ba0c90269d999a9fce7841'
INFO (connectionpool) Starting new HTTP connection (1): 172.16.1.11
DEBUG (connectionpool) "GET / HTTP/1.1" 404 276
DEBUG (client) RESP: [404] {'Date': 'Thu, 02 Mar 2017 03:24:48 GMT', 'Content-Length': '276', 'Content-Type': 'text/html; charset=iso-8859-1', 'Connection': 'close', 'Server': 'Apache/2.4.6 (CentOS)'}

DEBUG (client) RESP BODY: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL / was not found on this server.</p>
<hr>
<address>Apache/2.4.6 (CentOS) Server at 172.16.1.11 Port 8042</address>
</body></html>


DEBUG (client) Request returned failure status: 404
Traceback (most recent call last):
  File "/usr/bin/ceilometer", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/ceilometerclient/shell.py", line 292, in main
    CeilometerShell().main(args)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/shell.py", line 238, in main
    client = ceiloclient.get_client(api_version, **client_kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/client.py", line 366, in get_client
    return Client(version, endpoint, **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/client.py", line 313, in Client
    return client_class(*args, **client_kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/v2/client.py", line 69, in __init__
    self.alarm_client = self._get_alarm_client(**kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/v2/client.py", line 124, in _get_alarm_client
    c.get("/")
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 355, in get
    return self.client_request("GET", url, **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 345, in client_request
    self, method, url, **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 261, in client_request
    method, self.concat_url(endpoint, url), **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 201, in request
    raise exceptions.from_response(resp, method, url)
ceilometerclient.openstack.common.apiclient.exceptions.NotFound: Not Found (HTTP 404)

已有(2)人评论

跳转到指定楼层
445433045 发表于 2017-3-2 11:29:47
/var/log/celometer-api.log报错信息:
2017-03-01 22:28:25.244 5687 INFO werkzeug [-]  * Running on http://0.0.0.0:8777/
2017-03-01 22:28:25.245 5687 CRITICAL ceilometer [-] error: [Errno 98] Address already in use
2017-03-01 22:28:25.245 5687 ERROR ceilometer Traceback (most recent call last):
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/bin/ceilometer-api", line 10, in <module>
2017-03-01 22:28:25.245 5687 ERROR ceilometer     sys.exit(main())
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib/python2.7/site-packages/ceilometer/cmd/api.py", line 23, in main
2017-03-01 22:28:25.245 5687 ERROR ceilometer     app.build_server()
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib/python2.7/site-packages/ceilometer/api/app.py", line 122, in build_server
2017-03-01 22:28:25.245 5687 ERROR ceilometer     app, processes=CONF.api.workers)
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 710, in run_simple
2017-03-01 22:28:25.245 5687 ERROR ceilometer     inner()
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 692, in inner
2017-03-01 22:28:25.245 5687 ERROR ceilometer     passthrough_errors, ssl_context).serve_forever()
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 486, in make_server
2017-03-01 22:28:25.245 5687 ERROR ceilometer     passthrough_errors, ssl_context)
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 410, in __init__
2017-03-01 22:28:25.245 5687 ERROR ceilometer     HTTPServer.__init__(self, (host, int(port)), handler)
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib64/python2.7/SocketServer.py", line 419, in __init__
2017-03-01 22:28:25.245 5687 ERROR ceilometer     self.server_bind()
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib64/python2.7/BaseHTTPServer.py", line 108, in server_bind
2017-03-01 22:28:25.245 5687 ERROR ceilometer     SocketServer.TCPServer.server_bind(self)
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib64/python2.7/SocketServer.py", line 430, in server_bind
2017-03-01 22:28:25.245 5687 ERROR ceilometer     self.socket.bind(self.server_address)
2017-03-01 22:28:25.245 5687 ERROR ceilometer   File "/usr/lib64/python2.7/socket.py", line 224, in meth
2017-03-01 22:28:25.245 5687 ERROR ceilometer     return getattr(self._sock,name)(*args)
2017-03-01 22:28:25.245 5687 ERROR ceilometer error: [Errno 98] Address already in use
2017-03-01 22:28:25.245 5687 ERROR ceilometer
2017-03-01 22:28:27.091 5714 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2017-03-01 22:28:27.091 5714 INFO ceilometer.api.app [-] Full WSGI config used: /etc/ceilometer/api_paste.ini
2017-03-01 22:28:27.124 5714 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)]
2017-03-01 22:28:27.173 5714 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)]


回复

使用道具 举报

NEOGX 发表于 2017-3-2 13:01:31
看下端口是否被暂用
sudo netstat -anp|grep 8777
更多可参考下面链接,排查下

大数据集群【hadoop、hbase、spark、hive,zookeeper、storm等】故障排除之端口详解
http://www.aboutyun.com/thread-20880-1-1.html


回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条