分享

<class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500)

QQ截图20160930152243.png debug信息

[root@Controller ~]# nova --debug boot --flavor XXX --image cirros --nic net-id=573a1e6e-1091-434d-8bd7-1f770805db8c --security-group default --key-name demo-key demo-instance
DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): 10.1.70.236
DEBUG (connectionpool:395) "GET /v3 HTTP/1.1" 200 251
DEBUG (session:215) RESP: [200] Date: Fri, 30 Sep 2016 07:23:35 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-ebbf216f-af91-4e73-a486-0f2f6213212f Content-Length: 251 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://10.1.70.236:35357/v3/", "rel": "self"}]}}

DEBUG (base:188) Making authentication request to http://10.1.70.236:35357/v3/auth/tokens
DEBUG (connectionpool:395) "POST /v3/auth/tokens HTTP/1.1" 201 2814
DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:8774/v2.1/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386"
INFO (connectionpool:213) Starting new HTTP connection (1): 10.1.70.236
DEBUG (connectionpool:395) "GET /v2.1/ HTTP/1.1" 200 385
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 385 X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-480fd5c8-22b4-4ea9-bcc0-f4c0daaf31c9 Date: Fri, 30 Sep 2016 07:23:37 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://10.1.70.236:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.12", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}

DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:8774/v2.1/f8d ... 1918d58fce6e/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.11" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386"
DEBUG (connectionpool:395) "GET /v2.1/f8daa9604c804b2a80ec1918d58fce6e/images HTTP/1.1" 200 991
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 991 X-Openstack-Nova-Api-Version: 2.11 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-7e393d13-3423-4ae6-bdf6-bb73c4b66eea Date: Fri, 30 Sep 2016 07:23:38 GMT Connection: keep-alive
RESP BODY: {"images": [{"id": "9e32b955-c1d5-4f25-aec2-b89f1b05f77e", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/images/9e32b955-c1d5-4f25-aec2-b89f1b05f77e", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/images/9e32b955-c1d5-4f25-aec2-b89f1b05f77e", "rel": "bookmark"}, {"href": "http://10.1.70.236:9292/images/9e32b955-c1d5-4f25-aec2-b89f1b05f77e", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Linuxmini"}, {"id": "0a8f41a5-bb8e-4acc-80c4-472407e81530", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/images/0a8f41a5-bb8e-4acc-80c4-472407e81530", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/images/0a8f41a5-bb8e-4acc-80c4-472407e81530", "rel": "bookmark"}, {"href": "http://10.1.70.236:9292/images/0a8f41a5-bb8e-4acc-80c4-472407e81530", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros"}]}

DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:8774/v2.1/f8d ... c-80c4-472407e81530 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.11" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386"
DEBUG (connectionpool:395) "GET /v2.1/f8daa9604c804b2a80ec1918d58fce6e/images/0a8f41a5-bb8e-4acc-80c4-472407e81530 HTTP/1.1" 200 681
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 681 X-Openstack-Nova-Api-Version: 2.11 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-2c09edfa-d264-4fc6-aac3-1c07b17f7ab6 Date: Fri, 30 Sep 2016 07:23:38 GMT Connection: keep-alive
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-09-28T11:59:45Z", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/images/0a8f41a5-bb8e-4acc-80c4-472407e81530", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/images/0a8f41a5-bb8e-4acc-80c4-472407e81530", "rel": "bookmark"}, {"href": "http://10.1.70.236:9292/images/0a8f41a5-bb8e-4acc-80c4-472407e81530", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "0a8f41a5-bb8e-4acc-80c4-472407e81530", "OS-EXT-IMG-SIZE:size": 13287936, "name": "cirros", "created": "2016-09-28T11:59:44Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}

DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:8774/v2.1/f8d ... 58fce6e/flavors/XXX -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.11" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386"
DEBUG (connectionpool:395) "GET /v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/XXX HTTP/1.1" 404 76
DEBUG (session:215) RESP: [404] X-Openstack-Nova-Api-Version: 2.11 Vary: X-OpenStack-Nova-API-Version Content-Length: 76 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-5588cb9e-4a29-4a24-911d-954b3e1eaa74 Date: Fri, 30 Sep 2016 07:23:38 GMT Connection: keep-alive
RESP BODY: {"itemNotFound": {"message": "Flavor XXX could not be found.", "code": 404}}

DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:8774/v2.1/f8d ... vors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.11" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386"
DEBUG (connectionpool:395) "GET /v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors?is_public=None HTTP/1.1" 200 1572
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 1572 X-Openstack-Nova-Api-Version: 2.11 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-b00ed9bf-d84b-49cb-adfa-9975b7b85b79 Date: Fri, 30 Sep 2016 07:23:38 GMT Connection: keep-alive
RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/1", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/2", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/3", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/4", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/5", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}, {"id": "fa884996-ffb0-4051-adfd-19f081f78e98", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/fa884996-ffb0-4051-adfd-19f081f78e98", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/fa884996-ffb0-4051-adfd-19f081f78e98", "rel": "bookmark"}], "name": "XXX"}]}

DEBUG (session:198) REQ: curl -g -i -X GET http://10.1.70.236:8774/v2.1/f8d ... 1-adfd-19f081f78e98 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.11" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386"
DEBUG (connectionpool:395) "GET /v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/fa884996-ffb0-4051-adfd-19f081f78e98 HTTP/1.1" 200 525
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 525 X-Openstack-Nova-Api-Version: 2.11 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-eeaa2b7b-97f3-4b38-895a-7fbc008e7730 Date: Fri, 30 Sep 2016 07:23:38 GMT Connection: keep-alive
RESP BODY: {"flavor": {"name": "XXX", "links": [{"href": "http://10.1.70.236:8774/v2.1/f8daa9604c804b2a80ec1918d58fce6e/flavors/fa884996-ffb0-4051-adfd-19f081f78e98", "rel": "self"}, {"href": "http://10.1.70.236:8774/f8daa9604c804b2a80ec1918d58fce6e/flavors/fa884996-ffb0-4051-adfd-19f081f78e98", "rel": "bookmark"}], "ram": 1024, "OS-FLV-DISABLED:disabled": false, "vcpus": 2, "swap": "", "os-flavor-access:is_public": false, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 0, "id": "fa884996-ffb0-4051-adfd-19f081f78e98"}}

DEBUG (session:198) REQ: curl -g -i -X POST http://10.1.70.236:8774/v2.1/f8d ... 918d58fce6e/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.11" -H "X-Auth-Token: {SHA1}33f60cdcdb1d8a7d3e7fde9158c1f30eda61a386" -d '{"server": {"name": "demo-instance", "imageRef": "0a8f41a5-bb8e-4acc-80c4-472407e81530", "key_name": "demo-key", "flavorRef": "fa884996-ffb0-4051-adfd-19f081f78e98", "max_count": 1, "min_count": 1, "networks": [{"uuid": "573a1e6e-1091-434d-8bd7-1f770805db8c"}], "security_groups": [{"name": "default"}]}}'
DEBUG (connectionpool:395) "POST /v2.1/f8daa9604c804b2a80ec1918d58fce6e/servers HTTP/1.1" 500 216
DEBUG (session:215) RESP: [500] X-Openstack-Nova-Api-Version: 2.11 Vary: X-OpenStack-Nova-API-Version Content-Length: 216 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-f174a127-46da-45a2-b228-0f231806de87 Date: Fri, 30 Sep 2016 07:24:39 GMT Connection: keep-alive
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'oslo_messaging.exceptions.MessagingTimeout'>", "code": 500}}

DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-f174a127-46da-45a2-b228-0f231806de87)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 903, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 830, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 520, in do_boot
    server = cs.servers.create(*boot_args, **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 942, in create
    **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 540, in _boot
    return_raw=return_raw, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 169, in _create
    _resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 93, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-f174a127-46da-45a2-b228-0f231806de87)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-f174a127-46da-45a2-b228-0f231806de87)

已有(1)人评论

跳转到指定楼层
langke93 发表于 2016-10-3 10:12:38
"Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible

api异常,debug里面只有error,具体看不出什么问题。

先检测下nova 的相关日志
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条