openstack.compute.v2.server_migration

ServerMigration 类

ServerMigration 类继承自 Resource

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

基础资源

参数:
  • _synchronized (bool) – 这不打算直接使用。请参阅 new()existing()

  • connection (openstack.connection.Connection) – 对正在使用的 Connection 的引用。默认为 None,允许在单元测试中等情况下使用不带活动 Connection 的 Resource 对象。Resource 代码中对 self._connection 的使用应使用 None 检查进行保护。

resource_key = 'migration'

资源的单数形式的键。

resources_key = 'migrations'

资源的复数形式的键。

base_path = '/servers/%(server_id)s/migrations'

此资源的 URI 的基本部分。

allow_fetch = True

允许对此资源进行获取操作。

allow_list = True

允许对此资源进行列表操作。

allow_delete = True

允许对此资源进行删除操作。

server_id

来自资源 URI 的服务器 ID

created_at

创建资源的时间和日期。

dest_host

迁移的目标主机。

dest_compute

迁移的目标计算节点。

dest_node

迁移的目标节点。

disk_processed_bytes

迁移过程中已处理的磁盘空间量,单位为字节。

disk_remaining_bytes

仍需迁移的磁盘空间量,单位为字节。

disk_total_bytes

需要迁移的总磁盘空间量,单位为字节。

memory_processed_bytes

迁移过程中已处理的内存空间量,单位为字节。

memory_remaining_bytes

仍需迁移的内存空间量,单位为字节。

memory_total_bytes

需要迁移的总内存空间量,单位为字节。

project_id

发起服务器迁移的项目 ID(自 microversion 2.80 起)

server_uuid

来自响应体的服务器 UUID

source_compute

迁移的源计算节点。

source_node

迁移的源节点。

status

迁移的当前状态。

updated_at

资源上次更新的日期和时间。

user_id

发起服务器迁移的用户 ID(自 microversion 2.80 起)

uuid

迁移的 UUID(自 microversion 2.59 起)

force_complete(session)

强制进行中的实时迁移完成。