Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Launch Instance State Error

I'm following below Steps to Create and launch instance but it's fails

root@controller:~# glance image-list
+--------------------------------------+--------+-------------+------------------+-----------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size      | Status |
+--------------------------------------+--------+-------------+------------------+-----------+--------+
| 656b41d9-41fb-4a43-877c-d5edad6b0f72 |        | qcow2       | bare             | 9761280   | active |
| d8828cc9-b6dc-49f4-9853-e115f60653d3 | CirrOS | qcow2       | bare             | 9761280   | active |
| 9741bb2d-33c5-450a-ad8a-755ac428a5fa | Ubuntu | qcow2       | bare             | 252510208 | active |
+--------------------------------------+--------+-------------+------------------+-----------+--------+



root@controller:~# nova boot --flavor 2 --image d8828cc9-b6dc-49f4-9853-e115f60653d3 CirrOS
+-------------------------------------+--------------------------------------+
| Property                            | Value                                |
+-------------------------------------+--------------------------------------+
| OS-EXT-STS:task_state               | scheduling                           |
| image                               | CirrOS                               |
| OS-EXT-STS:vm_state                 | building                             |
| OS-EXT-SRV-ATTR:instance_name       | instance-0000000a                    |
| flavor                              | m1.small                             |
| id                                  | 2bb44c61-0888-4671-b539-99bc8ff94ede |
| security_groups                     | [{u'name': u'default'}]              |
| user_id                             | f24170a146df4b9cb3cfbd23c32c96d2     |
| OS-DCF:diskConfig                   | MANUAL                               |
| accessIPv4                          |                                      |
| accessIPv6                          |                                      |
| progress                            | 0                                    |
| OS-EXT-STS:power_state              | 0                                    |
| OS-EXT-AZ:availability_zone         | nova                                 |
| config_drive                        |                                      |
| status                              | BUILD                                |
| updated                             | 2013-08-21T08:06:36Z                 |
| hostId                              |                                      |
| OS-EXT-SRV-ATTR:host                | None                                 |
| key_name                            | None                                 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                 |
| name                                | CirrOS                               |
| adminPass                           | i5UH6zeV6BdE                         |
| tenant_id                           | 28bb6e10851c4667a4ec01afb1a9e628     |
| created                             | 2013-08-21T08:06:36Z                 |
| metadata                            | {}                                   |
+-------------------------------------+--------------------------------------+


root@controller:~# nova show CirrOS
+-------------------------------------+------------------------------------------------------------------------------------+
| Property                            | Value                                                                              |
+-------------------------------------+------------------------------------------------------------------------------------+
| status                              | ERROR                                                                              |
| updated                             | 2013-08-21T08:06:39Z                                                               |
| OS-EXT-STS:task_state               | None                                                                               |
| OS-EXT-SRV-ATTR:host                | compute                                                                            |
| key_name                            | None                                                                               |
| image                               | CirrOS (d8828cc9-b6dc-49f4-9853-e115f60653d3)                                      |
| hostId                              | f0b7c9f3fa9d584f3f6ad3f68c111c251b870f73f70e844f2b9cb1a0                           |
| OS-EXT-STS:vm_state                 | error                                                                              |
| OS-EXT-SRV-ATTR:instance_name       | instance-0000000a                                                                  |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute.altech.local                                                               |
| flavor                              | m1.small (2)                                                                       |
| id                                  | 2bb44c61-0888-4671-b539-99bc8ff94ede                                               |
| security_groups                     | [{u'name': u'default'}]                                                            |
| user_id                             | f24170a146df4b9cb3cfbd23c32c96d2                                                   |
| name                                | CirrOS                                                                             |
| created                             | 2013-08-21T08:06:36Z                                                               |
| tenant_id                           | 28bb6e10851c4667a4ec01afb1a9e628                                                   |
| OS-DCF:diskConfig                   | MANUAL                                                                             |
| metadata                            | {}                                                                                 |
| accessIPv4                          |                                                                                    |
| accessIPv6                          |                                                                                    |
| fault                               | {u'message': u'NoValidHost', u'code': 500, u'details': u'No valid host was found.  |
|                                     | ', u'created': u'2013-08-21T08:06:39Z'}                                            |
| OS-EXT-STS:power_state              | 0                                                                                  |
| OS-EXT-AZ:availability_zone         | nova                                                                               |
| config_drive                        |                                                                                    |
+-------------------------------------+------------------------------------------------------------------------------------+

So how to troubleshoot the issue : No valid host was found

I'm able to ping compute hosts from controller and status is fine as below :

root@controller:~# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-conductor   controller                           internal         enabled    :-)   2013-08-21 08:12:38
nova-cert        controller                           internal         enabled    :-)   2013-08-21 08:12:40
nova-consoleauth controller                           internal         enabled    :-)   2013-08-21 08:12:38
nova-scheduler   controller                           internal         enabled    :-)   2013-08-21 08:12:38
nova-compute     compute                              nova             enabled    :-)   2013-08-21 08:12:34