Fix get instance IP after heat test

There's an error in the way the IP of the instance that gets created by
the heat template is read. Since we're now redirecting the output to a
file, we need tee to let ansible still read from the standard output.

Change-Id: I796295879fe1d5693fcd349052f6d83611028a21
This commit is contained in:
Raoul Scarazzini 2018-11-02 17:58:16 +01:00
parent bdbc6a5b9b
commit 845cee0483
1 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,6 @@
shell: |
source {{ working_dir }}/overcloudrc
openstack stack show -c outputs -f json {{ stack_name }} | \
jq --raw-output '.outputs[] | select( .output_key == "server_public_ip") | .output_value' > \
{{ validate_ha_logs_dir }}/{{ ha_test_name }}_heat-instance-ip.log 2>&1
jq --raw-output '.outputs[] | select( .output_key == "server_public_ip") | .output_value' 2>&1 | \
tee {{ validate_ha_logs_dir }}/{{ ha_test_name }}_heat-instance-ip.log
register: "{{ stack_name }}_instance_ip"