[Openstack] 答复: Error while creating a Nova instance

Mridhul Pax mridhul at live.com
Wed Nov 20 11:15:49 UTC 2013


Got the solution. Nova-network was down on the hypervisor.

From: mridhul at live.com
To: kiwik.chenrui at huawei.com
CC: openstack at lists.openstack.org
Subject: RE: 答复: [Openstack] Error while creating a Nova instance
Date: Wed, 20 Nov 2013 10:13:53 +0530




Thanks a lot. I restarted it and it and tried creating a server again. This time it failed showing following error.
"No valid host was found"

[root at nova-node1 ~]# nova show 7278f58c-3cad-4c6c-9b6a-7d3e20e6366e+--------------------------------------+-----------------------------------------------------------------------------------------------+| Property                             | Value                                                                                         |+--------------------------------------+-----------------------------------------------------------------------------------------------+| status                               | ERROR                                                                                         || updated                              | 2013-11-20T04:22:13Z                                                                          || OS-EXT-STS:task_state                | None                                                                                          || OS-EXT-SRV-ATTR:host                 | nova-node1                                                                                    || key_name                             | mykey                                                                                         || image                                | CirrOS-test (dd08e2cd-b513-4837-a5db-b441cc17d697)                                            || vmnet network                        |                                                                                               || hostId                               | a42533921af3d4b4c9aaecf7b88061796689b27f69fc2a466fc0e383                                      || OS-EXT-STS:vm_state                  | error                                                                                         || OS-EXT-SRV-ATTR:instance_name        | instance-0000000b                                                                             || OS-SRV-USG:launched_at               | None                                                                                          || OS-EXT-SRV-ATTR:hypervisor_hostname  | nova-node1                                                                                    || flavor                               | m1.tiny (1)                                                                                   || id                                   | 7278f58c-3cad-4c6c-9b6a-7d3e20e6366e                                                          || security_groups                      | [{u'name': u'default'}]                                                                       || OS-SRV-USG:terminated_at             | None                                                                                          || user_id                              | 959a0bb9cad246e1b1dd9a4028fb0a13                                                              || name                                 | Centos-Minimal                                                                                || created                              | 2013-11-20T04:21:10Z                                                                          || tenant_id                            | 09bcee79738d421582c8ac938cb13636                                                              || OS-DCF:diskConfig                    | MANUAL                                                                                        || metadata                             | {}                                                                                            || os-extended-volumes:volumes_attached | []                                                                                            || accessIPv4                           |                                                                                               || accessIPv6                           |                                                                                               || fault                                | {u'message': u'No valid host was found. ', u'code': 500, u'created': u'2013-11-20T04:22:13Z'} || OS-EXT-STS:power_state               | 0                                                                                             || OS-EXT-AZ:availability_zone          | nova                                                                                          || config_drive                         |                                                                                               |+--------------------------------------+-----------------------------------------------------------------------------------------------+

here is what compute.log says
http://paste.openstack.org/show/53635/
From: kiwik.chenrui at huawei.com
To: mridhul at live.com
CC: openstack at lists.openstack.org
Subject: 答复: [Openstack] Error while creating a Nova instance
Date: Wed, 20 Nov 2013 04:08:25 +0000









I find error message “ComputeHostNotFound: Compute host 2 could not be found.” in compute.log
Can you restart your nova-compute process and try again?
More log info is better
 


发件人: Pax Mridhul [mailto:mridhul at live.com]


发送时间: 2013年11月19日
 21:14

收件人: openstack at lists.openstack.org

主题: [Openstack] Error while creating a Nova instance


 
Hello All,
 
I’ve installed OS Havana on my servers and while trying to launch an instance it fails immediately and shows the instance state as ERROR
 
My setup is 
 
MySQL/QPIDD/Horizon/Nova controller/Glance running on a single server (8GB RAM/4vCPU) and Nova compute on a different server(32GB RAM/8CPU)
 
/var/log/nova/compute.log has the following error trace while I create an instance :
http://paste.openstack.org/show/53590/
 
Whenever I trigger a launch request it fails and this is the status of my server
 
 
[root at nova-node1 ~]# nova list
+--------------------------------------+----------------+--------+------------+-------------+----------+
| ID                                   | Name           | Status | Task State | Power State | Networks |
+--------------------------------------+----------------+--------+------------+-------------+----------+
| 88fa9e4f-ddf2-4f81-9afd-25c0160aa320 | Centos-Minimal | ERROR  | None       | NOSTATE     |          |
+--------------------------------------+----------------+--------+------------+-------------+----------+
[root at nova-node1 ~]# nova show 88fa9e4f-ddf2-4f81-9afd-25c0160aa320
+--------------------------------------+-----------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                         |
+--------------------------------------+-----------------------------------------------------------------------------------------------+
| status                               | ERROR                                                                                         |
| updated                              | 2013-11-19T12:41:20Z                                                                          |
| OS-EXT-STS:task_state                | None                                                                                          |
| OS-EXT-SRV-ATTR:host                 | None                                                                                          |
| key_name                             | mykey                                                                                         |
| image                                | CirrOS-test (dd08e2cd-b513-4837-a5db-b441cc17d697)                                            |
| hostId                               |                                                                                               |
| OS-EXT-STS:vm_state                  | error                                                                                         |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000009                                                                             |
| OS-SRV-USG:launched_at               | None                                                                                          |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                                                                          |
| flavor                               | Micro (6b3827d7-ebc4-4992-a44b-557ea2fd9b19)                                                  |
| id                                   | 88fa9e4f-ddf2-4f81-9afd-25c0160aa320                                                          |
| security_groups                      | [{u'name': u'default'}]                                                                       |
| OS-SRV-USG:terminated_at             | None                                                                                          |
| user_id                              | 959a0bb9cad246e1b1dd9a4028fb0a13                                                              |
| name                                 | Centos-Minimal                                                                                |
| created                              | 2013-11-19T12:41:20Z                                                                          |
| tenant_id                            | 09bcee79738d421582c8ac938cb13636                                                              |
| OS-DCF:diskConfig                    | MANUAL                                                                                        |
| metadata                             | {}                                                                                            |
| os-extended-volumes:volumes_attached | []                                                                                            |
| accessIPv4                           |                                                                                               |
| accessIPv6                           |                                                                                               |
| fault                                | {u'message': u'No valid host was found. ', u'code': 500, u'created': u'2013-11-19T12:41:20Z'} |
| OS-EXT-STS:power_state               | 0                                                                                             |
| OS-EXT-AZ:availability_zone          | nova                                                                                          |
| config_drive                         |                                                                                               |
+--------------------------------------+-----------------------------------------------------------------------------------------------+
 
Mridhul
 
 
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131120/6fe94bef/attachment.html>


More information about the Openstack mailing list