Skip to content

Commit b3f7c6c

Browse files
committed
Set Ironic tempdir
Set the Ironic tempdir to be within the Ironic Docker container volume. Closes-Bug: #2156758 Change-Id: Ib24a04657f297ebb323686aa1d80f9bf019f44f2 Signed-off-by: Jed Preist <jed@stackhpc.com> (cherry picked from commit ba5d421)
1 parent 42f4a33 commit b3f7c6c

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

ansible/roles/ironic/templates/ironic-conductor.json.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,12 @@
3636
"owner": "ironic:ironic",
3737
"recurse": true
3838
}{% endif %}
39+
],
40+
"directories": [
41+
{
42+
"path": "/var/lib/ironic/tmp",
43+
"owner": "ironic:ironic",
44+
"perm": "0700"
45+
}
3946
]
4047
}

ansible/roles/ironic/templates/ironic.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ auth_strategy = noauth
44
{% endif %}
55
debug = {{ ironic_logging_debug }}
66

7+
tempdir = /var/lib/ironic/tmp
8+
79
log_file = /var/log/kolla/ironic/{{ service_name }}.log
810

911
transport_url = {{ rpc_transport_url }}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes the Ironic temp directory causing invalid cross device links when
5+
deploying baremetal images using the virtualmedia boot interface.

0 commit comments

Comments
 (0)