HTTP 500 Error when Creating a VM Instance - kilo
Hi,
I got HTTP 500 Error when creating an instance, and stuck for a few days. Please give me a hand, any advice will be appreciated. The log as bellow, it seems can not get the image details.
[root@controller ~]# glance image-list
+--------------------------------------+---------------------+
| ID | Name |
+--------------------------------------+---------------------+
| aa64cc18-c8db-489d-a463-9c67bec6dd8b | cirros |
| 0077a9dc-4827-4011-9731-b7e5719e55d4 | cirros-0.3.4-x86_64 |
+--------------------------------------+---------------------+
[root@controller ~]# neutron net-list
+--------------------------------------+----------+--------------------------------------------------+
| id | name | subnets |
+--------------------------------------+----------+--------------------------------------------------+
| 05aa8df1-beee-459c-86eb-3844cc3d5cd3 | ext-net | 7f8dee80-18bb-468a-9739-933d00c699a5 |
| 1cd3fffe-e00d-4451-ae5a-63c62b7d7308 | demo-net | f7ec844d-3778-410c-9246-8bd77351d60f 10.4.1.0/24 |
+--------------------------------------+----------+--------------------------------------------------+
[root@controller ~]# neutron agent-list
+--------------------------------------+--------------------+----------+-------+----------------+---------------------------+
| id | agent_type | host | alive | admin_state_up | binary |
+--------------------------------------+--------------------+----------+-------+----------------+---------------------------+
| 82e0498f-2445-4cdb-a0c4-6c627484d4ab | Metadata agent | network | :-) | True | neutron-metadata-agent |
| 848b56d2-6cdd-4d88-b9df-19746f7dc9b7 | L3 agent | network | :-) | True | neutron-l3-agent |
| 94212715-d094-4846-9153-15436d69cd30 | Open vSwitch agent | network | :-) | True | neutron-openvswitch-agent |
| c332097a-a2e7-4ab9-83ba-13283dc999e4 | Open vSwitch agent | compute1 | :-) | True | neutron-openvswitch-agent |
| da5b8c9d-4a3a-42b5-a8f1-f0a8e1978771 | DHCP agent | network | :-) | True | neutron-dhcp-agent |
+--------------------------------------+--------------------+----------+-------+----------------+---------------------------+
[root@controller ~]# nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=1cd3fffe-e00d-4451-ae5a-63c62b7d7308 --security-group default --key-name demo-key demo-instance1
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v3 HTTP/1.1" 200 249
DEBUG (session:224) RESP: [200] Content-Length: 249 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.5 Connection: Keep-Alive Date: Fri, 06 May 2016 10:03:48 GMT Content-Type: application/json x-openstack-request-id: req-7d28f12d-a7b8-463c-86c2-d46008e972e8
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://controller:5000/v3/", "rel": "self"}]}}
DEBUG (base:171) Making authentication request to http://controller:5000/v3/auth/tokens
DEBUG (connectionpool:393) "POST /v3/auth/tokens HTTP/1.1" 201 4105
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/d17b4ad81ee241a8bba4bb0dc2777d8c/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}de72d432a17a3b09c1cb741d1c7bd0888f00579f"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v2/d17b4ad81ee241a8bba4bb0dc2777d8c/images HTTP/1.1" 200 991
DEBUG (session:224) RESP: [200] Date: Fri, 06 May 2016 10:03:52 GMT Connection: keep-alive Content-Type: application/json Content-Length: 991 X-Compute-Request-Id: req-7efc2b62-2ece-4f3c-9f9c-418f035e4a02
RESP BODY: {"images": [{"id": "aa64cc18-c8db-489d-a463-9c67bec6dd8b", "links": [{"href": "http://controller:8774/v2/d17b4ad81ee241a8bba4bb0dc2777d8c/images/aa64cc18-c8db-489d-a463-9c67bec6dd8b", "rel": "self"}, {"href": "http://controller:8774/d17b4ad81ee241a8bba4bb0dc2777d8c/images/aa64cc18-c8db-489d-a463-9c67bec6dd8b", "rel": "bookmark"}, {"href": "http://controller:9292/images/aa64cc18-c8db-489d-a463-9c67bec6dd8b", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros"}, {"id": "0077a9dc-4827-4011-9731-b7e5719e55d4", "links": [{"href": "http://controller:8774/v2/d17b4ad81ee241a8bba4bb0dc2777d8c/images/0077a9dc-4827-4011-9731-b7e5719e55d4", "rel": "self"}, {"href": "http://controller:8774/d17b4ad81ee241a8bba4bb0dc2777d8c/images/0077a9dc-4827-4011-9731-b7e5719e55d4", "rel": "bookmark"}, {"href": "http://controller:9292/images/0077a9dc-4827-4011-9731-b7e5719e55d4", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.4-x86_64"}]}
200
True
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/d17b4ad81ee241a8bba4bb0dc2777d8c/images/0077a9dc-4827-4011-9731-b7e5719e55d4 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}de72d432a17a3b09c1cb741d1c7bd0888f00579f"
DEBUG (connectionpool:393) "GET /v2/d17b4ad81ee241a8bba4bb0dc2777d8c/images/0077a9dc-4827-4011-9731-b7e5719e55d4 HTTP/1.1" 500 128
DEBUG (session:224) RESP:
500
True
DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-de3d2532-64c4-4121-8e68-20d89784de49)
Traceback (most recent call last):
File "/usr/lib ...