Skip to content

Commit

Permalink
dev: debug networking creation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudguruab committed Jun 10, 2024
1 parent 716a988 commit 8091dad
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions os_migrate/roles/conversion_host/tasks/create_network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
client_cert: "{{ os_migrate_conversion_client_cert|default(omit) }}"
client_key: "{{ os_migrate_conversion_client_key|default(omit) }}"

- name: debug suffix net_name vs network_name
ansible.builtin.debug:
msg: "{{ os_migrate_conversion_net_name }}"

- name: create os_migrate conversion subnet
openstack.cloud.subnet:
name: "{{ os_migrate_conversion_subnet_name }}"
Expand All @@ -22,6 +26,23 @@
client_cert: "{{ os_migrate_conversion_client_cert|default(omit) }}"
client_key: "{{ os_migrate_conversion_client_key|default(omit) }}"

- name: Gather information about previously created networks
openstack.cloud.networks_info:
cloud: "{{ os_migrate_conversion_cloud }}"
validate_certs: "{{ os_migrate_conversion_validate_certs|default(omit) }}"
ca_cert: "{{ os_migrate_conversion_ca_cert|default(omit) }}"
client_cert: "{{ os_migrate_conversion_client_cert|default(omit) }}"
client_key: "{{ os_migrate_conversion_client_key|default(omit) }}"
register: result

- name: Show openstack networks
ansible.builtin.debug:
msg: "{{ result.networks }}"

- name: Debug "No Network found for public" error
ansible.builtin.debug:
msg: "{{ os_migrate_conversion_external_network_name }}"

- name: create os_migrate conversion router
openstack.cloud.router:
name: "{{ os_migrate_conversion_router_name }}"
Expand Down

0 comments on commit 8091dad

Please sign in to comment.