From 1861fe9af8929c668c2ee50670173a6dee9cc673 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Thu, 18 Aug 2022 15:35:17 +0000 Subject: [PATCH] Increase sysinv API timeout from 45 to 60 seconds When the VIM issues a sysinv command, it will terminate the thread and report a 'timed out' for the plugin activity if the command takes longer than 45 seconds. Under heavy load (10 hosts patching in parallel) sysinv can take longer than 45 seconds to generate the hieradata for an unlock, and therefore the patch strategy can fail. This fix bumps the value up to 60. Any future improvements will focus on speeding up the generation of sysinv hieradata. Closes-Bug: 1986972 Signed-off-by: Al Bailey Change-Id: I1dbb6f1e3c5529de9199dea8453f32e954da2f51 --- nfv/nfv-plugins/nfv_plugins/nfvi_plugins/config.ini | 2 +- nfv/nfv-plugins/nfv_plugins/nfvi_plugins/openstack/sysinv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/config.ini b/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/config.ini index 9e7ec7eb..2c022f9d 100644 --- a/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/config.ini +++ b/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/config.ini @@ -123,5 +123,5 @@ neutron.disable_host_services=40 neutron.delete_host_services=40 glance.upload_image_data_by_file=180 glance.upload_image_data_by_url=180 -sysinv=45 +sysinv=60 patching.apply_patch=180 diff --git a/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/openstack/sysinv.py b/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/openstack/sysinv.py index 42ca6659..13717826 100755 --- a/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/openstack/sysinv.py +++ b/nfv/nfv-plugins/nfv_plugins/nfvi_plugins/openstack/sysinv.py @@ -14,7 +14,7 @@ DLOG = debug.debug_get_logger('nfv_plugins.nfvi_plugins.openstack.sysinv') # WARNING: Any change to this timeout must be reflected in the config.ini # file for the nfvi plugins. -REST_API_REQUEST_TIMEOUT = 45 +REST_API_REQUEST_TIMEOUT = 60 KUBE_ROOTCA_UPDATE_ENDPOINT = "/kube_rootca_update"