Ask Your Question
0

Launch Instance State Error

asked 2013-08-21 03:12:59 -0500

Rahul Patil gravatar image

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
edit retag flag offensive close merge delete

Comments

Hi, I am facing the same prob. .I tried adding windows7 image(5.8 GB) to glance and it was added successfully and also was listed in avaliable imaged with the satatus as ACTIVE but when i try to do boot the instance it ends up with state ERROR ,i am using flavor with detail VCPU-1,RAM-128(also tried with 512MB),DISK-10GB Any pointers will be of great help

Amit_Hora gravatar imageAmit_Hora ( 2013-10-23 05:44:03 -0500 )edit

please provide error details from log file of nova- controller. I error does not exist in that file please provide error details from nova controller log file.

rajiv-kumar gravatar imagerajiv-kumar ( 2014-11-01 07:05:08 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-31 11:42:37 -0500

gagarinq9 gravatar image

Hi, what is in scheduller log? Try add verbose and debug mode to config if it is nothing in logs

edit flag offensive delete link more
0

answered 2014-10-31 12:27:03 -0500

With the information you provided we can't decide what is the error is.

Do one thing execute the below command and paste its output. grep -inr '2bb44c61-0888-4671-b539-99bc8ff94ede' /var/log/nova/*

This will search all nova logs which are related to your instance.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-21 03:12:59 -0500

Seen: 1,844 times

Last updated: Oct 31 '14