Ask Your Question
0

Issue with nova boot

asked 2014-03-07 02:11:51 -0500

ebyenjoys gravatar image

updated 2014-03-07 02:38:44 -0500

dheeru gravatar image

Hello Guys,

I got two nodes

192.168.1.75- Nova controller service

192.168.1.80- Nova compute node.

When i run the following command in compute node:

nova boot --flavor 1 --key_name mykey --image a541b7d9-8f42-4c37-ae87-aa7d2d6a07b0 --security_group default ubuntu

I am getting the output as:

+--------------------------------------+--------------------------------------+
| Property                             | Value                                |
+--------------------------------------+--------------------------------------+
 | OS-EXT-STS:task_state                | scheduling                           |
| image                                | ubuntu                               |
| OS-EXT-STS:vm_state                  | building                             |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000003                    |
| OS-SRV-USG:launched_at               | None                                 |
| flavor                               | m1.tiny                              |
| id                                   | bf5efc90-361e-4333-ab3f-f567baa354bd |
| security_groups                      | [{u'name': u'default'}]              |
| user_id                              | c623f84a16364b2e9b39d85bdb88dd4a     |
| 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                              | 2014-03-07T06:35:33Z                 |
| hostId                               |                                      |
| OS-EXT-SRV-ATTR:host                 | None                                 |
| OS-SRV-USG:terminated_at             | None                                 |
| key_name                             | mykey                                |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                 |
| name                                 | ubuntu                               |
| adminPass                            | 8FdEWusV8KNJ                         |
| tenant_id                            | 0df50196499b4e3e8ffe9d98bc49516d     |
| created                              | 2014-03-07T06:35:33Z                 |
 | os-extended-volumes:volumes_attached | []                                   |
| metadata                             | {}                                   |
+--------------------------------------+--------------------------------------+

But when i execute the following,i am getting error.

root@ubuntu:~# nova show bf5efc90-361e-4333-ab3f-f567baa354bd
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                                                                                     |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------+
 | status                               | ERROR                                                                                                                                                                                      |
 | updated                              | 2014-03-07T06:35:34Z                                                                                                                                                                      |
 | OS-EXT-STS:task_state                | None                                                                                                                                                                                      |
 | OS-EXT-SRV-ATTR:host                 | None                                                                                                                                                                                      |
 | key_name                             | mykey                                                                                                                                                                                    |
 | image                                | ubuntu (a541b7d9-8f42-4c37-ae87-aa7d2d6a07b0)                                                                                                                                            |
 | hostId                               |                                                                                                                                                                                         |
 | OS-EXT-STS:vm_state                  | error                                                                                                                                                                                   |
 | OS-EXT-SRV-ATTR:instance_name        | instance-00000003                                                                                                                                                                       |
 | OS-SRV-USG:launched_at               | None                                                                                                                                                                                     |
 | OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                                                                                                                                                                       |
 | flavor                               | m1.tiny (1)                                                                                                                                                                              |
 | id                                   | bf5efc90-361e-4333-ab3f-f567baa354bd                                                                                                                                                     |
 | security_groups                      | [{u'name': u'default'}]                                                                                                                                                                  |
 | OS-SRV-USG:terminated_at             | None                                                                                                                                                                                     |
 | user_id                              | c623f84a16364b2e9b39d85bdb88dd4a                                                                                                                                                         |
 | name                                 | ubuntu                                                                                                                                                                                   |
 | created                              | 2014-03-07T06:35:33Z                                                                                                                                                                     |
 | tenant_id                            | 0df50196499b4e3e8ffe9d98bc49516d                                                                                                                                                         |
 | 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'details': u'  File  "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 107, in schedule_run_instance |
|                                      |     raise exception.NoValidHost(reason="")                                                                                                                                                |
|                                      | ', u'created': u'2014-03-07T06:35:34Z'}                                                                                                                                                     |
 | OS-EXT-STS:power_state               | 0                                                                                                                                                                                        |
 | OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                     |
| config_drive                         |                                                                                                                                                                                          |
 +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

This my nova-scheduler.log

