Feature #3797

Enrich image register meta record format

Added by Stavros Sachtouris about 10 years ago. Updated almost 10 years ago.

Status:Closed Start date:05/23/2013
Priority:High Due date:05/23/2013
Assignee:Stavros Sachtouris % Done:


Category:kamaki Spent time: 6.00 hours
Target version:v0.9 Estimated time:2.00 hours


Meta record format:

    "name": ...,
    "id": ...,
    "container-format": ...,
    "location": ...,
    "disk-format": ...,
    "is-public": ...,
    "status": ...,
    "deleted-at": "",
    "updated-at": ...,
    "created-at": ...,
    "owner": ...,
    "size": ...,
    "checksum": ..., 
    "properties": {
       "PROPERTY_KEY_1": "Property keys must be in capitals",
       "PROPERTY_KEY_2": "Property keys have no spaces or -, only _" 

Meta record format is the one used in the following cases:

  • dict that is returned from ImageClient.register
  • local meta file to load image metas from
  • remote meta file stored after a registration

(Also, the format already matches the dict returned by ImageClient.get_meta)

Related issues

related to ./kamaki - Feature #3769: Store metadata after an image registration Closed 05/20/2013 05/21/2013

Associated revisions

Revision 17b255c7
Added by Stavros Sachtouris about 10 years ago

Use _format_image_headers: image_register,get_meta

- Ensure uniform image meta output
- Easy to apply the correct meta format

Refs: #3797

Revision aa82dd5a
Added by Stavros Sachtouris about 10 years ago

Add metadata management to image register

- validate image metadata format
- read metadata from file
- merge file-loaded metadata with runtimes
- store metadata file on pithos, check existance, overwrite with f
raise helpful error messages when there fail

Refs: #3797


#1 Updated by Stavros Sachtouris about 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Apply the mechanism for image meta properties to all image metadata and rename accordingly:

--metafile=<local math> load metadata from metafile
--no-metafile-upload do not store metadata to pithos
-f, --force store metadata file even if it exists

Raise helpful error messages

#2 Updated by Stavros Sachtouris almost 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF