From 38cd57c203a8f5c03b60c3981554b64b21c5eb27 Mon Sep 17 00:00:00 2001 From: Marco Fargetta Date: Thu, 14 Dec 2023 13:37:53 +0100 Subject: [PATCH] Fix the update to 11.5.0 Check and create the folder for every subsystem update, beside the instance update. During the update certs and csr are removed from CS.cfg file and stored in `/certs` folder if they are not in the internaldb. The folder creation for the instance was done after update the subsystem generating an error and stopping the update. --- base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py b/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py index 91c74b7cf4e..a93d1863a5a 100644 --- a/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py +++ b/base/server/upgrade/11.5.0/04-RemoveCertCSRfromConfig.py @@ -19,13 +19,9 @@ def __init__(self): super().__init__() self.message = 'Removes certs data and CSR from CS.cfg' - def upgrade_instance(self, instance): - - instance.makedirs(instance.certs_dir, exist_ok=True) - def upgrade_subsystem(self, instance, subsystem): - self.backup(subsystem.cs_conf) + instance.makedirs(instance.certs_dir, exist_ok=True) logger.info('Removing certs data') certs = subsystem.find_system_certs()