EC2 API doesn't work well with arbitrary glance images

Bug #742113 reported by justinsb
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Vish Ishaya

Bug Description

euca-describe-images with Glance gives an error if images are uploaded directly and hence don't have the standard metadata.

The properties collection from glance is empty; that looks to be the root problem (vs what the EC2 code is expecting).

I running glance from a relatively recent trunk - r86

---

I uploaded an image using this command:

bin/glance --verbose add name="lucid-8gpart-x64" container_format="bare" disk_format="raw" is_public="true" < /home/justinsb/images/ubuntu/createimage/ubuntu_x64_8g.raw.gz

Added new image with ID: 8
Returned the following metadata for the new image:
               container_format => bare
                     created_at => 2011-03-22T06:03:21.139434
                        deleted => False
                     deleted_at => None
                    disk_format => raw
                             id => 8
                      is_public => True
                       location => file:///var/lib/glance/images/8
                           name => lucid-8gpart-x64
                     properties => {}
                           size => 292789118
                         status => active
                     updated_at => None
Completed in 5.8610 sec.

---
Extract from /images/details:

 {"status": "active", "name": "lucid-8gpart-x64", "deleted": false, "container_format": "bare", "created_at": "2011-03-22T06:03:21.139434", "disk_format": "raw", "updated_at": "2011-03-22T06:03:26.675561", "id": 8, "location": "file:///var/lib/glance/images/8", "is_public": true, "deleted_at": null, "properties": {}, "size": 292789118}

---
Extract from euca-describe-images:

IMAGE axi-00000008 (lucid-8gpart-x64) private

(name is correct, axi hack is triggered, public/private is broken)

Related branches

description: updated
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → In Progress
Changed in nova:
assignee: nobody → Vish Ishaya (vishvananda)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.