OSAPI: extra 'checksum' property in image metadata

Bug #800843 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Brian Waldon

Bug Description

An extra metadata item is being added to image entities that does not exist in glance:

curl -v -H "X-Auth-Token: ${NOVA_TOKEN}" http://localhost:8774/v1.1/images/235/meta

{"metadata": {"checksum": null, "key1": "value1"}}

Glance shows the following for that same image. Note the absence of a 'checksum' property:

URI: http://0.0.0.0/images/235
Id: 235
Public: No
Name: Image1
Status: queued
Size: 0
Location: None
Disk format: vdi
Container format: ovf
Property 'key1': value1

Related branches

Brian Waldon (bcwaldon)
Changed in nova:
assignee: nobody → Brian Waldon (bcwaldon)
status: New → In Progress
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-2
Revision history for this message
Peter Stradinger (puter) wrote :

Do I understand this correctly that if we query glance directly we don't get the checksum then? I thought the pattern was moving towards querying the services separately?

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Peter: My original bug report may have been a bit misleading. Glance has an image attribute called 'checksum'. You can query glance directly and get that back (from the api) as X-Image-Meta-Checksum. Nova was doing some bad mapping of attributes that presenting checksum as a property (a.k.a user-defined metadata). This bug was just about changing that presentation logic in Nova.

Revision history for this message
Jay Pipes (jaypipes) wrote :

Peter, just as a follow up, all images being streamed from Glance have the ETag header set to the MD5 checksum of the image's data. It is always equivalent to the X-Image-Meta-Checksum header value.

-jay

Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-2 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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