Additional common image properties

Registered by Brian Rosmaita

In order to make images more easily searchable in different openstack installations, it would be useful to add some common properties to Glance images that identify operating system characteristics .

Blueprint information

Status:
Complete
Approver:
Brian Waldon
Priority:
Medium
Drafter:
Brian Rosmaita
Direction:
Approved
Assignee:
Brian Rosmaita
Definition:
Approved
Series goal:
Accepted for grizzly
Implementation:
Implemented
Milestone target:
milestone icon 2013.1
Started by
Brian Rosmaita
Completed by
Thierry Carrez

Related branches

Sprints

Whiteboard

[gabrielhurley] Could I also suggest adding a property that indicates whether or not an image is "bootable" (for example, not a ramdisk or kernel image, etc.)?

@ gabrielhurley : is the current disk_format property insufficient for this? It's not exactly what you want, but I think you can determine "bootablity" from it? (See http://docs.openstack.org/developer/glance/formats.html )

[gabrielhurley] Glance's "filtering" mechanism in the API only allows for positive assertions. I can't say "give me all the images which *are not* ARI, AKI, etc." That means having a common flag that everyone can recognize as "this image *is* bootable" would be extremely valuable.

Gerrit topic: https://review.openstack.org/#q,topic:bp/glance-common-image-properties,n,z

Addressed by: https://review.openstack.org/21472
    Adding new common image properties

Addressed by: https://review.openstack.org/21547
    Adding new common image properties

Also, please look over the proposed admin docs for this:
   https://review.openstack.org/21550

[daniel berrange] This separation of "os_distro" and "os_version" may seem like a good idea, but it doesn't really work very nicely when you consider Windows. Although Windows releases do have versions, they are not the versions that users think of, and the version number is the same for products that most people consider different, so they don't provide a good unique identifier. ie Windows 2k8 and Window Vista are both considered version 6.0 by Microsoft.

The libosinfo library (http://libosinfo.org/) has gone to the trouble of putting together a database of operating systems, with a tonne of metadata about each one. It defines 2 unique identifiers for each OS, a URL based ID, and a plain string "short-id". eg id == http://microsoft.com/win/2k8 and short-id == win2k8 . (http://git.fedorahosted.org/cgit/libosinfo.git/tree/data/oses/windows.xml.in)

Rather than having openstack invent new vocabulary for this OS data, I'd prefer to see openstack simply declare that it uses the same data vocabulary as libosinfo.

[james scollard] I have another use case associated with this feature, but don't think it fits into this blueprint.

https://ask.openstack.org/en/question/30916/novafilterscheduler-glance-image-metadata/

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.