The nova.api.metadata.base Module

Instance Metadata information.

class InstanceMetadata(instance, address=None, content=None, extra_md=None, conductor_api=None)

Instance metadata.

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

Yields (path, value) tuples for metadata elements.

exception InvalidMetadataPath

Bases: exceptions.Exception

exception InvalidMetadataVersion

Bases: exceptions.Exception

ec2_md_print(data)
find_path_in_tree(data, path_tokens)
get_metadata_by_address(conductor_api, address)
get_metadata_by_instance_id(conductor_api, instance_id, address, ctxt=None)

Previous topic

The nova.api.manager Module

Next topic

The nova.api.metadata.handler Module

This Page