From 6625014823087620187f621872daee1f7a07a579 Mon Sep 17 00:00:00 2001 From: Matt Anson Date: Mon, 15 Sep 2025 14:41:20 +0100 Subject: [PATCH 1/2] Bump kayobe-automation Bump kayobe-automation to include fix that runs kayobe commands from the directory specified in KAYOBE_CONFIG_PATH [1]. [1] https://github.com/stackhpc/kayobe-automation/pull/78 --- .automation | 2 +- ...kayobe-automation-change-directory-dddf4772b3ee81af.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/kayobe-automation-change-directory-dddf4772b3ee81af.yaml diff --git a/.automation b/.automation index 68a34ce4d..dc8baaf2c 160000 --- a/.automation +++ b/.automation @@ -1 +1 @@ -Subproject commit 68a34ce4d5dc72ca0097fa08d1018e3574ded0ba +Subproject commit dc8baaf2cbf45a37f50d47cc32fa43d3036dc6b5 diff --git a/releasenotes/notes/kayobe-automation-change-directory-dddf4772b3ee81af.yaml b/releasenotes/notes/kayobe-automation-change-directory-dddf4772b3ee81af.yaml new file mode 100644 index 000000000..35b65b5c6 --- /dev/null +++ b/releasenotes/notes/kayobe-automation-change-directory-dddf4772b3ee81af.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + `Bump kayobe-automation `__ + to include fix that runs kayobe commands from the directory + specified in ``KAYOBE_CONFIG_PATH``. From f85a9c531a55d380a63dc797c1766de6617ad183 Mon Sep 17 00:00:00 2001 From: Matt Anson Date: Thu, 18 Sep 2025 17:47:51 +0100 Subject: [PATCH 2/2] Make output directory for diagnostics Make diagnostics_path_local in the home directory of the stack user to ensure that outputs can be copied back to the host correctly. This approach mirrors the one taken by the stackhpc-cloud-tests custom playbook. --- etc/kayobe/ansible/diagnostics.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/kayobe/ansible/diagnostics.yml b/etc/kayobe/ansible/diagnostics.yml index edb5800b6..fa982a1c7 100644 --- a/etc/kayobe/ansible/diagnostics.yml +++ b/etc/kayobe/ansible/diagnostics.yml @@ -9,10 +9,17 @@ - name: Collect diagnostic information hosts: seed-hypervisor:seed:overcloud:infra-vms vars: - diagnostics_path_local: "{{ lookup('env', 'PWD') }}/diagnostics" + diagnostics_path_local: "{{ lookup('env', 'HOME') }}/diagnostics" tasks: - name: Run diagnostics block: + - name: Create a local directory to sync diagnostics + ansible.builtin.file: + path: "{{ diagnostics_path_local }}" + state: directory + delegate_to: localhost + run_once: true + - name: Create a temporary directory for diagnostics ansible.builtin.tempfile: state: directory