Module - import_workload_src_cleanup

This module provides for the following ansible plugin:

  • import_workload_src_cleanup

Module Documentation

Remove any temporary snapshots or volumes associated with this workload migration.

Options

conversion_host:

Information about the source conversion host.

data:

Server data loaded from OS-Migrate workloads YAML.

ssh_key_path:

Path to an SSH private key authorized on the source cloud.

ssh_user:

SSH user for conversion host access.

transfer_uuid:

Transfer UUID created by export/transfer modules.

volume_map:

Mapping structure returned by previous workload transfer steps.

src_conversion_host_address:

Optional explicit source conversion host address.

state_file:

Optional state file path.

log_file:

Optional log file path.

timeout:

Timeout for long running operations, in seconds.

Authors

:

OpenStack tenant migration tools (@os-migrate)

Example Tasks

- name: Clean up source-side temporary migration resources
  os_migrate.os_migrate.import_workload_src_cleanup:
    auth: '{{ os_migrate_src_auth }}'
    auth_type: '{{ os_migrate_src_auth_type | default(omit) }}'
    region_name: '{{ os_migrate_src_region_name | default(omit) }}'
    validate_certs: '{{ os_migrate_src_validate_certs | default(omit) }}'
    ca_cert: '{{ os_migrate_src_ca_cert | default(omit) }}'
    client_cert: '{{ os_migrate_src_client_cert | default(omit) }}'
    client_key: '{{ os_migrate_src_client_key | default(omit) }}'
    data: '{{ item }}'
    conversion_host: '{{ os_src_conversion_host_info.openstack_conversion_host }}'
    ssh_key_path: '{{ os_migrate_conversion_keypair_private_path }}'
    ssh_user: '{{ os_migrate_conversion_host_ssh_user }}'
    transfer_uuid: '{{ exports.transfer_uuid }}'
    volume_map: '{{ exports.volume_map }}'
    state_file: '{{ os_migrate_data_dir }}/{{ item.params.name }}.state'
    log_file: '{{ os_migrate_data_dir }}/{{ item.params.name }}.log'