From 4114969a0c75ecfa0f2e80e9bea5634a6afa398e Mon Sep 17 00:00:00 2001 From: Yuxing Jiang Date: Wed, 15 Jun 2022 13:36:52 -0400 Subject: [PATCH] Extend timeout of patching REST API In an extreme case, the patching operation failed due to heavy network traffic. This commit extends the timeout of patching REST API to 900s to pass this scenario. Test: 1 Deploy a DC with this change. 2 Patch the subclouds with patch orchestration. Closes-Bug: 1978857 Signed-off-by: Yuxing Jiang Change-Id: I921dc98404805d60dfa1199cbf893cca91c3d637 --- distributedcloud/dccommon/drivers/openstack/patching_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributedcloud/dccommon/drivers/openstack/patching_v1.py b/distributedcloud/dccommon/drivers/openstack/patching_v1.py index cd7a7bc34..cfa59443b 100644 --- a/distributedcloud/dccommon/drivers/openstack/patching_v1.py +++ b/distributedcloud/dccommon/drivers/openstack/patching_v1.py @@ -29,7 +29,7 @@ PATCH_STATE_PARTIAL_APPLY = 'Partial-Apply' PATCH_STATE_PARTIAL_REMOVE = 'Partial-Remove' PATCH_STATE_COMMITTED = 'Committed' PATCH_STATE_UNKNOWN = 'n/a' -PATCH_REST_DEFAULT_TIMEOUT = 600 +PATCH_REST_DEFAULT_TIMEOUT = 900 class PatchingClient(base.DriverBase):