Skip to content

Commit e9fc89b

Browse files
Merge pull request #1080 from fyanac/fix_for_ipv6_tob
Fix ipv6 for tobiko undercloud
2 parents 3d8ad22 + 1ffa243 commit e9fc89b

File tree

1 file changed

+8
-0
lines changed
  • tests/roles/development_environment/tasks

1 file changed

+8
-0
lines changed

tests/roles/development_environment/tasks/main.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@
118118
119119
- name: copy kube conf to undercloud
120120
ansible.builtin.shell: |
121+
{% if ipv6_enabled %}
122+
scp -i ${EDPM_PRIVATEKEY_PATH} -o StrictHostKeyChecking=no -r ~/.kube/ [${OS_CLOUD_IP}]:~
123+
{% else %}
121124
scp -i ${EDPM_PRIVATEKEY_PATH} -o StrictHostKeyChecking=no -r ~/.kube/ ${OS_CLOUD_IP}:~
125+
{% endif %}
122126
123127
- name: upload tobiko-playbook.yaml to the undercloud
124128
delegate_to: "{{ standalone_ip | default(edpm_node_ip) }}"
@@ -160,4 +164,8 @@
160164
161165
- name: copy keys from undercloud for tobiko
162166
ansible.builtin.shell: |
167+
{% if ipv6_enabled %}
168+
mkdir -p ~/ci-framework-data/tests/test_operator; scp -i ${EDPM_PRIVATEKEY_PATH} -o StrictHostKeyChecking=no -r [${OS_CLOUD_IP}]:~/.ssh/id_ecdsa* ~/ci-framework-data/tests/test_operator/
169+
{% else %}
163170
mkdir -p ~/ci-framework-data/tests/test_operator; scp -i ${EDPM_PRIVATEKEY_PATH} -o StrictHostKeyChecking=no -r ${OS_CLOUD_IP}:~/.ssh/id_ecdsa* ~/ci-framework-data/tests/test_operator/
171+
{% endif %}

0 commit comments

Comments
 (0)