StarlingX Distributed Cloud
Go to file
Andy Ning e8d916756d Set up /var/run/dcmanager as dcmanager's default temp files location
dcmanager 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 dcmanager 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:
https://github.com/kubernetes-client/python/issues/765

The commit fixes this issue by setting TMPDIR to /var/run/dcmanager
when sm starts dcmanager-manager.

Change-Id: Ib147c2ab26e303032e18da51a506e3768bc471e0
Closes-Bug: 1883599
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2020-06-17 10:40:23 -04:00
api-ref/source Merge "CLI command to deploy a subcloud" 2020-06-11 22:30:48 +00:00
distributedcloud Set up /var/run/dcmanager as dcmanager's default temp files location 2020-06-17 10:40:23 -04:00
doc Switch to newer openstackdocstheme and reno versions 2020-06-04 14:18:06 +02:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:18:06 +02:00
.gitignore [Doc] OpenStack API Reference Guide 2018-09-25 08:18:08 -07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:44 +00:00
.mailmap StarlingX open source release updates 2018-08-07 11:51:21 -04:00
.zuul.yaml Enable python3 unit tests as part of zuul 2020-05-13 14:02:14 -05:00
centos_build_layer.cfg Build layering, add layer build config file 2019-11-08 08:40:22 +08:00
centos_dev_docker_images.inc OpenStack-Keystone Proxy Containerization 2019-11-04 14:36:50 -05:00
centos_dev_wheels.inc OpenStack-Keystone Proxy Containerization 2019-11-04 14:36:50 -05:00
centos_iso_image.inc Keystone token and resource caching 2020-03-23 21:31:04 -04:00
centos_pkg_dirs Update files for relocated repo 2019-11-04 14:36:51 -05:00
centos_stable_docker_images.inc OpenStack-Keystone Proxy Containerization 2019-11-04 14:36:50 -05:00
centos_stable_wheels.inc Update files for relocated repo 2019-11-04 14:36:51 -05:00
CONTRIBUTING.rst StarlingX open source release updates 2018-08-07 11:51:21 -04:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-08-07 11:51:21 -04:00
HACKING.rst Update setup.cfg to align with StarlingX project 2019-01-07 16:34:24 +00:00
README_DC Update location of openrc in readme 2019-03-15 10:56:03 -05:00
requirements.txt Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
test-requirements.txt Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
tox.ini Update pylint for distributedcloud 2020-02-27 15:02:43 -06:00