python-tripleoclient/tripleoclient
James Slagle 6a0adcbbf6 Unmount heat-all tmpfs dir when done
Adds a step to unmount the tmpfs dir used by the HeatNativeLauncher
(heat-all aio process) when the process is stopped. Previously, the
mount was kept and would hang around until the next reboot.

As part of this change, the following is also included:

- The tmpfs mount dir is also changed to be at the generated temporary
  directory within the heat launcher dir (heat_dir), instead of one level
  higher up. This provides a location to backup the files before
  unmounting.
- The default value for the heat_dir directory is also changed from
  /var/log/heat_launcher to ~/tripleo-deploy/<stack>/heat_launcher, so
  that the artifacts are saved in the generated tarball.
- heat-all is started as the deployment user ($SUDO_USER, e.g. stack)
  instead of heat. There is no reason to run heat-all as heat. This
  enables keeping the generated files within the home directory of the
  deployment user
- The heat_dir directory, owned by root, has it's mode changed from 700
  to 755. This is safe as the directory is now in the deployment user
  home directory.  This is necessary so that the deployment user can
  read the directory.
- A step to backup the heat-all files is added such that the files are
  not lost when the unmount is done, and they are saved as part of the
  deployment artifacts.

Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: I751fc605cb09ad9fcf169b3e2eab0532feb379a5
2021-07-15 07:55:51 -04:00
..
config Merge "Deprecate enable_mistral and enable_zaqar" 2021-06-29 22:51:45 +00:00
tests Unmount heat-all tmpfs dir when done 2021-07-15 07:55:51 -04:00
v1 Unmount heat-all tmpfs dir when done 2021-07-15 07:55:51 -04:00
v2 Make 'ansible_playbooks' pre-network config only 2021-06-16 15:18:09 +02:00
workflows Drop deprecated "macs" field in nodes_json 2021-06-18 15:46:01 +02:00
__init__.py Add ReNo support 2016-10-08 00:28:43 +00:00
command.py Use correct default key file and normalize the usage 2020-02-20 08:52:09 -06:00
constants.py Moving the 'export_data' dict into constants 2021-06-24 10:41:54 +02:00
exceptions.py Baremetal deploy - user playbook interface 2021-06-03 08:55:39 +02:00
export.py Moving the 'export_data' dict into constants 2021-06-24 10:41:54 +02:00
heat_launcher.py Unmount heat-all tmpfs dir when done 2021-07-15 07:55:51 -04:00
noauth_policy.json Add heat_launcher module to help launch heat-all 2017-02-08 15:49:24 -05:00
plugin.py Update client to create archive and use tripleo-common 2021-01-20 09:43:52 -06:00
utils.py Unmount heat-all tmpfs dir when done 2021-07-15 07:55:51 -04:00