Unclear error when images directory wasn't upgraded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Ken Pepple |
Bug Description
When you haven't upgraded your images directory (storing images by hash instead of by the traditional ami-* name), you get the following unclear error:
011-03-15 14:20:55,301 AUDIT nova.api [T7XYOZ4KLXT09R
2011-03-15 14:20:55,301 DEBUG nova.api [-] action: RunInstances from (pid=13443) __call__ /home/ubuntu/
2011-03-15 14:20:55,301 DEBUG nova.api [-] arg: ImageId val: ami-tiny from (pid=13443) __call__ /home/ubuntu/
2011-03-15 14:20:55,301 DEBUG nova.api [-] arg: MaxCount val: 1 from (pid=13443) __call__ /home/ubuntu/
2011-03-15 14:20:55,301 DEBUG nova.api [-] arg: MinCount val: 1 from (pid=13443) __call__ /home/ubuntu/
2011-03-15 14:20:55,301 DEBUG nova.api [-] arg: InstanceType val: m1.small from (pid=13443) __call__ /home/ubuntu/
2011-03-15 14:20:55,307 ERROR nova.api [T7XYOZ4KLXT09R
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/home/
(nova.api): TRACE: result = api_request.
(nova.api): TRACE: File "/home/
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/home/
(nova.api): TRACE: image_id=
(nova.api): TRACE: File "/home/
(nova.api): TRACE: return self.image_
(nova.api): TRACE: File "/home/
(nova.api): TRACE: image = self.service.
(nova.api): TRACE: File "/home/
(nova.api): TRACE: images = self.detail(
(nova.api): TRACE: File "/home/
(nova.api): TRACE: for image_id in self._ids():
(nova.api): TRACE: File "/home/
(nova.api): TRACE: return [int(i, 16) for i in os.listdir(
(nova.api): TRACE: ValueError: invalid literal for int() with base 16: 'ari-tty'
(nova.api): TRACE:
Related branches
- Vish Ishaya (community): Approve
- Rick Harris (community): Approve
- Eric Day: Pending requested
-
Diff: 72 lines (+27/-2)2 files modifiednova/image/local.py (+15/-2)
nova/tests/api/openstack/test_images.py (+12/-0)
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
This isn't an error with nova/trunk, you haven't upgraded your images directory.
Somewhere around revno 775, we started storing images by hash instead of by the traditional ami-* name.
delete your images from /var/lib/ nova/images and re-publish them.