分享

无法创建实例,500报错

wangyaohua 发表于 2016-3-2 21:28:45 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 10099
本帖最后由 wangyaohua 于 2016-3-2 21:31 编辑

一共两个节点,控制和计算节点 只安装了 glance nova keystone neutron 四个组件。centos6.7 kilo版本使用 nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=98ec114d-617b-4c96-aa66-806d2a16b3fd --security-group default 1111 创建节点时 日志如下
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://controller:35357/v2.0 -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.3.0 python-requests/2.9.1 CPython/2.7.11"
INFO (connectionpool:207) Starting new HTTP connection (1): controller
DEBUG (connectionpool:387) "GET /v2.0 HTTP/1.1" 200 337
DEBUG (session:277) RESP: [200] Content-Length: 337 Vary: X-Auth-Token Connection: keep-alive Date: Wed, 02 Mar 2016 13:18:18 GMT Content-Type: application/json X-Openstack-Request-Id: req-f23e27c1-be0c-4115-89fb-86b35641ab78
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG (v2:63) Making authentication request to http://controller:35357/v2.0/tokens
DEBUG (connectionpool:387) "POST /v2.0/tokens HTTP/1.1" 200 1711
DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
INFO (connectionpool:207) Starting new HTTP connection (1): controller
DEBUG (connectionpool:387) "GET /v2/165373e3c37348718db72957a68ddcc0 HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: text/plain; charset=UTF-8 Content-Length: 52 X-Compute-Request-Id: req-bfe941ae-c245-4cf0-b622-965a0a69d2f2
RESP BODY: 404 Not Found

The resource could not be found.



DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
DEBUG (connectionpool:387) "GET /v2/ HTTP/1.1" 200 375
DEBUG (session:277) RESP: [200] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-68ea4c48-f39d-4a66-8ab9-11ff028ab9c6
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}

DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
DEBUG (connectionpool:387) "GET /v2/165373e3c37348718db72957a68ddcc0/images HTTP/1.1" 200 512
DEBUG (session:277) RESP: [200] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json Content-Length: 512 X-Compute-Request-Id: req-7d8257e8-e4f7-4bcb-8b21-da9875ef3da3
RESP BODY: {"images": [{"id": "94084ef1-1d29-4b8a-814f-568f59df8dc8", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/images/94084ef1-1d29-4b8a-814f-568f59df8dc8", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/images/94084ef1-1d29-4b8a-814f-568f59df8dc8", "rel": "bookmark"}, {"href": "http://192.168.13.134:9292/images/94084ef1-1d29-4b8a-814f-568f59df8dc8", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.4-x86_64"}]}

DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/images/94084ef1-1d29-4b8a-814f-568f59df8dc8 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
DEBUG (connectionpool:387) "GET /v2/165373e3c37348718db72957a68ddcc0/images/94084ef1-1d29-4b8a-814f-568f59df8dc8 HTTP/1.1" 200 693
DEBUG (session:277) RESP: [200] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json Content-Length: 693 X-Compute-Request-Id: req-5533eef4-8186-4065-9d6e-c7320ea46097
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-02-26T14:24:42Z", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/images/94084ef1-1d29-4b8a-814f-568f59df8dc8", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/images/94084ef1-1d29-4b8a-814f-568f59df8dc8", "rel": "bookmark"}, {"href": "http://192.168.13.134:9292/images/94084ef1-1d29-4b8a-814f-568f59df8dc8", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "94084ef1-1d29-4b8a-814f-568f59df8dc8", "OS-EXT-IMG-SIZE:size": 13287936, "name": "cirros-0.3.4-x86_64", "created": "2016-02-26T14:24:41Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}

DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/m1.tiny -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
DEBUG (connectionpool:387) "GET /v2/165373e3c37348718db72957a68ddcc0/flavors/m1.tiny HTTP/1.1" 404 78
DEBUG (session:277) RESP: [404] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 78 X-Compute-Request-Id: req-974ae098-ea9d-41c2-aaa9-d1626744cd27
RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
DEBUG (connectionpool:387) "GET /v2/165373e3c37348718db72957a68ddcc0/flavors?is_public=None HTTP/1.1" 200 1209
DEBUG (session:277) RESP: [200] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json Content-Length: 1209 X-Compute-Request-Id: req-1fcf8437-1567-4fbb-88fd-b96fb390c903
RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/1", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/2", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/3", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/4", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/5", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}

DEBUG (session:248) REQ: curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/1 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507"
DEBUG (connectionpool:387) "GET /v2/165373e3c37348718db72957a68ddcc0/flavors/1 HTTP/1.1" 200 418
DEBUG (session:277) RESP: [200] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json Content-Length: 418 X-Compute-Request-Id: req-347540ad-be05-409f-9d1e-1856feec0d80
RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": "http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/1", "rel": "self"}, {"href": "http://controller:8774/165373e3c37348718db72957a68ddcc0/flavors/1", "rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 1, "id": "1"}}

DEBUG (session:248) REQ: curl -g -i -X POST http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}38fa7e3c41bad92812a6b5f74244132c6081a507" -d '{"server": {"name": "1111", "imageRef": "94084ef1-1d29-4b8a-814f-568f59df8dc8", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "98ec114d-617b-4c96-aa66-806d2a16b3fd"}], "security_groups": [{"name": "default"}]}}'
DEBUG (connectionpool:387) "POST /v2/165373e3c37348718db72957a68ddcc0/servers HTTP/1.1" 500 128
DEBUG (session:277) RESP: [500] Date: Wed, 02 Mar 2016 13:18:18 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 128 X-Compute-Request-Id: req-81b120db-42bf-4c4c-bf0e-d161ecf07d36
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:894) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-81b120db-42bf-4c4c-bf0e-d161ecf07d36)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/novaclient/shell.py", line 892, in main
    OpenStackComputeShell().main(argv)
  File "/usr/local/lib/python2.7/site-packages/novaclient/shell.py", line 819, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/site-packages/novaclient/v2/shell.py", line 551, in do_boot
    server = cs.servers.create(*boot_args, **boot_kwargs)
  File "/usr/local/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1038, in create
    **boot_kwargs)
  File "/usr/local/lib/python2.7/site-packages/novaclient/v2/servers.py", line 555, in _boot
    return_raw=return_raw, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/novaclient/base.py", line 302, in _create
    _resp, body = self.api.client.post(url, body=body)
  File "/usr/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 179, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/site-packages/novaclient/client.py", line 92, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-81b120db-42bf-4c4c-bf0e-d161ecf07d36)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-81b120db-42bf-4c4c-bf0e-d161ecf07d36)
[root@controller nova]# curl -g -i -X GET http://controller:8774/v2/165373e3c37348718db72957a68ddcc0/flavors/m1.tiny -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}63527c1450f32d592f9c8a63f5f260935df2bc69"^C


nova list flavor 等其他命令都好用



已有(2)人评论

跳转到指定楼层
atsky123 发表于 2016-3-3 10:24:45
本帖最后由 atsky123 于 2016-3-3 10:26 编辑

计算Nova组件可能有问题
回复

使用道具 举报

wangyaohua 发表于 2016-3-3 13:05:11
atsky123 发表于 2016-3-3 10:24
计算Nova组件可能有问题

是的,nova.conf 有问题。因为当初找不到k版的配置 就用的I版的。昨天晚上换了之后就好了
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条