The apmec.db.mem.mem_db Module

The apmec.db.mem.mem_db Module

class apmec.db.mem.mem_db.MEA(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, apmec.db.models_v1.HasId, apmec.db.models_v1.HasTenant, apmec.db.models_v1.Audit

Represents meas that hosts services.

Here the term, ‘VM’, is intentionally avoided because it can be VM or other container.

attributes
created_at
deleted_at
description
error_reason
id
instance_id
mead
mead_id
mgmt_url
name
placement_attr
status
tenant_id
updated_at
vim
vim_id
class apmec.db.mem.mem_db.MEAAttribute(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, apmec.db.models_v1.HasId

Represents kwargs necessary for spinning up VM in (key, value) pair.

key value pair is adopted for being agnostic to actuall manager of VMs. The interpretation is up to actual driver of hosting mea.

id
key
mea_id
value
class apmec.db.mem.mem_db.MEAD(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, apmec.db.models_v1.HasId, apmec.db.models_v1.HasTenant, apmec.db.models_v1.Audit

Represents MEAD to create MEA.

attributes
created_at
deleted_at
description
id
mgmt_driver
name
service_types
template_source
tenant_id
updated_at
class apmec.db.mem.mem_db.MEADAttribute(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, apmec.db.models_v1.HasId

Represents attributes necessary for spinning up VM in (key, value) pair

key value pair is adopted for being agnostic to actuall manager of VMs. The interpretation is up to actual driver of hosting mea.

id
key
mead_id
value
class apmec.db.mem.mem_db.MEMPluginDb

Bases: apmec.extensions.mem.MEMPluginBase, apmec.db.db_base.CommonDbMixin

choose_mead(context, service_type, required_attributes=None)
create_mea(context, mea)
create_mead(context, mead)
delete_mea(context, mea_id, soft_delete=True)
delete_mead(context, mead_id, soft_delete=True)
get_mea(context, mea_id, fields=None)
get_mead(context, mead_id, fields=None)
get_meads(context, filters, fields=None)
get_meas(context, filters=None, fields=None)
set_mea_error_status_reason(context, mea_id, new_reason)
subnet_id_to_network_id(context, subnet_id)
update_mea(context, mea_id, mea)
update_mead(context, mead_id, mead)
class apmec.db.mem.mem_db.ServiceType(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, apmec.db.models_v1.HasId, apmec.db.models_v1.HasTenant

Represents service type which hosting mea provides.

Since a mea may provide many services, This is one-to-many relationship.

id
mead_id
service_type
tenant_id
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.