The nova.objects.migration Module

class Migration(context=None, **kwargs)

Bases: nova.objects.base.NovaPersistentObject, nova.objects.base.NovaObject, nova.objects.base.NovaObjectDictCompat

VERSION = '1.4'
create(*args, **kwargs)
created_at
deleted
deleted_at
dest_compute
dest_host
dest_node
disk_processed
disk_remaining
disk_total
fields = {'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'migration_type': Enum(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False,valid_values=['migration', 'resize', 'live-migration', 'evacuation']), 'hidden': Boolean(default=False,nullable=False), 'dest_compute': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory_processed': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_total': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'source_compute': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory_total': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'source_node': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'dest_host': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'new_instance_type_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory_remaining': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'old_instance_type_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_processed': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'dest_node': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'instance_uuid': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_remaining': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
classmethod get_by_id(context, *args, **kwargs)
classmethod get_by_id_and_instance(context, *args, **kwargs)
classmethod get_by_instance_and_status(context, *args, **kwargs)
hidden
id
instance
instance_uuid
memory_processed
memory_remaining
memory_total
migration_type
new_instance_type_id
obj_load_attr(attrname)
obj_make_compatible(primitive, target_version)
old_instance_type_id
save(*args, **kwargs)
source_compute
source_node
status
updated_at
class MigrationList(*args, **kwargs)

Bases: nova.objects.base.ObjectListBase, nova.objects.base.NovaObject

VERSION = '1.3'
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_by_filters(context, *args, **kwargs)
classmethod get_in_progress_by_host_and_node(context, *args, **kwargs)
classmethod get_in_progress_by_instance(context, *args, **kwargs)
classmethod get_unconfirmed_by_dest_compute(context, *args, **kwargs)
objects
determine_migration_type(migration)

Previous topic

The nova.objects.migrate_data Module

Next topic

The nova.objects.migration_context Module

Project Source

This Page