Fix missing content in /opt/platform/sysinv/19.09

Due to changes in https://review.opendev.org/#/c/692439 and
https://review.opendev.org/#/c/691714, sysinv/19.09 subfolder
of /opt/platform is no longer created, nor its content.
This breaks the initial assumptions that:
1. This folder exists => is ok to just create files there
2. The content of this folder is recreated on each unlock

To return #1 assumption we now create the folder in advance
and for #2 we back-up and restore its content.

Change-Id: I8dd686a66fcc62bbb05b72fda56e86c353d25fee
Closes-Bug: 1851424
Closes-Bug: 1852065
Closes-Bug: 1852127
Signed-off-by: Ovidiu Poncea <ovidiu.poncea@windriver.com>
This commit is contained in:
Ovidiu Poncea
2019-11-18 15:48:23 +02:00
parent 2f7062ffa9
commit dcdeea0254
5 changed files with 24 additions and 2 deletions

View File

@@ -56,6 +56,7 @@
set_fact:
keyring_permdir: "{{ platform_path }}/.keyring/{{ software_version }}"
config_permdir: "{{ platform_path }}/config/{{ software_version }}"
sysinv_permdir: "{{ platform_path }}/sysinv/{{ software_version }}"
puppet_permdir: "{{ platform_path }}/puppet/{{ software_version }}"
armada_permdir: "{{ platform_path }}/armada/{{ software_version }}"
helm_charts_permdir: "{{ platform_path }}/helm_charts"