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.

Note:
This commit is a re-do of:
https://review.opendev.org/c/starlingx/distcloud/+/846053
as it was un-do by:
https://review.opendev.org/c/starlingx/distcloud/+/845484

Closes-Bug: 1978857

Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
Change-Id: Ifecaec47f2c935bb5ff8d464a188f8ebad4d647c
This commit is contained in:
Yuxing Jiang 2022-06-27 15:48:59 -04:00
parent ece1bc8573
commit cca9a52b2c
1 changed files with 1 additions and 1 deletions

View File

@ -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):