commit 43e6a9f768a9a4d7c23abe02d7dfb45a31befc6d
Author: Andy Ning <email address hidden>
Date: Fri Sep 25 10:48:11 2020 -0400
Set up /var/run/nfv-vim as vim's default temp files location
nfv vim call the k8s python client to perform a number of
operations. The k8s python client creates temp files under /tmp and
continues use these tmp files for the life-cycle of the processes.
However systemd-tmpfiles-clean.service will run every day to clean up
files in /tmp dir that are older than 10 days. If the k8s client code
is not triggered for more than 10 days (thus its temp files are not
accessed for more than 10 days), these temp files will be removed as
part of the cleanup. Certain vim operations then starts to fail
with an error that the tmp file is no longer there.
Reviewed: https:/ /review. opendev. org/754417 /git.openstack. org/cgit/ starlingx/ nfv/commit/ ?id=43e6a9f768a 9a4d7c23abe02d7 dfb45a31befc6d
Committed: https:/
Submitter: Zuul
Branch: master
commit 43e6a9f768a9a4d 7c23abe02d7dfb4 5a31befc6d
Author: Andy Ning <email address hidden>
Date: Fri Sep 25 10:48:11 2020 -0400
Set up /var/run/nfv-vim as vim's default temp files location
nfv vim call the k8s python client to perform a number of
operations. The k8s python client creates temp files under /tmp and
continues use these tmp files for the life-cycle of the processes.
However systemd- tmpfiles- clean.service will run every day to clean up
files in /tmp dir that are older than 10 days. If the k8s client code
is not triggered for more than 10 days (thus its temp files are not
accessed for more than 10 days), these temp files will be removed as
part of the cleanup. Certain vim operations then starts to fail
with an error that the tmp file is no longer there.
This is a known issue of kubernetes python client: /github. com/kubernetes- client/ python/ issues/ 765
https:/
The commit fixes this issue by setting TMPDIR to /var/run/nfv-vim
when sm starts vim.
Change-Id: I4f0544055e9d10 ba2374e9fdb5133 d767c1fa2c3
Closes-Bug: 1883599
Signed-off-by: Andy Ning <email address hidden>