openstack.compute.v2.server_migration

The ServerMigration Class

The ServerMigration class inherits from Resource.

class openstack.compute.v2.server_migration.ServerMigration(_synchronized=False, connection=None, **attrs)

The base resource

Parameters
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

server_id

The ID for the server.

created_at

The date and time when the resource was created.

dest_host

The target host of the migration.

dest_compute

The target compute of the migration.

dest_node

The target node of the migration.

disk_processed_bytes

The amount of disk, in bytes, that has been processed during the migration.

disk_remaining_bytes

The amount of disk, in bytes, that still needs to be migrated.

disk_total_bytes

The total amount of disk, in bytes, that needs to be migrated.

memory_processed_bytes

The amount of memory, in bytes, that has been processed during the migration.

memory_remaining_bytes

The amount of memory, in bytes, that still needs to be migrated.

memory_total_bytes

The total amount of memory, in bytes, that needs to be migrated.

project_id

The ID of the project that initiated the server migration (since microversion 2.80)

source_compute

The source compute of the migration.

source_node

The source node of the migration.

status

The current status of the migration.

updated_at

The date and time when the resource was last updated.

user_id

The ID of the user that initiated the server migration (since microversion 2.80)

uuid

The UUID of the migration (since microversion 2.59)

force_complete(session)

Force on-going live migration to complete.