Skip to content

Commit e25d4d7

Browse files
committed
CI: Collect diagnostic information at end of aio jobs
1 parent 339824a commit e25d4d7

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,17 @@ jobs:
327327
run: |
328328
test $(wc -l < tempest-artifacts/failed-tests) -lt 1
329329
330+
- name: Collect diagnostic information
331+
run: |
332+
sudo -E docker run -t --rm \
333+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
334+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
335+
$KAYOBE_IMAGE \
336+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/diagnostics.yml
337+
env:
338+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
339+
if: always()
340+
330341
- name: Destroy
331342
run: terraform destroy -auto-approve
332343
working-directory: ${{ github.workspace }}/terraform/aio

etc/kayobe/ansible/diagnostics.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Collect diagnostic information
3+
hosts: seed-hypervisor:seed:overcloud:infra-vms
4+
tasks:
5+
- command: lsblk
6+
become: true
7+
- command: df -h
8+
become: true
9+
- command: vgs
10+
become: true
11+
- command: lvs
12+
become: true

0 commit comments

Comments
 (0)