commit 662b0acd91266d28bf3b0b7a4c68ba919182c56a
Author: Oliver Walsh <email address hidden>
Date: Tue Aug 18 14:31:18 2020 +0100
Ensure atomic inventory file rename runs on the same mountpoint
Linux rename system call is only supported on the same mountpoint [1].
/tmp is often a tmpfs mount, so instead generate the temp inventory file in
the same directory as the target inventory file.
Reviewed: https:/ /review. opendev. org/746842 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=662b0acd912 66d28bf3b0b7a4c 68ba919182c56a
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 662b0acd91266d2 8bf3b0b7a4c68ba 919182c56a
Author: Oliver Walsh <email address hidden>
Date: Tue Aug 18 14:31:18 2020 +0100
Ensure atomic inventory file rename runs on the same mountpoint
Linux rename system call is only supported on the same mountpoint [1].
/tmp is often a tmpfs mount, so instead generate the temp inventory file in
the same directory as the target inventory file.
[1] See EXDEV in https:/ /man7.org/ linux/man- pages/man2/ rename. 2.html
Change-Id: Id306243352f310 f9054506577aa9b bce3790a7e5 ad1ce4d37b914d7 ae8a43e15c)
Closes-bug: #1892008
(cherry picked from commit fbd575cbe88400b