Change pod rollout timeout for K8s root CA change
The Puppet timeout for pod rollout in stages "trustbothcas" and "trustnewca" was recently changed from 600s to 3600s. In this commit, the timeouts for these stages in the kubernetes root CA update strategy are also updated. Test Plan: PASS: In a AIO-SX, execute the Kubernetes Root CA update through sw-manager strategy and check that it is completed successfully without reaching any timeout in stages "trustbothcas" and "trustnewca". PASS: In a AIO-SX, artificially make the pod rollout script hang for 15 minutes and check that the stages "trustbothcas" and "trustnewca" are still completed successfully. Closes-Bug: 2004594 Signed-off-by: Joao Victor Portal <Joao.VictorPortal@windriver.com> Change-Id: I96d04de95e424e15bd79f049be644909bb0dcff7
This commit is contained in:
parent
94321e9d57
commit
244b29636c
@ -28,8 +28,8 @@ from nfv_plugins.nfvi_plugins.openstack.objects import OPENSTACK_SERVICE
|
|||||||
|
|
||||||
DLOG = debug.debug_get_logger('nfv_plugins.nfvi_plugins.infrastructure_api')
|
DLOG = debug.debug_get_logger('nfv_plugins.nfvi_plugins.infrastructure_api')
|
||||||
|
|
||||||
# Allow 600 seconds to determine if a kube rootca host update has stalled
|
# Allow 3600 seconds to determine if a kube rootca host update has stalled
|
||||||
MAX_KUBE_ROOTCA_HOST_UPDATE_DURATION = 600
|
MAX_KUBE_ROOTCA_HOST_UPDATE_DURATION = 3600
|
||||||
|
|
||||||
|
|
||||||
def host_state(host_uuid, host_name, host_personality, host_sub_functions,
|
def host_state(host_uuid, host_name, host_personality, host_sub_functions,
|
||||||
|
@ -3358,7 +3358,7 @@ class AbstractKubeRootcaUpdatePodsStep(AbstractKubeRootcaUpdateStep):
|
|||||||
in_progress_state,
|
in_progress_state,
|
||||||
fail_state,
|
fail_state,
|
||||||
phase,
|
phase,
|
||||||
timeout_in_secs=600):
|
timeout_in_secs=3600):
|
||||||
super(AbstractKubeRootcaUpdatePodsStep, self).__init__(
|
super(AbstractKubeRootcaUpdatePodsStep, self).__init__(
|
||||||
step_name,
|
step_name,
|
||||||
success_state,
|
success_state,
|
||||||
|
Loading…
Reference in New Issue
Block a user