Skip to content

Commit

Permalink
dev: debugging os conversion host variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudguruab authored and cloudguruab committed Jul 31, 2023
1 parent 28c52c8 commit 0cc871e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 0 additions & 5 deletions os_migrate/roles/export_workloads/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ os_migrate_workloads_filter:
# In case of boot_disk_copy, the default differs based on whether
# the server was created as boot-from-volume or not.
os_migrate_workloads_boot_disk_copy: null

# true sets the default for the Server instance. If data_copy set
# as false then it'll speed up the run for transfer from src to dst.
# Boot from pre-existing volume, image or more.
os_migrate_workloads_data_copy: true
10 changes: 6 additions & 4 deletions os_migrate/roles/import_workloads/tasks/conv_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
ansible.builtin.fail:
msg: The source conversion host is not running!
when:
- item["_migration_params"]["data_copy"]|default(true) or os_src_conversion_host_info.openstack_conversion_host.status != "ACTIVE"
- os_src_conversion_host_info is defined
- os_src_conversion_host_info.openstack_conversion_host.status != "ACTIVE"
- item["_migration_params"]["data_copy"]|default(true)

- name: get destination conversion host address
os_migrate.os_migrate.os_conversion_host_info:
Expand All @@ -36,7 +38,9 @@
ansible.builtin.fail:
msg: The destination conversion host is not running!
when:
- item["_migration_params"]["data_copy"]|default(true) or os_dst_conversion_host_info.openstack_conversion_host.status != "ACTIVE"
- os_dst_conversion_host_info is defined
- os_dst_conversion_host_info.openstack_conversion_host.status != "ACTIVE"
- item["_migration_params"]["data_copy"]|default(true)

# Depending on the virtualization hypervisor,
# the conversion host machines can take too
Expand All @@ -61,5 +65,3 @@
timeout: 600
when:
- item["_migration_params"]["data_copy"]|default(true)
when:
- item["_migration_params"]["data_copy"]|default(true)

0 comments on commit 0cc871e

Please sign in to comment.