From 7521ced33437e08b8b0e4e0bc7a8f2a085056b22 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 8 Dec 2022 14:54:22 +0000 Subject: [PATCH] Create /var/log/ironic directory This directory is used by ironic to write logs collected from ironic-python-agent on nodes being deployed to the disk of the controller. Without the directory errors occur and it is not possible to read the log from the agent. "Failed to store the logs from the node deployment due a file-system related error. Error: [Errno 13] Permission denied: '/var/log/ironic'" Change-Id: I25a03e35f29ad7a835dfd72447fa7d20c50fd85c --- tasks/ironic_pre_install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/ironic_pre_install.yml b/tasks/ironic_pre_install.yml index 0cac885c..20763f2b 100644 --- a/tasks/ironic_pre_install.yml +++ b/tasks/ironic_pre_install.yml @@ -57,6 +57,7 @@ - path: "/etc/ironic-inspector/rootwrap.d" condition: inventory_hostname in groups['ironic-inspector'] - { path: "/etc/sudoers.d", mode: "0750", owner: "root", group: "root" } + - { path: "/var/log/ironic" } - { path: "{{ ironic_system_home_folder }}" } - { path: "{{ ironic_system_home_folder }}/.ssh", mode: "0700" } - { path: "{{ ironic_system_home_folder }}/images" }