Skip to content

Commit

Permalink
dev: testing sdk upgrade debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudguruab committed Oct 24, 2023
1 parent 748e288 commit 21933a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions os_migrate/roles/import_workloads/tasks/workload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
- prelim is defined and prelim.changed
- item["_migration_params"]["data_copy"]|default(true)

- name: debug source volumes
ansible.builtin.debug:
msg: "{{ item }}"

- name: expose source volumes
os_migrate.os_migrate.import_workload_export_volumes:
cloud: src
Expand All @@ -87,6 +91,10 @@
- prelim is defined and prelim.changed
- item["_migration_params"]["data_copy"]|default(true)

- name: print file contents
ansible.builtin.command: 'tail -n 300 {{ os_migrate_data_dir }}/workload_logs/osm_server.log'
changed_when: false

- name: transfer volumes to destination
os_migrate.os_migrate.import_workload_transfer_volumes:
cloud: dst
Expand Down
14 changes: 14 additions & 0 deletions tests/e2e/tasks/tenant/seed_workload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,17 @@
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) }}"

- name: Show osm_server
ansible.builtin.command:
cmd: openstack server show osm_server
environment:
OS_AUTH_TYPE: token
OS_AUTH_URL: "{{ os_migrate_src_auth.auth_url }}"
OS_TOKEN: "{{ auth_token }}"
OS_PROJECT_ID: "{{ os_migrate_src_auth.project_id|default('') }}"
OS_PROJECT_NAME: "{{ os_migrate_src_auth.project_name|default('') }}"
OS_PROJECT_DOMAIN_ID: "{{ os_migrate_src_auth.project_domain_id|default('') }}"
OS_PROJECT_DOMAIN_NAME: "{{ os_migrate_src_auth.project_domain_name|default('') }}"
register: _result
changed_when: "_result.rc == 0"

0 comments on commit 21933a4

Please sign in to comment.