命令: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)
|