Skip to content

Commit

Permalink
qa-dev: Dump tunnel IP before mesh test results
Browse files Browse the repository at this point in the history
This will make it easier to know which node the results correspond to.
The current output shows the node's public IP, which is difficult to
correlate when looking at the logs.

Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Sep 30, 2023
1 parent 52c1a95 commit c13e223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/qa-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
set -e
/bin/sh -c 'cat ./ops/ansible/aws/*-connectivity-results.txt > ./ops/ansible/aws/mesh-connectivity-results.txt'
cat ./ops/ansible/aws/mesh-connectivity-results.txt
if grep -iq 'Unreachable' ./ops/ansible/aws/*-connectivity-results.txt || grep -iq 'Failed' ./ops/ansible/aws/mesh-connectivity-results.txt; then
if grep -iq 'Unreachable' ./ops/ansible/aws/mesh-connectivity-results.txt || grep -iq 'Failed' ./ops/ansible/aws/mesh-connectivity-results.txt; then
echo "Connectivity results contain 'Unreachable or Failed' nodes, check the connectivity results and artifacts for details. Failing the job"
exit 1
else
Expand Down
2 changes: 2 additions & 0 deletions ops/ansible/aws/validate-connectivity/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
become: yes
shell: |
printf "====== Connectivity Results from Node: {{ inventory_hostname }} ======\n" > {{ inventory_hostname }}-connectivity-results.txt
printf "IPv4 tunnel IP: "
nexctl nexd get tunnelip
nexctl nexd peers ping
nexctl nexd peers ping >> {{ inventory_hostname }}-connectivity-results.txt 2>&1
nexctl nexd peers ping6 >> {{ inventory_hostname }}-connectivity-results.txt 2>&1
Expand Down

0 comments on commit c13e223

Please sign in to comment.