Removed unused code in upgrade.
Remove upgrade code specific to StX5 -> StX6 upgrades. Test Plan: PASS: AIO-SX Fresh Install PASS: AIO-DX Fresh Install PASS: Standard Fresh Install PASS: AIO-SX Upgrade PASS: AIO-DX Upgrade PASS: Standard Upgrade Story: 2009754 Task: 45456 Co-Authored by: Lucas Soares Pellizzaro <lucas.soarespellizzaro@windriver.com> Signed-off-by: Luis Eduardo Angelini Marquitti <luis.eduardoangelinimarquitti@windriver.com> Change-Id: Ifa9afcdcde7251738f6598d2c33936202d0cd3b2
This commit is contained in:
parent
c84c140fec
commit
20b80803c9
@ -793,12 +793,6 @@ def migrate_hiera_data(from_release, to_release, role=None):
|
|||||||
with open(secure_static_file, 'r') as yaml_file:
|
with open(secure_static_file, 'r') as yaml_file:
|
||||||
secure_static_config = yaml.load(yaml_file)
|
secure_static_config = yaml.load(yaml_file)
|
||||||
|
|
||||||
# This code can be removed in the release that follows StX 6.0
|
|
||||||
sysinv_pass = utils.get_password_from_keyring('sysinv', 'services')
|
|
||||||
secure_static_config.update({
|
|
||||||
'sysinv::certalarm::local_keystone_password': sysinv_pass
|
|
||||||
})
|
|
||||||
|
|
||||||
with open(secure_static_file, 'w') as yaml_file:
|
with open(secure_static_file, 'w') as yaml_file:
|
||||||
yaml.dump(secure_static_config, yaml_file, default_flow_style=False)
|
yaml.dump(secure_static_config, yaml_file, default_flow_style=False)
|
||||||
|
|
||||||
|
@ -1677,36 +1677,6 @@ class ConductorManager(service.PeriodicService):
|
|||||||
"Skipping deleting ceph monitor."
|
"Skipping deleting ceph monitor."
|
||||||
% str(host.hostname))
|
% str(host.hostname))
|
||||||
|
|
||||||
def _split_etcd_security_config(self, context):
|
|
||||||
"""Update the manifests for separating etcd ca
|
|
||||||
|
|
||||||
Note: this can be removed in the release after STX6.0
|
|
||||||
returns True if runtime manifests were applied
|
|
||||||
"""
|
|
||||||
controllers = self.dbapi.ihost_get_by_personality(constants.CONTROLLER)
|
|
||||||
for host in controllers:
|
|
||||||
if not utils.is_host_active_controller(host):
|
|
||||||
# Just update etcd certs on the standby controller.
|
|
||||||
# Etcd certs were updated on the active controller with
|
|
||||||
# migration script 71-enable-separate-etcd-ca.sh
|
|
||||||
personalities = [constants.CONTROLLER]
|
|
||||||
host_uuids = [host.uuid]
|
|
||||||
config_uuid = self._config_update_hosts(
|
|
||||||
context, personalities, host_uuids)
|
|
||||||
config_dict = {
|
|
||||||
"personalities": personalities,
|
|
||||||
"host_uuids": host_uuids,
|
|
||||||
"classes": ['platform::etcd::upgrade::runtime'],
|
|
||||||
puppet_common.REPORT_STATUS_CFG:
|
|
||||||
puppet_common.REPORT_UPGRADE_ACTIONS
|
|
||||||
}
|
|
||||||
self._config_apply_runtime_manifest(context,
|
|
||||||
config_uuid=config_uuid,
|
|
||||||
config_dict=config_dict)
|
|
||||||
return True
|
|
||||||
|
|
||||||
return False
|
|
||||||
|
|
||||||
def kube_config_kubelet(self, context):
|
def kube_config_kubelet(self, context):
|
||||||
"""Update kubernetes nodes kubelet configuration ConfigMap.
|
"""Update kubernetes nodes kubelet configuration ConfigMap.
|
||||||
|
|
||||||
@ -12048,10 +12018,6 @@ class ConductorManager(service.PeriodicService):
|
|||||||
{'state': constants.UPGRADE_ACTIVATION_FAILED})
|
{'state': constants.UPGRADE_ACTIVATION_FAILED})
|
||||||
|
|
||||||
manifests_applied = False
|
manifests_applied = False
|
||||||
if from_version == tsc.SW_VERSION_21_05:
|
|
||||||
# Apply etcd split ca puppet manifest for standby controller.
|
|
||||||
manifests_applied = self._split_etcd_security_config(context)
|
|
||||||
|
|
||||||
if from_version in (tsc.SW_VERSION_21_12, tsc.SW_VERSION_22_06):
|
if from_version in (tsc.SW_VERSION_21_12, tsc.SW_VERSION_22_06):
|
||||||
manifests_applied |= self._update_kubeadm_feature_gates(context)
|
manifests_applied |= self._update_kubeadm_feature_gates(context)
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@ import six
|
|||||||
from six.moves import configparser
|
from six.moves import configparser
|
||||||
|
|
||||||
SW_VERSION = ""
|
SW_VERSION = ""
|
||||||
SW_VERSION_21_05 = "21.05"
|
|
||||||
SW_VERSION_21_12 = "21.12"
|
SW_VERSION_21_12 = "21.12"
|
||||||
SW_VERSION_22_06 = "22.06"
|
SW_VERSION_22_06 = "22.06"
|
||||||
SW_VERSION_22_12 = "22.12"
|
SW_VERSION_22_12 = "22.12"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user