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.2'
create(*args, **kwargs)
created_at
deleted
deleted_at
dest_compute
dest_host
dest_node
fields = {'instance_uuid': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'old_instance_type_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'new_instance_type_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'hidden': Boolean(default=False,nullable=False), 'source_node': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'dest_compute': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'dest_host': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'source_compute': 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']), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'dest_node': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
classmethod get_by_id(context, *args, **kwargs)
classmethod get_by_instance_and_status(context, *args, **kwargs)
hidden
id
instance
instance_uuid
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.2'
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_unconfirmed_by_dest_compute(context, *args, **kwargs)
obj_relationships = {'objects': [('1.0', '1.1'), ('1.1', '1.1'), ('1.2', '1.2')]}
objects
determine_migration_type(migration)

Previous topic

The nova.objects.keypair Module

Next topic

The nova.objects.migration_context Module

Project Source

This Page