The nova.api.metadata.base Module

Instance Metadata information.

class InstanceMetadata(instance, address=None, content=None, extra_md=None, network_info=None, vd_driver=None, network_metadata=None)

Bases: object

Instance metadata.

get_ec2_item(path_tokens)
get_ec2_metadata(version)
get_mimetype()
get_openstack_item(path_tokens)
lookup(path)
metadata_for_config_drive()

Yields (path, value) tuples for metadata elements.

set_mimetype(mime_type)
exception InvalidMetadataPath

Bases: exceptions.Exception

exception InvalidMetadataVersion

Bases: exceptions.Exception

class RouteConfiguration(path_handler)

Bases: object

Routes metadata paths to request handlers.

handle_path(path_tokens)
class VendorDataDriver(*args, **kwargs)

Bases: object

The base VendorData Drivers should inherit from.

get()

Return a dictionary of primitives to be rendered in metadata

Returns:A dictionary or primitives.
ec2_md_print(data)
find_path_in_tree(data, path_tokens)
get_metadata_by_address(address)
get_metadata_by_instance_id(instance_id, address, ctxt=None)

Previous topic

The nova.api.manager Module

Next topic

The nova.api.metadata.handler Module

Project Source

This Page