Role - import_workloads

Role Documentation

The role import_workloads will validate the serialized data of the exported workloads, and it will read the exported metadata. Then it will start the actual workload migration, it will first check that both conversion hosts are reachable, then it will export the selected source guests by exposing its volumes, transfering them to the destination tenant, and creating a new guest booting from the recently imported volume.

An instance may carry a mix of local hypervisor disks (migrated with nbdkit direct, requiring the import_from_hypervisor role to have run first) and attached Cinder volumes (migrated through the conversion hosts). In that case a single import_workloads run transfers both: each local disk is copied with nbdcopy and each Cinder volume is copied with qemu-img convert via the source conversion host. Migrating the Cinder volumes still requires a reachable source conversion host even when use_nbdkit_direct is enabled.

For further information about the role import_workloads refer to the official docs.

Role Defaults

This section highlights all of the defaults and variables set within the “import_workloads” role.

os_migrate_conversion_keypair_private_path: '{{ os_migrate_data_dir }}/conversion/ssh.key'
os_migrate_timeout: 1800
os_migrate_workload_cleanup_on_failure: true
os_migrate_workload_boot_volume_prefix: os-migrate-
os_migrate_workload_stop_before_migration: false
os_migrate_workloads_data_copy: true
os_migrate_workloads_filter:
- regex: .*

# nbdcopy tuning for nbdkit-direct transfers. Leave null to use nbdcopy's own
# defaults (4 connections, 64 requests, 256K request size). Raising these can
# markedly speed up large, incompressible disks, but needs qemu-nbd to accept
# multiple connections (see os_migrate_nbdkit_shared_connections in the
# import_from_hypervisor role). Test per environment; if the network link is the
# ceiling, more connections will not help.
os_migrate_nbdcopy_connections:
os_migrate_nbdcopy_requests:
os_migrate_nbdcopy_request_size: