分享

帮忙看看我的openstack vm创建的问题,多谢

onlyon 发表于 2015-7-22 14:39:39 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 58613
juno的allinone配置:

我的openstack服务都正常
[root@openstacklab1 ~]# nm
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth openstacklab1                        internal         enabled    :-)   2015-07-20 14:23:38
nova-scheduler   openstacklab1                        internal         enabled    :-)   2015-07-20 14:23:44
nova-conductor   openstacklab1                        internal         enabled    :-)   2015-07-20 14:23:38
nova-cert        openstacklab1                        internal         enabled    :-)   2015-07-20 14:23:38
nova-compute     openstacklab1                        nova             enabled    :-)   2015-07-20 14:23:40
[root@openstacklab1 ~]# nova image-list
+--------------------------------------+---------------------+--------+--------+
| ID                                   | Name                | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| ad1e72cc-a11f-41d8-9eba-1b6c4501eb92 | cirros-0.3.3-x86_64 | ACTIVE |        |
+--------------------------------------+---------------------+--------+--------+
[root@openstacklab1 ~]# neutron ext-list
+-----------------------+-----------------------------------------------+
| alias                 | name                                          |
+-----------------------+-----------------------------------------------+
| security-group        | security-group                                |
| l3_agent_scheduler    | L3 Agent Scheduler                            |
| ext-gw-mode           | Neutron L3 Configurable external gateway mode |
| binding               | Port Binding                                  |
| provider              | Provider Network                              |
| agent                 | agent                                         |
| quotas                | Quota management support                      |
| dhcp_agent_scheduler  | DHCP Agent Scheduler                          |
| l3-ha                 | HA Router extension                           |
| multi-provider        | Multi Provider Network                        |
| external-net          | Neutron external network                      |
| router                | Neutron L3 Router                             |
| allowed-address-pairs | Allowed Address Pairs                         |
| extraroute            | Neutron Extra Route                           |
| extra_dhcp_opt        | Neutron Extra DHCP opts                       |
| dvr                   | Distributed Virtual Router                    |
+-----------------------+-----------------------------------------------+
[root@openstacklab1 ~]# neutron agent-list
+--------------------------------------+--------------------+---------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host          | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------------+-------+----------------+---------------------------+
| 10356411-32e1-41c8-8e97-75034f2f9dcb | DHCP agent         | openstacklab1 | :-)   | True           | neutron-dhcp-agent        |
| 6d0df3bd-9d7d-4f31-9f4b-7a82be0549ec | L3 agent           | openstacklab1 | :-)   | True           | neutron-l3-agent          |
| ca82206b-8c34-45a1-98c7-f9af836197ab | Metadata agent     | openstacklab1 | :-)   | True           | neutron-metadata-agent    |
| e88a6f8f-6a3a-4eb3-b8dc-be6421db2c5e | Open vSwitch agent | openstacklab1 | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+---------------+-------+----------------+---------------------------+
[root@openstacklab1 ~]# neutron net-list
+--------------------------------------+---------+---------------------------------------------------+
| id                                   | name    | subnets                                           |
+--------------------------------------+---------+---------------------------------------------------+
| 4ad24ac2-6933-41ce-b291-2268ee341d68 | int-net | a3cb7793-9851-419e-b45a-abe92b061d5f 10.28.1.0/24 |


但是当我创建VM的时候,出现HTTP 500错误:

2015-07-20 22:41:00.506 3323 INFO nova.osapi_compute.wsgi.server [req-1de19c95-2cef-434b-8633-ecc9b3d806b6 None] 192.168.82.101 "GET /v2/d750ce73624049e687443912b6778bc1/servers/detail?limit=21&project_id=d750ce73624049e687443912b6778bc1 HTTP/1.1" status: 200 len: 187 time: 0.2868822

2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1457, in create
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     check_server_group_quota=check_server_group_quota)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1079, in _create_instance
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     max_count)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 770, in _validate_and_build_base_options
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     requested_networks, max_count)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 479, in _check_requested_networks
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     max_count)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/api.py", line 48, in wrapped
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     return func(self, context, *args, **kwargs)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/api.py", line 404, in validate_networks
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     requested_networks)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/rpcapi.py", line 245, in validate_networks
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     return self.client.call(ctxt, 'validate_networks', networks=networks)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 389, in call
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     return self.prepare().call(ctxt, method, **kwargs)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 152, in call
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     retry=self.retry)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/transport.py", line 90, in _send
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     timeout=timeout, retry=retry)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 408, in send
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     retry=retry)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 397, in _send
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     result = self._waiter.wait(msg_id, timeout)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 285, in wait
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     reply, ending = self._poll_connection(msg_id, timeout)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 235, in _poll_connection
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack     % msg_id)
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack MessagingTimeout: Timed out waiting for a reply to message ID 5ad73fdbd06940d5bbaea92d81432e40
2015-07-20 22:41:00.054 3323 TRACE nova.api.openstack
2015-07-20 22:41:00.103 3323 INFO nova.api.openstack [req-88738943-cfa7-40fa-8b5b-f56dfc0c2d2d None] http://controller:8774/v2/d750ce73624049e687443912b6778bc1/servers returned with HTTP 500
2015-07-20 22:41:00.114 3323 INFO nova.osapi_compute.wsgi.server [req-88738943-cfa7-40fa-8b5b-f56dfc0c2d2d None] 192.168.82.101 "POST /v2/d750ce73624049e687443912b6778bc1/servers HTTP/1.1" status: 500 len: 335 time: 61.4825931

已有(3)人评论

跳转到指定楼层
onlyon 发表于 2015-7-22 14:41:10
debug info:

nova --debug boot --flavor m1.tiny --image cirros-0.3.3-x86_64 --nic net-id=4ad24ac2-6933-41ce-b291-2268ee341d68 --security-group default --key-name demo-key demo-instance

DEBUG (connectionpool:357) "POST /v2/d750ce73624049e687443912b6778bc1/servers HTTP/1.1" 500 128
RESP: [500] {'date': 'Mon, 20 Jul 2015 15:10:49 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-3e9f48e1-7357-4abb-8303-36c5d486fceb'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:803) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-3e9f48e1-7357-4abb-8303-36c5d486fceb)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 800, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 730, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 470, in do_boot
    server = cs.servers.create(*boot_args, **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 902, in create
    **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 554, in _boot
    return_raw=return_raw, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 100, in _create
    _resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 490, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 465, in _cs_request
    resp, body = self._time_request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 439, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 433, 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-3e9f48e1-7357-4abb-8303-36c5d486fceb)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-3e9f48e1-7357-4abb-8303-36c5d486fceb)
回复

使用道具 举报

onlyon 发表于 2015-7-22 14:41:43

是allinone,检查了nova.conf应该没有问题,服务都是正常的,查了ask openstack.,org好几个有类似的问题,但是都没有答复
回复

使用道具 举报

muyannian 发表于 2015-7-22 14:55:13
楼主贴出的内容不能定位问题的。
下面也是楼主的问题,解决办法参考
【已解决】:Request returned failure status.HTTPInternalServerError (HTTP 500)
http://www.aboutyun.com/thread-10752-1-1.html


openstack keystone安装错误总结:http:409,http:500
http://www.aboutyun.com/thread-7124-1-1.html



回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条