Increase cluster-entities request timeout 86/98786/3
authorTomas Cere <tomas.cere@pantheon.tech>
Wed, 1 Dec 2021 10:52:08 +0000 (11:52 +0100)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 9 Feb 2022 17:55:20 +0000 (17:55 +0000)
The requests need a more relaxex timeout due to the fallback
mechanism in the rpcs, which falls back to distributed-data
in case the request to the supervisor times out.

JIRA: CONTROLLER-2025
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Change-Id: Ib05b2743042fe1460101d45ae8e95b85182abf53

csit/libraries/ClusterEntities.py

index 9f51f09e4ce5652f5f8594c3f92775511e7aff8a..ad396a83d8a1e10e4b09baece72517c46d8957b7 100644 (file)
@@ -18,7 +18,7 @@ def get_entities(restconf_url):
             "User-Agent": "csit agent",
         },
         auth=("admin", "admin"),
-        timeout=5.0,
+        timeout=10.0,
     )
 
     info(
@@ -90,7 +90,7 @@ def get_entity(restconf_url, e_type, e_name):
         },
         data=data,
         auth=("admin", "admin"),
-        timeout=5.0,
+        timeout=10.0,
     )
 
     info(
@@ -141,7 +141,7 @@ def get_entity_owner(restconf_url, e_type, e_name):
         },
         data=data,
         auth=("admin", "admin"),
-        timeout=5.0,
+        timeout=10.0,
     )
 
     info(
@@ -178,7 +178,7 @@ def get_entities_data(restconf_url):
             "User-Agent": "csit agent",
         },
         auth=("admin", "admin"),
-        timeout=5.0,
+        timeout=10.0,
     )
 
     info(
@@ -210,7 +210,7 @@ def get_entity_type_data(restconf_url, e_type):
             "User-Agent": "csit agent",
         },
         auth=("admin", "admin"),
-        timeout=5.0,
+        timeout=10.0,
     )
 
     info(