File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ jobs:
179179 OS_APPLICATION_CREDENTIAL_SECRET : ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
180180
181181 - name : Terraform Apply
182+ id : tf_apply
182183 run : |
183184 for attempt in $(seq 5); do
184185 if terraform apply -auto-approve; then
@@ -355,6 +356,7 @@ jobs:
355356 if : inputs.upgrade
356357
357358 - name : Tempest tests
359+ id : tempest
358360 run : |
359361 mkdir -p tempest-artifacts
360362 docker run -t --rm \
@@ -380,13 +382,29 @@ jobs:
380382 env :
381383 KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
382384
385+ - name : Collect diagnostic information
386+ id : diagnostics
387+ run : |
388+ mkdir -p diagnostics
389+ sudo -E docker run -t --rm \
390+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
391+ -v $(pwd)/diagnostics:/stack/diagnostics \
392+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
393+ $KAYOBE_IMAGE \
394+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/diagnostics.yml'
395+ env :
396+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
397+ if : ${{ !cancelled() && steps.tf_apply.outcome == 'success' }}
398+
383399 - name : Upload test result artifacts
384400 uses : actions/upload-artifact@v4
385401 with :
386402 name : test-results-${{ inputs.os_distribution }}-${{ inputs.os_release }}-${{ inputs.neutron_plugin }}${{ inputs.upgrade && '-upgrade' || '' }}
387403 path : |
404+ diagnostics/
388405 tempest-artifacts/
389406 sot-results/
407+ if : ${{ !cancelled() && (steps.tempest.outcome == 'success' || steps.stackhpc-openstack-tests.outcome == 'success' || steps.diagnostics.outcome == 'success') }}
390408
391409 - name : Fail if any Tempest tests failed
392410 run : |
You can’t perform that action at this time.
0 commit comments