Booting m1.tiny instance causes 'ImageTooLarge' exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Josh Kearney |
Bug Description
Using nova trunk bzr revision 1440:
When booting an m1.tiny instance via the EC2 API I'm getting the following exception:
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/
(nova): TRACE: rval = node_func(
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return f(*args, **kw)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self._run_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: _check_image_size()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise exception.
(nova): TRACE: ImageTooLarge: Image is larger than instance type allows
(nova): TRACE:
----
I think we may have a math error in the _check_image_size() function of the compute manager. 'local_gb' for m1.tiny is set to 0 and the function does the following to determine the allowed image size:
Related branches
- Dan Prince (community): Approve
- Ed Leafe (community): Approve
-
Diff: 42 lines (+10/-3)2 files modifiednova/compute/manager.py (+8/-1)
nova/virt/libvirt/connection.py (+2/-2)
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
status: | New → In Progress |
assignee: | nobody → Josh Kearney (jk0) |
Changed in nova: | |
milestone: | none → diablo-4 |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
Perhaps the adding a check to the _check_image_size function so that if 'local_gb' is zero we log it makes sense.
Also, Should m1.tiny have its local_gb set to 1 in the instance_types table?