config/controllerconfig/controllerconfig/controllerconfig/upgrades
Joshua Kraitberg d9e12f6c45 Fix: Retain sysinv data during migration
The migration code was deleting /opt/platform/<FROM_RELEASE>/sysinv,
before it was migrated to /opt/platform/<TO_RELEASE>/sysinv.
This caused the files inside like `sysinv.conf.default` to be lost
during simplex upgrade.

Originally, in legacy restore, `sysinv.conf.default` was
individually restored after migration so the deletion
had no impact.

`sysinv.conf.default` is required on non-SX systems.
This is used so that other hosts sysinv-agent can mount and
have an initial sysinv.conf suitable for RPC to the controller.

The loss of the file is not problematic on a SX system, but would
prevent a later SX-to-DX migration.

TEST PLAN
PASS: Optimized upgrade AIO-SX, stx6 to stx8
PASS: Optimized upgrade AIO-SX, stx7 to stx8

Closes-bug: 2042971
Signed-off-by: Joshua Kraitberg <joshua.kraitberg@windriver.com>
Change-Id: I7a22e050f74785b99ea6b7758cf23d3419add1de
2023-11-09 15:51:48 -05:00
..
__init__.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
controller.py Fix: Retain sysinv data during migration 2023-11-09 15:51:48 -05:00
management.py Remove support for helmv2 database migration 2023-09-19 23:54:49 +00:00
utils.py Add error information for subcloud upgrades 2023-11-01 13:26:54 -03:00