Linux serverNETWORK ADMINISTRATIONSredhat

OpenStack Metadata Definitions Concept Demo

The OpenStack metadata definitions API was added in the Juno release of OpenStack. Multiple areas of UI support has been added to Horizon during the Juno, Kilo, Liberty, and Mitaka releases. This video provides a quick demo of the concepts.

The service is built into Glance as the Metadata Definitions Catalog. It provides a common API for vendors, admins, services, and users to meaningfully define available key / value pair metadata that can be used on different types of resources (images, artifacts, volumes, flavors, aggregates, etc). A definition includes a property’s key, its description, its constraints, and the resource types to which it can be associated.

For example, a definition of a virtual CPU topology property for the number of cores will include the base key to use (for example, cpu_cores), a description, and value constraints like requiring it to be an integer. So, a user, potentially through Horizon, would be able to search this catalog to list the available properties they can add to a flavor or image. They will see the virtual CPU topology property in the list and know that it must be an integer.

The following are a few links for additional information:

http://docs.openstack.org/developer/glance/metadefs-concepts.html

Currently available upstream Metadata Definitions:

https://github.com/openstack/glance/tree/master/etc/metadefs

Deploying them (glance-manage db_load_metadefs)

http://docs.openstack.org/developer/glance/man/glancemanage.html

Using the API:

http://docs.openstack.org/developer/glance/glancemetadefcatalogapi.html

source

by Travis Tripp

openstack

Leave a Reply

Your email address will not be published. Required fields are marked *