From: Your Name Date: Thu, 14 Nov 2024 16:17:16 +0000 (+0000) Subject: Adding same cluster key pairs to default profiles X-Git-Tag: v17.0.0~21 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F14730%2F5;p=osm%2FLCM.git Adding same cluster key pairs to default profiles Change-Id: I42884e763faac4f92c3cd1ac1758517bd0432bd0 Signed-off-by: rshri --- diff --git a/osm_lcm/k8s.py b/osm_lcm/k8s.py index bef5d586..17afe85c 100644 --- a/osm_lcm/k8s.py +++ b/osm_lcm/k8s.py @@ -413,6 +413,7 @@ class ClusterLcm(GitOpsLcm): "app_profiles": "k8sapp", "resource_profiles": "k8sresource", } + self.logger.info("the db_cluster is :{}".format(db_cluster)) for profile_type in profiles: profile_id = db_cluster[profile_type] self.logger.info("profile id is : {}".format(profile_id)) @@ -425,7 +426,7 @@ class ClusterLcm(GitOpsLcm): db_profile["resourceState"] = db_cluster["resourceState"] db_profile["operatingState"] = db_cluster["operatingState"] db_profile["age_pubkey"] = db_cluster["age_pubkey"] - db_profile["age_privkey"] = db_profile["age_privkey"] + db_profile["age_privkey"] = db_cluster["age_privkey"] db_profile = self.update_operation_history( db_profile, op_id, workflow_status, resource_status ) diff --git a/osm_lcm/lcm.py b/osm_lcm/lcm.py index fe937780..2e67db69 100644 --- a/osm_lcm/lcm.py +++ b/osm_lcm/lcm.py @@ -865,10 +865,12 @@ class Lcm: return elif command == "upgrade" or command == "scale" or command == "update": # db_vim = self.db.get_one("vim_accounts", {"_id": db_cluster["vim_account"]}) + """ db_vim = self.db.get_one( "vim_accounts", {"name": db_cluster["vim_account"]} ) db_content["vim_account"] = db_vim + """ task = asyncio.ensure_future( self.cluster.update(op_id, op_params, db_content) )