The apmec.extensions.mem Module

The apmec.extensions.mem Module

exception apmec.extensions.mem.CpuAllocationInvalidKeys(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'Invalid keys specified in MEAD - %(error_msg_details)s.Supported keys are: %(valid_keys)s'
exception apmec.extensions.mem.FilePathMissing(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u"'file' attribute is missing for tosca.artifacts.Deployment.Image.VM artifact type"
exception apmec.extensions.mem.HeatClientException(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'%(msg)s'
exception apmec.extensions.mem.HeatTranslatorFailed(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'heat-translator failed: - %(error_msg_details)s'
exception apmec.extensions.mem.HugePageSizeInvalidInput(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u"Value specified for mem_page_size is invalid:%(error_msg_details)s. The valid values are 'small', 'large','any' or an integer value in MB"
exception apmec.extensions.mem.IPAddrInvalidInput(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'IP Address input values should be in a list format'
exception apmec.extensions.mem.InfraDriverUnreachable(**kwargs)

Bases: apmec.common.exceptions.ServiceUnavailable

message = u'Could not retrieve MEA resource IDs and types. Please check %(service)s status.'
exception apmec.extensions.mem.InvalidInfraDriver(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'VIM type %(vim_name)s is not supported as an infra driver '
exception apmec.extensions.mem.InvalidParamsForSM(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'Please provide parameters for substitution mappings'
exception apmec.extensions.mem.InvalidServiceType(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'invalid service type %(service_type)s'
exception apmec.extensions.mem.InvalidSubstitutionMapping(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'Input for substitution mapping requirements are not valid for %(requirement)s. They must be in the form of list with two entries'
exception apmec.extensions.mem.MEACreateFailed(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'creating MEA based on %(mead_id)s failed'
exception apmec.extensions.mem.MEACreateWaitFailed(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'%(reason)s'
exception apmec.extensions.mem.MEADInUse(**kwargs)

Bases: apmec.common.exceptions.InUse

message = u'MEAD %(mead_id)s is still in use'
exception apmec.extensions.mem.MEADNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'MEAD %(mead_id)s could not be found'
exception apmec.extensions.mem.MEADeleteWaitFailed(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'%(reason)s'
exception apmec.extensions.mem.MEAInUse(**kwargs)

Bases: apmec.common.exceptions.InUse

message = u'MEA %(mea_id)s is still in use'
exception apmec.extensions.mem.MEAInactive(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'MEA %(mea_id)s is not in Active state %(message)s'
exception apmec.extensions.mem.MEANotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'MEA %(mea_id)s could not be found'
exception apmec.extensions.mem.MEAScaleWaitFailed(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'%(reason)s'
class apmec.extensions.mem.MEMPluginBase

Bases: apmec.services.service_base.MECPluginBase

create_mea(context, mea)
create_mea_scale(context, mea_id, scale)
create_mea_trigger(context, mea_id, trigger)
create_mead(context, mead)
delete_mea(context, mea_id)
delete_mead(context, mead_id)
get_mea(context, mea_id, fields=None)
get_mea_resources(context, mea_id, fields=None, filters=None)
get_mead(context, mead_id, fields=None)
get_meads(context, filters=None, fields=None)
get_meas(context, filters=None, fields=None)
get_plugin_description()

Return string description of the plugin.

get_plugin_name()

Return a symbolic name for the plugin.

Each service plugin should have a symbolic name. This name will be used, for instance, by service definitions in service types

get_plugin_type()

Return one of predefined service types.

See apmec/plugins/common/constants.py

update_mea(context, mea_id, mea)
class apmec.extensions.mem.Mem

Bases: apmec.api.extensions.ExtensionDescriptor

classmethod get_alias()

The alias for the extension.

e.g. ‘FOXNSOX’

classmethod get_description()

Friendly description for the extension.

e.g. ‘The Fox In Socks Extension’

get_extended_resources(version)

Retrieve extended resources or attributes for core resources.

Extended attributes are implemented by a core plugin similarly to the attributes defined in the core, and can appear in request and response messages. Their names are scoped with the extension’s prefix. The core API version is passed to this function, which must return a map[<resource_name>][<attribute_name>][<attribute_property>] specifying the extended resource attribute properties required by that API version.

Extension can add resources and their attr definitions too. The returned map can be integrated into RESOURCE_ATTRIBUTE_MAP.

classmethod get_name()

The name of the extension.

e.g. ‘Fox In Socks’

classmethod get_namespace()

The XML namespace for the extension.

e.g. ‘http://www.fox.in.socks/api/ext/pie/v1.0

classmethod get_plugin_interface()

Returns an abstract class which defines contract for the plugin.

The abstract class should inherit from extesnions.PluginInterface, Methods in this abstract class should be decorated as abstractmethod

classmethod get_resources()

List of extensions.ResourceExtension extension objects.

Resources define new nouns, and are accessible through URLs.

classmethod get_updated()

The timestamp when the extension was last updated.

e.g. ‘2011-01-22T13:25:27-06:00’

update_attributes_map(attributes)

Update attributes map for this extension.

This is default method for extending an extension’s attributes map. An extension can use this method and supplying its own resource attribute map in extension_attrs_map argument to extend all its attributes that needs to be extended.

If an extension does not implement update_attributes_map, the method does nothing and just return.

exception apmec.extensions.mem.MetadataNotMatched(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'Metadata for alarm policy is not matched'
exception apmec.extensions.mem.MultipleMGMTDriversSpecified(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'More than one MGMT Driver per mead is not supported'
exception apmec.extensions.mem.NumaNodesInvalidKeys(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'Invalid keys specified in MEAD - %(error_msg_details)s.Supported keys are: %(valid_keys)s'
exception apmec.extensions.mem.ParamYAMLNotWellFormed(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'Parameter YAML not well formed - %(error_msg_details)s'
exception apmec.extensions.mem.SMRequirementMissing(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'All the requirements for substitution_mappings are not provided. Missing requirement for %(requirement)s'
exception apmec.extensions.mem.ServiceTypeNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'service type %(service_type_id)s could not be found'
exception apmec.extensions.mem.ServiceTypesNotSpecified(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'service types are not specified'
exception apmec.extensions.mem.ToscaParserFailed(**kwargs)

Bases: apmec.common.exceptions.InvalidInput

message = u'tosca-parser failed: - %(error_msg_details)s'
exception apmec.extensions.mem.UserDataFormatNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'user_data and/or user_data_format not provided'
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.