diff options
| author | Jed Preist <jed@stackhpc.com> | 2026-06-15 15:14:24 +0100 |
|---|---|---|
| committer | Jed Preist <jed@stackhpc.com> | 2026-06-19 08:42:00 +0000 |
| commit | 5144ee7b977dbf32544778cf0431812279a35294 (patch) | |
| tree | c31341c2d974bec390520242c667a111eb86e314 | |
| parent | 11afc796b3a4a4ca2e83072c829fdd4ea9aaa505 (diff) | |
| download | kolla-5144ee7b977dbf32544778cf0431812279a35294.tar.gz kolla-5144ee7b977dbf32544778cf0431812279a35294.zip | |
[2025.2 and older] Create Ironic temp directory
Creates a temp directory at /var/lib/ironic/tmp inside the
Ironic container.
Change-Id: Ia35c87428841e57a04b42541021d6b7daa3cd43a
Signed-off-by: Jed Preist <jed@stackhpc.com>
| -rw-r--r-- | docker/ironic/ironic-base/extend_start.sh | 11 | ||||
| -rw-r--r-- | releasenotes/notes/fix-bug-2156758-4bbeb2ee873cba47.yaml | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/docker/ironic/ironic-base/extend_start.sh b/docker/ironic/ironic-base/extend_start.sh index dc6b05caa..d5d776f96 100644 --- a/docker/ironic/ironic-base/extend_start.sh +++ b/docker/ironic/ironic-base/extend_start.sh @@ -2,6 +2,7 @@ LOG_PATH=/var/log/kolla/ironic METRICS_PATH=/var/lib/ironic-metrics +TEMP_PATH=/var/lib/ironic/tmp if [[ ! -d "${LOG_PATH}" ]]; then mkdir -p "${LOG_PATH}" @@ -9,6 +10,10 @@ fi if [[ ! -d "${METRICS_PATH}" ]]; then sudo mkdir -p "${METRICS_PATH}" fi +if [[ ! -d "${TEMP_PATH}" ]]; then + sudo mkdir -p "${TEMP_PATH}" +fi + if [[ $(stat -c %a "${LOG_PATH}") != "755" ]]; then chmod 755 "${LOG_PATH}" fi @@ -18,5 +23,11 @@ fi if [[ $(stat -c %a "${METRICS_PATH}") != "2775" ]]; then sudo chmod 2775 "${METRICS_PATH}" fi +if [[ $(stat -c %U:%G "${TEMP_PATH}") != "ironic:ironic" ]]; then + sudo chown ironic:ironic "${TEMP_PATH}" +fi +if [[ $(stat -c %a "${TEMP_PATH}") != "700" ]]; then + sudo chmod 700 "${TEMP_PATH}" +fi . /usr/local/bin/kolla_ironic_extend_start diff --git a/releasenotes/notes/fix-bug-2156758-4bbeb2ee873cba47.yaml b/releasenotes/notes/fix-bug-2156758-4bbeb2ee873cba47.yaml new file mode 100644 index 000000000..a71d9c161 --- /dev/null +++ b/releasenotes/notes/fix-bug-2156758-4bbeb2ee873cba47.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes the Ironic temp directory causing invalid cross device links when + deploying baremetal images using the virtualmedia boot interface. |
