garciadeblas [Thu, 3 Apr 2025 11:43:57 +0000 (13:43 +0200)]
Call cloud_credentials.add only in VIM operations when VIM account has credentials
Change-Id: I1e3888b9aed2b34055547e34586a062e2ed07e32
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 1 Apr 2025 17:10:37 +0000 (19:10 +0200)]
Pin flake8 version while flake issues are being fixed
Change-Id: I1a5250946ff95eb74e7cf77935a51844573c74b6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jegan [Mon, 1 Jul 2024 16:47:53 +0000 (16:47 +0000)]
Bug 2361: Fix for VM is not getting deleted from openstack after Scale In operation
Change-Id: Id4323de23909a233e40c194716d341836ec30edb
Signed-off-by: jegan <jegan.s@tataelxsi.co.in>
jegan [Mon, 1 Apr 2024 10:54:53 +0000 (10:54 +0000)]
Bug 2368 fixed: Mac address is missing in Additional params section of Vnfrs Collection in Mongodb
Change-Id: I49270cf3497e790ed909e58ac0b300aafc251634
Signed-off-by: jegan <jegan.s@tataelxsi.co.in>
garciadeblas [Tue, 11 Mar 2025 14:44:25 +0000 (15:44 +0100)]
Fix age key encryption for default profiles and encryption of ksu secrets with profile age key
Change-Id: I232dbc377761454914e40b557ecf9ca3f12051dc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 11 Mar 2025 23:01:54 +0000 (00:01 +0100)]
Update pip dependencies
Change-Id: I3bd83730edd8c3df68bf1d3a04eb4a6156e0743f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 5 Mar 2025 16:08:40 +0000 (17:08 +0100)]
Remove age key generation since it is managed in NBI
Change-Id: I892a71ac7588ea1e1de33ebc6bb8edc5c24e6513
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 5 Mar 2025 16:08:22 +0000 (17:08 +0100)]
Clean comments in Jinja workflow to create KSU
Change-Id: I2b6c4e5924b0df0d7f905bff0d2662e8add37f17
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 5 Mar 2025 16:06:49 +0000 (17:06 +0100)]
Remove unnecessary logs in secret checks under odu_libs/common.py
Change-Id: Ie4df4d4ff661e563ad2c441a19333be60e78171e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 12 Feb 2025 15:45:40 +0000 (16:45 +0100)]
Inspect exception during cluster deletion
Change-Id: If301ed2c1199450a62554f8f4411e14c41707b8f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
yshah [Fri, 28 Feb 2025 09:01:51 +0000 (09:01 +0000)]
Check force delete option and delete from DB
Change-Id: I74fb2d7bf600b732900f6757862595e49b4ee023
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
yshah [Tue, 11 Feb 2025 12:37:04 +0000 (12:37 +0000)]
Delete KSU from DB while deleting default and non-default profiles
Change-Id: Ia50335512cb5a39f881cea4c2f49af8acf40662c
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
garciadeblas [Fri, 21 Feb 2025 09:15:49 +0000 (10:15 +0100)]
Clean-up of resources created in OKA workflows
Change-Id: I1a0ce2de88bd3e77036724a34c9423385c340b6d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 13 Feb 2025 23:44:58 +0000 (00:44 +0100)]
Set default namespace for KSU kustomizations to flux-system
Change-Id: I6643b9271f0e389ced44940eeabdf3d25acd3af0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 6 Feb 2025 12:34:37 +0000 (13:34 +0100)]
Fix kubectl class init to use independent kubeconfig files
Change-Id: I9c477f930a8a3a7af661d2af84d1f15517bc9540
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sat, 8 Feb 2025 10:30:39 +0000 (11:30 +0100)]
Fix typing issues detected by pylance
Change-Id: Id5dbc01e34e83abccb7dbbaba8edc6f7ec658ddd
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sat, 8 Feb 2025 09:42:08 +0000 (10:42 +0100)]
Increase timeout for cluster scale operation and use string comparison
Change-Id: I512177a4ae7be04bd52677a89861b4558478b76d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 5 Feb 2025 15:36:17 +0000 (16:36 +0100)]
Log operation id with every iteration in readiness_loop
Change-Id: I2117c207d7ff732af19810ee8ffdeeef5bead1c6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 5 Feb 2025 08:32:52 +0000 (09:32 +0100)]
Fix deregistration workflow to clean secret after deletion workflow
Change-Id: I513d8d2748d332c32def3d4501858cdb8395bbaa
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
shrinithi [Fri, 10 Jan 2025 10:58:12 +0000 (10:58 +0000)]
Removing cluster deregister workaround
Change-Id: Ibcf79b9ae29353721f9118d2f6871e84833c1b1e
Signed-off-by: shrinithi <shrinithi.r@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 3 Feb 2025 15:12:43 +0000 (16:12 +0100)]
Fix check_worfklow_status to add additional condition regarding status.phase
Change-Id: I539ca5506cd44dad791844c1f5611ac530a5fbbf
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 4 Feb 2025 15:08:51 +0000 (16:08 +0100)]
Improve logging in cluster operations in case of issues in ODU workflow
Change-Id: I09fc87cf33889fde4b4a94b8f530291888218813
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 3 Feb 2025 07:44:19 +0000 (08:44 +0100)]
Improve logs in readiness_loop for each iteration
Change-Id: If1b78eb4619cebf2b85cad6f4fc4b2efde66633c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 27 Jan 2025 17:31:06 +0000 (18:31 +0100)]
Fix checks for KSU update operations
Change-Id: I4dd187183b6c5c13cfae9eab7069456a9c0733b1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 27 Jan 2025 15:53:45 +0000 (16:53 +0100)]
Check kubernetes resources using generic condition with jsonpath filter
Change-Id: I1922a835e98db723829c0c9f8438fb5617496707
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 22 Jan 2025 15:02:18 +0000 (16:02 +0100)]
Fix checks for KSU create and delete operations and for cluster delete operations
Change-Id: I9fc2a68d636100295409b7d3ad875e54ba368d64
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 27 Jan 2025 10:16:27 +0000 (11:16 +0100)]
Add LCM configuration options for workflow debug and dry_run
Change-Id: Ib4bd1cb66c8e649484455298796221925f1f80d7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 24 Jan 2025 13:24:41 +0000 (14:24 +0100)]
Fix oka_name to use git_name in lowercase for KSU operations
Change-Id: I31a045db6148774409dba36dc370d735a95d9009
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 21 Jan 2025 17:48:58 +0000 (18:48 +0100)]
Update common_check_list to add optional messages in case of failed check
Change-Id: Iaf17461acaf10ce333db038cb840c14607134af8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 21 Jan 2025 10:49:38 +0000 (11:49 +0100)]
Store cluster credentials in DB once the cluster is created
Change-Id: I06fed54bb89de29c3d7be2d47e65a70aa929ca0e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 17 Jan 2025 00:29:37 +0000 (01:29 +0100)]
Support KSUs based on kubernetes manifests and env var substitution
Change-Id: I03be2333fee7e4d0973130db504d8f3687763c51
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 17 Jan 2025 00:06:05 +0000 (01:06 +0100)]
Fix sw_catalog_path in KsuLcm operations for KSU based on OKA
Change-Id: If413bfc9efb3cee56bed3fae39f3c7ae9c5ab054
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 17 Jan 2025 11:49:19 +0000 (12:49 +0100)]
Rename functions in k8s.py:GitOpsLcm to improve readability
Change-Id: I517565c8f27e6da3bfcfb0086d1ba95068408d97
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 18 Dec 2024 11:54:00 +0000 (12:54 +0100)]
Refactor GitOpsLcm.decrypting_key to make it generic for any content, not only for clusters
Change-Id: I79946f00706b9c93cb3a48254c1cbc74f27088f8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 20 Dec 2024 13:37:22 +0000 (14:37 +0100)]
Fix post-renderer-scripts paths after copying N2VC code
Change-Id: Ied00e14fdb5830a312a79c837e79686d4c38dc3e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 20 Dec 2024 10:39:13 +0000 (11:39 +0100)]
Add update_state_operation_history function to update states with arbitrary text in an operation
Change-Id: I47b87d4a02163ca0fb5c6b979d7766b97fb1ce4e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 20 Dec 2024 09:37:12 +0000 (10:37 +0100)]
Fix GitOpsLcm.update_operation_history when workflow and resource status is None
Change-Id: I62830c5164c9e1838f36bc6c227036ec838cb736
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 20 Dec 2024 09:35:13 +0000 (10:35 +0100)]
Add workaround to avoid infinite loop in cluster deregistration
Change-Id: Ia921b23433d1ba0450e96aaac9e4b4d1370977c1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
yshah [Thu, 19 Dec 2024 11:06:24 +0000 (11:06 +0000)]
Update sw_catalog_path for KSU create and update to be relevant to profile_type
Change-Id: I4f61c03d9c768d8ad8dd6d33c44608aa33823ca4
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
garciadeblas [Mon, 16 Dec 2024 15:32:50 +0000 (16:32 +0100)]
Pin async-timeout to 4.0.3 and update pip dependencies
Change-Id: Ic92a4df87af828c507b9afeddc42c5a828c9a4cc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sun, 15 Dec 2024 10:07:01 +0000 (11:07 +0100)]
Update pip dependencies
Change-Id: I6dbcd39128dfa185f491d38c759cf85372afa7b5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 13 Dec 2024 10:09:04 +0000 (11:09 +0100)]
Remove key from dummy_clean_items arguments
Change-Id: I854868dbdcb0de552b6a7b161a57a5c638648285
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
almagia [Fri, 13 Dec 2024 08:45:45 +0000 (09:45 +0100)]
Revert "Revert "Move N2VC code from N2VC repo to LCM""
This reverts commit
b90dc26711d692b2e76f969e8b79f721caa498b1.
Requested by TSC on 13.12.2024
Change-Id: Ifa4ba6c395bfebff562642c18dcb6661ac748896
garciadeblas [Thu, 12 Dec 2024 15:31:04 +0000 (16:31 +0100)]
Revert "Move N2VC code from N2VC repo to LCM"
This reverts commit
5c465fab4e2239fcbf9c0e3f712e5de5e91c0b47.
Change-Id: Ifd746508779c611c07308286e1ce27ea5666c6ec
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 12 Dec 2024 13:38:13 +0000 (14:38 +0100)]
Move N2VC code from N2VC repo to LCM
Change-Id: I2173a2d0ce359081bc2995dc6ce20ea99a82eb15
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
kayal2001 [Thu, 28 Nov 2024 06:01:56 +0000 (11:31 +0530)]
Feature 11046: Security Group Name as Ns Config Template - LCM
Change-Id: I42ecdb82e747d1753182df083dbaec9eb94f7228
Signed-off-by: kayal2001 <kayalvizhi.v@tataelxsi.co.in>
kayal2001 [Thu, 28 Nov 2024 05:21:52 +0000 (10:51 +0530)]
Feature 11047: Vim Flavor Name as Ns Config Template - LCM
Change-Id: I9333d3c985e7ea5afaa26d529b426a63b686f817
Signed-off-by: kayal2001 <kayalvizhi.v@tataelxsi.co.in>
Pedro Pereira [Fri, 23 Aug 2024 09:23:02 +0000 (10:23 +0100)]
Feature 10983: changes to migrate() function so that it can handle both VNF and KNF migration
Change-Id: Ic1cbc0db3492c15fe7bfb3c82cbdd47195a814d6
Signed-off-by: Pedro Pereira <pedrocjdpereira@av.it.pt>
jegan [Fri, 6 Dec 2024 07:19:34 +0000 (07:19 +0000)]
Added a fix for performing Day1 and Day2 in a KDU using Helm based Execution Environments
Change-Id: I5f38f35e6144abdf048d85b776687f43ebcbc3e7
Signed-off-by: jegan <jegan.s@tataelxsi.co.in>
garciadeblas [Thu, 12 Dec 2024 10:07:08 +0000 (11:07 +0100)]
Rewrite update_operation_history to simplify and add flag to update endDate
Change-Id: Idae96633a03648a23cc7d3c693089a90920ea1eb
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 10 Dec 2024 12:42:47 +0000 (13:42 +0100)]
Update deregister operation to launch two workflows: deregister, delete
Change-Id: I8f830f880c33eaa66a7627c4f4b498e63bb06805
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 9 Dec 2024 12:31:06 +0000 (13:31 +0100)]
Manage OKA profile_type in OKA operations and KSUs based on OKA
Change-Id: I9cc7eae62cdd40e1bf9d532b2a2915b98e5ba425
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
yshah [Fri, 29 Nov 2024 07:33:32 +0000 (07:33 +0000)]
Refactoring LCM code for vim_account, ksu and oka
Change-Id: I48215a8dc7933d9cc710acb01ed6706bacfbd5a9
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
rshri [Mon, 2 Dec 2024 03:42:35 +0000 (03:42 +0000)]
Cluster Integration and Refactoring the LCM code
Change-Id: I5c3a2acdb4dc3cc264293abd76a78dca3f77f323
Signed-off-by: rshri <shrinithi.r@tataelxsi.co.in>
Your Name [Thu, 14 Nov 2024 16:17:16 +0000 (16:17 +0000)]
Adding same cluster key pairs to default profiles
Change-Id: I42884e763faac4f92c3cd1ac1758517bd0432bd0
Signed-off-by: rshri <shrinithi.r@tataelxsi.co.in>
yshah [Fri, 22 Nov 2024 12:08:57 +0000 (12:08 +0000)]
Update op_id in update_operation_history and check_kustomization_timeout in cluster creation
Change-Id: I75294abc040a8ee0ec4611c1969832399d2ac0d2
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
yshah [Mon, 18 Nov 2024 07:41:35 +0000 (07:41 +0000)]
Adding new cluster update function
Change-Id: I5733e7daf6189339836485f3d9d841f2647cad88
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
shahithya [Tue, 12 Nov 2024 11:01:05 +0000 (11:01 +0000)]
Updating current_operation after completing operation
Change-Id: I23ce7af245eac6dbbbbf87d919f6c28daf5d39ab
Signed-off-by: shahithya <shahithya.y@tataelxsi.co.in>
garciadeblas [Wed, 20 Nov 2024 11:42:49 +0000 (12:42 +0100)]
Add cluster, KSU, profile and OKA operation initialization logic previously under NBI
Change-Id: I8517463f9776bc483bec400a88408ebf193e935d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 13 Nov 2024 15:00:10 +0000 (16:00 +0100)]
Check of kustomizations and managed resources for cluster registration and cluster update
Change-Id: Id137bd9161ceb4c4286d2b22a563f8083f930e2e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 18 Nov 2024 16:10:00 +0000 (17:10 +0100)]
Update cluster create and update Jinja workflows to use rg_name and preemptible_nodes
Change-Id: I6a22e7163b95c20921c57217a1e6156bfc70951d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 18 Nov 2024 09:33:12 +0000 (10:33 +0100)]
Deregister cluster when delete cluster is called for imported clusters
Change-Id: I1387104d0e91bf997137d16d00d69f43623d5edf
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 18 Nov 2024 09:24:26 +0000 (10:24 +0100)]
Minor change in yaml indentation for kubeconfig in imported clusters
Change-Id: I01e9e62b7d155f71b57659f7280d6d2942e53492
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 12 Nov 2024 10:17:12 +0000 (11:17 +0100)]
Refactor cluster-deregister workflow to mimic cluster-create and catch exceptions in secret creation
Change-Id: I83ab2ebf032df665aa0935dbab36e7234188c984
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 13 Nov 2024 11:36:13 +0000 (12:36 +0100)]
Shorten workflow name for upgrade cluster operation
Change-Id: I371c2fd0d0b6faf94d75a68dac882732b5e355fd
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
rshri [Tue, 12 Nov 2024 18:12:38 +0000 (18:12 +0000)]
age_privkey and age_pubkey encrypted in the DB
Change-Id: Ifd02b566002c277884d2dd9c2cc8640d26f20b11
Signed-off-by: rshri <shrinithi.r@tataelxsi.co.in>
garciadeblas [Fri, 8 Nov 2024 13:22:49 +0000 (14:22 +0100)]
Reduce log verbosity in readiness_loop function
Change-Id: Ib53d726f9910e5afed29f0d97656eeed367b9fb9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 8 Nov 2024 09:41:38 +0000 (10:41 +0100)]
Update progress in DB for resources checked in cluster creation
Change-Id: Ia9731b7b65013164137a9a8eca58341491f2c3f3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 8 Nov 2024 00:11:46 +0000 (01:11 +0100)]
Manage situations where ODU workflows fail before it is launched (empty workflow_name)
Change-Id: I63a2113eee3626b6bc018519ca324b95ada1dc73
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 7 Nov 2024 11:41:54 +0000 (12:41 +0100)]
Refactor check resource functions from odu_workflows to k8s
Change-Id: Ie5c13ad84dfeab47476b92e4ce64f772dd7af7ca
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 6 Nov 2024 16:20:42 +0000 (17:20 +0100)]
Remove unnecessary params in workflow for cluster registration
Change-Id: I5d560efc69ee2d923eff59fa1abf0c46a41db8ad
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 12:04:36 +0000 (14:04 +0200)]
Update log level in all ODU methods
Change-Id: I1c0e22baf62ef513a89b1ee6895d42cbea358f51
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 6 Nov 2024 11:56:33 +0000 (12:56 +0100)]
Enable bootstrap flag in cluster creation
Change-Id: Ia0a6bbe84104384adaea27adc96cb4995413956f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
shahithya [Thu, 7 Nov 2024 09:39:07 +0000 (09:39 +0000)]
Updating result and operationState in operationHistory
Change-Id: I38c3ec750c3cfe2a99e0c7ca6f180b9518885ac6
Signed-off-by: shahithya <shahithya.y@tataelxsi.co.in>
yshah [Thu, 17 Oct 2024 06:11:12 +0000 (06:11 +0000)]
Adding operationHistory for get_creds
Change-Id: Ibd8a19ec34e4cbbcf0cd3912ae5cba7b3141fbbc
Signed-off-by: shahithya <shahithya.y@tataelxsi.co.in>
garciadeblas [Wed, 6 Nov 2024 09:45:22 +0000 (10:45 +0100)]
Fix cluster update workflow to read properly params and use unique workflow_name
Change-Id: I848f29db66fc4a5795cda80fa6c56ac8d0209807
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 24 Oct 2024 10:52:11 +0000 (12:52 +0200)]
Update list of checks for AWS and GCP cluster creation
Change-Id: I7ae53a6098b10cea1deeb93979dfee165fbb2d84
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 11:59:45 +0000 (13:59 +0200)]
Reduce log level to debug in update_operation_history
Change-Id: I835e7d0a0171fef78cea44b4c4e6d88fcc5180a1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 10:54:22 +0000 (12:54 +0200)]
Refactor cluster checks to use common_check_list and readiness_loop
Change-Id: I3a1b28b7139c863805b5d66a461dc4a3a6baded8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 18 Oct 2024 09:36:15 +0000 (11:36 +0200)]
Check of kustomizations and managed resources for cluster creation
Change-Id: I06776018a787bb704fec688bbf3a9be238f0a8a1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 10:47:05 +0000 (12:47 +0200)]
Log iteration count in readiness_loop
Change-Id: Ia39598d7a889fbfc07ad27f6c1f50b1140aab651
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 10:39:32 +0000 (12:39 +0200)]
Reduce logging level during cluster delete in k8s.py
Change-Id: Iddac985f3357a1d694775deaf158bf2c8287a0f0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 09:56:37 +0000 (11:56 +0200)]
Refactor check_workflow_status to use readiness_loop
Change-Id: Iffa340aa6dcff27870b2a213e06878c02b9392ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 22 Oct 2024 09:35:17 +0000 (11:35 +0200)]
Update common workflows functions, add readiness loop
The function check_workflow_status was updated to use retries rather
than time. In addition, a new generic function was created to evaluate
the readiness of Kubernetes objects in a loop.
Change-Id: I7e7268ecb0809ebe8895720fbfbd1c39138fd87f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 17 Oct 2024 13:30:30 +0000 (15:30 +0200)]
Clean-up of resources created in ODU workflows for KSU
Change-Id: Iff76df1feb6b60ffa0e6f90381ca37dbda0c715b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 16 Oct 2024 09:43:36 +0000 (11:43 +0200)]
Fix parsing of OKA params in KSU creation and update workflows
Change-Id: If12563f80f23df6305249a09df27fa1e8cd23b04
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 15 Oct 2024 11:14:39 +0000 (13:14 +0200)]
Fix return values in clean_items_cluster_register to progress on registration workflow
Change-Id: Ibf6e5c5a2fab91abb3d38f1e19d02fdba43efa90
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 1 Oct 2024 15:45:56 +0000 (17:45 +0200)]
Decrypt fields from DB for specific vim and cluster mgmt operations
Change-Id: I76853740ecd53a8d36c6ae0e30e97ae4a9a524e0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 25 Sep 2024 10:15:40 +0000 (12:15 +0200)]
Fix values parsing in KSU workflows
Change-Id: I074f7e9e4e37d664f70aa3771316756314df95a7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 24 Sep 2024 12:48:12 +0000 (14:48 +0200)]
Fix copy of OKA package to PVC for OKA creation
Change-Id: Ibf02828d969fe51749248a090dfbaab47a0d30e5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 24 Sep 2024 10:38:04 +0000 (12:38 +0200)]
Update workflow name for cluster update operation
Change-Id: I6ab626286f95584aa7e33d1d9a36a9f1507c8e3c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 23 Sep 2024 10:40:13 +0000 (12:40 +0200)]
Update VIM operational state after successful ODU workflow
Change-Id: If29bf096c2a82b937f38d20c749a1f439d5faa5b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 23 Sep 2024 08:12:22 +0000 (10:12 +0200)]
Update verbosity in logs from kafka_read_callback
Change-Id: I5258383dfbeb7f3efca5dbffadc10792a9aa3b2e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 17 Sep 2024 11:25:06 +0000 (13:25 +0200)]
Modify cluster (de)registration workflows to use new Jinja workflows
Change-Id: I1ab2f7b4a356d2cdd0939fa037743127cc56d33b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 17 Sep 2024 11:25:47 +0000 (13:25 +0200)]
Remove unused Jinja Workflow for AKS cluster creation
Change-Id: I409b24a6009fda806c6a3e8ab2896d599348b837
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 16 Sep 2024 10:53:07 +0000 (12:53 +0200)]
Clean-up of resources created in ODU workflows
Change-Id: Ib2051d5844841d6469a4dc3e854ff2ef88a36a87
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 17 Sep 2024 09:38:51 +0000 (11:38 +0200)]
Decrease verbosity in LCM logs associated to kafka_read
Change-Id: I8f4124adfd8aaf9be936b00234dfb2a89b517ead
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 16 Sep 2024 07:37:20 +0000 (09:37 +0200)]
Support base64 encoded credentials for VIM creation
Change-Id: Iba58c3d71f2337af955b239fe43f5b96e9f8ca0e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 12 Sep 2024 10:53:09 +0000 (12:53 +0200)]
Decrypt credentials obtained from DB during vim/cloud account creation
Change-Id: I26b6f2532e89e5c6fb83b7f3c3491cfd70cd4360
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 11 Sep 2024 12:30:26 +0000 (14:30 +0200)]
Load Gitops configuration properly in OduWorkflow class
Change-Id: Id061c4e4da1b8f5bb665d6bfb1d9bb33d192a520
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>