From 1239f757cc18f47593fa4f7e7ecf2203e8a130c5 Mon Sep 17 00:00:00 2001 From: Siri Teja Reddy Kasireddy Date: Wed, 20 Jul 2022 12:38:16 +0530 Subject: [PATCH] Increase the timeout of diagnoser job completion to 180 sec --- src/connectedk8s/HISTORY.rst | 5 +++++ src/connectedk8s/azext_connectedk8s/_troubleshootutils.py | 2 +- src/connectedk8s/setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/connectedk8s/HISTORY.rst b/src/connectedk8s/HISTORY.rst index c0b957d5066..a89778fb8e6 100644 --- a/src/connectedk8s/HISTORY.rst +++ b/src/connectedk8s/HISTORY.rst @@ -2,6 +2,11 @@ Release History =============== +1.2.11 +++++++ + +* Increased the timeout of diagnoser job completion to 180 seconds + 1.2.10 ++++++ diff --git a/src/connectedk8s/azext_connectedk8s/_troubleshootutils.py b/src/connectedk8s/azext_connectedk8s/_troubleshootutils.py index a6d32f671ef..7ff227c187e 100644 --- a/src/connectedk8s/azext_connectedk8s/_troubleshootutils.py +++ b/src/connectedk8s/azext_connectedk8s/_troubleshootutils.py @@ -638,7 +638,7 @@ def executing_diagnoser_job(corev1_api_instance, batchv1_api_instance, filepath_ is_job_complete = False is_job_scheduled = False # To watch for changes in the pods states till it reach completed state or exit if it takes more than 60 seconds - for event in w.stream(batchv1_api_instance.list_namespaced_job, namespace='azure-arc', label_selector="", timeout_seconds=60): + for event in w.stream(batchv1_api_instance.list_namespaced_job, namespace='azure-arc', label_selector="", timeout_seconds=180): try: # Checking if job get scheduled or not if event["object"].metadata.name == "azure-arc-diagnoser-job": diff --git a/src/connectedk8s/setup.py b/src/connectedk8s/setup.py index c9e8372c636..ef8ff47d7f3 100644 --- a/src/connectedk8s/setup.py +++ b/src/connectedk8s/setup.py @@ -17,7 +17,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '1.2.10' +VERSION = '1.2.11' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers