From 8f012ae13bb680a6bf15cfd91973f60cffe51903 Mon Sep 17 00:00:00 2001 From: Sergii Tkachenko Date: Fri, 31 Mar 2023 16:58:57 -0400 Subject: [PATCH] PSM interop: add retries on k8s API 504 Gateway Timeout (#32714) ref b/258546394 --- .../xds_k8s_test_driver/framework/infrastructure/k8s.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/k8s.py b/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/k8s.py index c07feeedf69..02443a742a8 100644 --- a/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/k8s.py +++ b/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/k8s.py @@ -276,6 +276,11 @@ class KubernetesNamespace: # pylint: disable=too-many-public-methods # resumes normal operation. return _quick_recovery_retryer() + # 504 Gateway Timeout: + # "Timeout: request did not complete within the allotted timeout" + if code == 504: + return _server_restart_retryer() + return None @classmethod