During the platform upgrade process, we first install the newer version
of the StarlingX system on the standby controller and after that, we
swact and install the other controller. When this process happens, the
puppet plugins are not in place on the newly updated controller since
the stx-openstack app is installed only on the older version of the
system. This fix bypasses that behavior by checking for all plugins that
uses Openstack configuration data, if it is generating hieradata during
a upgrade process, it will copy those configuration from the older
version's hieradata folder.
TEST PLAN
PASS: Installation from scratch on a new SX server
PASS: Upgrade from previous version to current development version on SX
PASS: Upgrade from previous version to current development version on DX
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/829138 /opendev. org/starlingx/ config/ commit/ 9ad00e9d4c45b7b 493c97eb2e19096 88e517cfb2
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9ad00e9d4c45b7b 493c97eb2e19096 88e517cfb2
Author: Thiago Brito <email address hidden>
Date: Mon Feb 14 19:43:10 2022 -0300
Copy hieradata on openstack when upgrading
During the platform upgrade process, we first install the newer version
of the StarlingX system on the standby controller and after that, we
swact and install the other controller. When this process happens, the
puppet plugins are not in place on the newly updated controller since
the stx-openstack app is installed only on the older version of the
system. This fix bypasses that behavior by checking for all plugins that
uses Openstack configuration data, if it is generating hieradata during
a upgrade process, it will copy those configuration from the older
version's hieradata folder.
TEST PLAN
PASS: Installation from scratch on a new SX server
PASS: Upgrade from previous version to current development version on SX
PASS: Upgrade from previous version to current development version on DX
Closes-Bug: #1961114
Signed-off-by: Thiago Brito <email address hidden> f1430bfe292448c aeddba585e7
Change-Id: Id1cbf682013820