2014-03-07 11:25:00.607 813 INFO nova.scheduler.filter_scheduler [req-e5dbb09e-70fe-43a1-a2d9-c43c7f8f52d5 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Attempting to build 1 instance(s) uuids: [u'4207a335-1029-4d94-91d1-8620c5ad7573']
2014-03-07 11:25:01.354 813 WARNING nova.scheduler.driver [req-e5dbb09e-70fe-43a1-a2d9-c43c7f8f52d5 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] [instance: 4207a335-1029-4d94-91d1-8620c5ad7573] Setting instance to ERROR state.
2014-03-07 11:50:02.221 813 INFO nova.scheduler.filter_scheduler [req-dfe92cd0-1e17-4054-bf5c-c74e3bb23c60 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Attempting to build 1 instance(s) uuids: [u'a73db1f7-8aef-4ca2-ad92-893ed2839622']
2014-03-07 11:50:02.397 813 INFO nova.scheduler.filter_scheduler [req-dfe92cd0-1e17-4054-bf5c-c74e3bb23c60 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Choosing host WeighedHost [host: ubuntu, weight: 367.0] for instance a73db1f7-8aef-4ca2-ad92-893ed2839622
2014-03-07 11:50:02.917 813 INFO nova.openstack.common.rpc.common [req-dfe92cd0-1e17-4054-bf5c-c74e3bb23c60 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Connected to AMQP server on 192.168.1.70:5672
2014-03-07 11:50:46.315 813 INFO nova.scheduler.filter_scheduler [req-dfe92cd0-1e17-4054-bf5c-c74e3bb23c60 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Attempting to build 1 instance(s) uuids: [u'a73db1f7-8aef-4ca2-ad92-893ed2839622']
2014-03-07 11:50:46.316 813 ERROR nova.scheduler.filter_scheduler [req-dfe92cd0-1e17-4054-bf5c-c74e3bb23c60 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] [instance: a73db1f7-8aef-4ca2-ad92-893ed2839622] Error from last host: ubuntu (node ubuntu): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1037, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1420, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1417, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2063, in spawn\n    admin_pass=admin_password)\n', u'  File "/usr/lib/python2 ...
(more)
edit retag flag offensive close merge delete

Comments

I did tried to increase the RAM, i am stil getting the same error. I got an new entry log as follows. 2014-03-07 13:23:13.236 813 INFO nova.scheduler.filter_scheduler [req-a3339cb0-c3b8-4cf8-9381-f5c56f022604 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Attempting to build 1 instance(s) uuids: [u'789650a8-8fc5-4f06-9655-468f8d292824'] 2014-03-07 13:23:14.152 813 INFO nova.scheduler.filter_scheduler [req-a3339cb0-c3b8-4cf8-9381-f5c56f022604 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Choosing host WeighedHost [host: ubuntu, weight: 449.0] for instance 789650a8-8fc5-4f06-9655-468f8d292824 2014-03-07 13:23:51.605 813 INFO nova.scheduler.filter_scheduler [req-a3339cb0-c3b8-4cf8-9381-f5c56f022604 c623f84a16364b2e9b39d85bdb88dd4a 0df50196499b4e3e8ffe9d98bc49516d] Attempting to build 1 instance(s) uuids: [u'789650a8-8fc5-4f06-9655-468f8d292824'] 2014-03-07 13:23:51.606 813 ERROR nova.scheduler.filter_scheduler [req-a3339cb0-c3b8-4cf8-9381-f5c56f

ebyenjoys gravatar imageebyenjoys ( 2014-03-07 02:13:35 -0500 )edit

What does the command 'sudo nova-manage service list' return?

fetahi gravatar imagefetahi ( 2014-03-07 02:30:15 -0500 )edit

It is issue with disk size. Please refer to the https://ask.openstack.org/en/question/4189/how-to-add-more-disk-space-in-controller/. Also are you running instances in 32 bit boxes ?

dheeru gravatar imagedheeru ( 2014-03-07 02:45:22 -0500 )edit

@fetahi root@ubuntu:~# nova-manage service list Binary Host Zone Status State Updated_At nova-cert ubuntu internal enabled :-) 2014-03-07 10:14:46 nova-consoleauth ubuntu internal enabled :-) 2014-03-07 10:14:47 nova-scheduler ubuntu internal enabled :-) 2014-03-07 10:14:41 nova-conductor ubuntu internal enabled :-) 2014-03-07 10:14:44 nova-compute compute1 nova enabled XXX 2014-03-07 05:58:25 nova-network compute1 internal enabled XXX 2014-03-07 05:58:17 nova-network ubuntu internal enabled :-) 2014-03-07 10:14:47 nova-compute ubuntu nova enabled :-) 2014-03-0

ebyenjoys gravatar imageebyenjoys ( 2014-03-07 04:15:18 -0500 )edit

@dheeru Sir i am using 32 bit images and i tried to to modify the ram size. My compute node got 2000 MB internal memory and i modifed the min ram as 1024, After when i executed nova boot,i am getting error as: Instance type's memory is too small for requested image. (HTTP 400) (Request-ID: req-85f2a857-cc1a-4c9a-b133-2aabde63b36f) When i modified it to 512mb i was able to execute the nova boot command,but i am getting the old failure error:No valid host was found.

ebyenjoys gravatar imageebyenjoys ( 2014-03-07 04:32:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-07 06:08:29 -0500

fetahi gravatar image

"InstanceTypeDiskTooSmall: Instance type's disk is too small for requested image.\n": try a different flavor, e.g., m1.medium

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: 2014-03-07 02:11:51 -0500

Seen: 1,060 times

Last updated: Mar 07 '14