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 <uuid> deployment due a
file-system related error. Error: [Errno 13] Permission denied:
'/var/log/ironic'"

Change-Id: I25a03e35f29ad7a835dfd72447fa7d20c50fd85c
This commit is contained in:
Jonathan Rosser 2022-12-08 14:54:22 +00:00
parent 7fa685167c
commit 7521ced334
1 changed files with 1 additions and 0 deletions

View File

@ -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" }