From f997078c99515eb182b95e93161d134f78d119fd Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Fri, 7 Apr 2023 09:17:04 +0200 Subject: [PATCH] Collect disk usage info post CI jobs run Add extra-logs playbook to collect more logs in the post phase. Change-Id: I4f9144f45a8c38b098ed67b2fdacffd3a596ae0d --- playbooks/ironic-python-agent-build-image/extra-logs.yaml | 7 +++++++ zuul.d/ironic-python-agent-builder-jobs.yaml | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 playbooks/ironic-python-agent-build-image/extra-logs.yaml diff --git a/playbooks/ironic-python-agent-build-image/extra-logs.yaml b/playbooks/ironic-python-agent-build-image/extra-logs.yaml new file mode 100644 index 0000000..84af66e --- /dev/null +++ b/playbooks/ironic-python-agent-build-image/extra-logs.yaml @@ -0,0 +1,7 @@ +- hosts: all + + tasks: + + - name: Collect disk usage info + shell: "df > {{ zuul_output_dir }}/logs/df.txt" + become: yes diff --git a/zuul.d/ironic-python-agent-builder-jobs.yaml b/zuul.d/ironic-python-agent-builder-jobs.yaml index f833be2..bce5c1d 100644 --- a/zuul.d/ironic-python-agent-builder-jobs.yaml +++ b/zuul.d/ironic-python-agent-builder-jobs.yaml @@ -3,7 +3,9 @@ parent: publish-openstack-artifacts pre-run: playbooks/ironic-python-agent-build-image/pre.yaml run: playbooks/ironic-python-agent-build-image/run.yaml - post-run: playbooks/ironic-python-agent-build-image/post.yaml + post-run: + - playbooks/ironic-python-agent-build-image/post.yaml + - playbooks/ironic-python-agent-build-image/extra-logs.yaml timeout: 1800 required-projects: - openstack/requirements @@ -46,6 +48,7 @@ nodeset: ubuntu-focal pre-run: playbooks/ironic-python-agent-build-image/pre.yaml run: playbooks/ironic-python-agent-build-image/run.yaml + post-run: playbooks/ironic-python-agent-build-image/extra-logs.yaml timeout: 1800 required-projects: - openstack/requirements