Increase timeout for cluster scale operation and use string comparison 14/14914/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Sat, 8 Feb 2025 09:42:08 +0000 (10:42 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Sat, 8 Feb 2025 09:50:09 +0000 (10:50 +0100)
Change-Id: I512177a4ae7be04bd52677a89861b4558478b76d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/k8s.py
osm_lcm/odu_libs/workflows.py

index 67173e7..b5a1f9e 100644 (file)
@@ -1286,7 +1286,7 @@ class ClusterLcm(GitOpsLcm):
                         "jsonpath_filter": "status.atProvider.defaultNodePool[0].nodeCount",
                         "value": f"{op_params['node_count']}",
                     },
-                    "timeout": self._checkloop_resource_timeout * 2,
+                    "timeout": self._checkloop_resource_timeout * 3,
                     "enable": True,
                     "resourceState": "IN_PROGRESS.RESOURCE_READY.NODE_COUNT.CLUSTER",
                 }
index 651d0d9..eeface4 100644 (file)
@@ -148,7 +148,7 @@ async def readiness_loop(
                     jsonpath_expr = parse(condition["jsonpath_filter"])
                     match = jsonpath_expr.find(generic_object)
                     if match:
-                        value = match[0].value
+                        value = str(match[0].value)
                         condition_function = condition.get(
                             "function", lambda x, y: x == y
                         )