Ask Your Question
0

Instance creation errors for tiny flavor whereas rest of the flavors works fine

asked 2015-01-30 05:14:45 -0500

Poonam Agarwal gravatar image

I am facing a problem m1.tiny OR m2.tiny instances on Openstack Havana. I am able to create instances with any other flavor except tiny.

When i try to create an instance with flavor as m1.tiny OR m2.tiny , the nova-scheduler log shows below errors

root@ncontroller:~# tail -f /var/log/nova/nova-scheduler.log
2015-01-30 11:07:33.005 21994 INFO nova.scheduler.filter_scheduler [req-97e547e7-ccf3-4433-ae93-d72ea29c4d0b 4de8ce3bd877407783f4c903bb9d1530 4c7db08bd3644fb58fca3d52501c75c6] Attempting to build 1 instance(s) uuids: [u'91ddba45-52f0-4879-b03c-f8d25bcd432d']
2015-01-30 11:07:33.082 21994 WARNING nova.scheduler.driver [req-97e547e7-ccf3-4433-ae93-d72ea29c4d0b 4de8ce3bd877407783f4c903bb9d1530 4c7db08bd3644fb58fca3d52501c75c6] [instance: 91ddba45-52f0-4879-b03c-f8d25bcd432d] Setting instance to ERROR state.

The instance state shows as below

# nova show 91ddba45-52f0-4879-b03c-f8d25bcd432d
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                                                                                   |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status                               | ERROR                                                                                                                                                                                   |
| updated                              | 2015-01-30T11:07:33Z                                                                                                                                                                    |
| OS-EXT-STS:task_state                | None                                                                                                                                                                                    |
| OS-EXT-SRV-ATTR:host                 | None                                                                                                                                                                                    |
| key_name                             | rservers                                                                                                                                                                                |
| image                                | fedora19 (f2774648-ffcb-4968-8e93-435721076f57)                                                                                                                                         |
| hostId                               |                                                                                                                                                                                         |
| OS-EXT-STS:vm_state                  | error                                                                                                                                                                                   |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000017a                                                                                                                                                                       |
| OS-SRV-USG:launched_at               | None                                                                                                                                                                                    |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                                                                                                                                                                    |
| flavor                               | m2.tiny (6)                                                                                                                                                                             |
| id                                   | 91ddba45-52f0-4879-b03c-f8d25bcd432d                                                                                                                                                    |
| security_groups                      | [{u'name': u'default'}]                                                                                                                                                                 |
| OS-SRV-USG:terminated_at             | None                                                                                                                                                                                    |
| user_id                              | 4de8ce3bd877407783f4c903bb9d1530                                                                                                                                                        |
| name                                 | test_tiny                                                                                                                                                                               |
| created                              | 2015-01-30T11:07:32Z                                                                                                                                                                    |
| tenant_id                            | 4c7db08bd3644fb58fca3d52501c75c6                                                                                                                                                        |
| 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'2015-01-30T11:07:33Z'}                                                                                                                                                 |
| OS-EXT-STS:power_state               | 0                                                                                                                                                                                       |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                    |
| config_drive                         |                                                                                                                                                                                         |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-01-30 07:11:59 -0500

Poonam Agarwal gravatar image

The problem was resolved. The Extra Specs for teh m1.tiny and m2.tiny flavors had a key called m1 and m2 respectively whihc was set to "true" Deleted the Extra Specs and seems to be working now. Thanks for your help!

edit flag offensive delete link more
1

answered 2015-01-30 06:32:27 -0500

In my experience, I have encountered an error in launching an instance because the flavor backing that image does not have enough resources to launch it. The Cirros image will work with any of the stock flavors in OpenStack. Use that image to test the 2 flavors that are not working with your current image and if it works, you know the image you are using can only be used with the other successful flavors. If Cirros does not work with those 2 flavors that did not work with your current image, then your flavors might not be working properly. In that case remove them and recreate.

edit flag offensive delete link more
0

answered 2015-01-30 06:27:29 -0500

updated 2015-01-30 06:28:17 -0500

Hey hi, 1. Can I know what are the other flavors you tried with? 2. Are you using cirros image for tiny flavor? 3. In my experience, I have encountered an error in launching an instance because of an faulty image. My suggestion is check for the consistency of the image. 4. Post more of log files.

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: 2015-01-30 05:14:45 -0500

Seen: 213 times

Last updated: Jan 30 '15