infinitely reschedule instance when boot instance failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Alex Xu |
Bug Description
When I boot an instance that failed by image size bigger than flavor size, then nova begin to reschedule the instance infinitely.
$ glance index
ID Name Disk Format Container Format Size
-------
0d366543-
$ nova boot --flavor 1 --image 0d366543-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | 8a7ru8z7bUQ6 |
| config_drive | |
| created | 2014-06-
| flavor | m1.tiny (1) |
| hostId | |
| id | cd5a4327-
| image | Fedora-
| key_name | - |
| metadata | {} |
| name | vm1 |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | ac99aeb3fbb2449
| updated | 2014-06-
| user_id | 2c08e17d6fb54de
+------
The first error at compute node:
2014-06-04 11:24:58.121 ERROR nova.virt.
d9305ec292d5f3e
2014-06-04 11:24:58.121 ERROR nova.compute.
ance failed to spawn
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
7d9/opt/
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
7d9/opt/
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
7d9/opt/
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
7d9/opt/
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
7d9/opt/
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
7d9/opt/
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.121 TRACE nova.compute.
2014-06-04 11:24:58.122 ERROR root [req-45fbcfec-
The second:
2014-06-04 11:24:58.174 DEBUG nova.compute.utils [req-45fbcfec-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.174 TRACE nova.compute.utils [instance: cd5a4327-
2014-06-04 11:24:58.175 DEBUG nova.compute.
The third is nova reschedule the instance infinitely
For the first error, the nova api check the image size with flavor size, but the image size is actually size that different with virtual size. In libvirt driver check the virtual size.
the image properties as blow:
$ glance show 01efb526-
URI: http://
Id: 01efb526-
Public: Yes
Protected: No
Name: cirros-
Status: active
Size: 25165824
Disk format: ami
Container format: ami
Minimum Ram Required (MB): 0
Minimum Disk Required (GB): 0
Owner: ac99aeb3fbb2449
Property 'kernel_id': efa41ea7-
Property 'ramdisk_id': eb736431-
Created at: 2014-05-27T07:34:27
Updated at: 2014-05-27T07:34:27
In nova api, it will check the 'Minimum Disk Required'. User should specific the 'Minimum Disk Required' for image. So I think this isn't a bug for nova
For second error, that is wrong way to use network_info object, this should be fixed.
For third error, after change conductor to build new instance, the retry info is missing. we should fix is also.
Changed in nova: | |
assignee: | nobody → Alex Xu (xuhj) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/97727
Review: https:/