diff --git a/ceilometer/compute/virt/libvirt/utils.py b/ceilometer/compute/virt/libvirt/utils.py index 79684ea3e8..93fe11b6f1 100644 --- a/ceilometer/compute/virt/libvirt/utils.py +++ b/ceilometer/compute/virt/libvirt/utils.py @@ -108,7 +108,8 @@ def is_disconnection_exception(e): retry_on_disconnect = tenacity.retry( retry=tenacity.retry_if_exception(is_disconnection_exception), - stop=tenacity.stop_after_attempt(2)) + stop=tenacity.stop_after_attempt(3), + wait=tenacity.wait_exponential(multiplier=3, min=1, max=60)) def raise_nodata_if_unsupported(method): diff --git a/lower-constraints.txt b/lower-constraints.txt index df38213356..0c44794a96 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -41,7 +41,7 @@ requests-aws==0.1.4 six==1.10.0 stestr==2.0.0 stevedore==3.0.0 -tenacity==4.12.0 +tenacity==6.3.1 testresources==2.0.1 testscenarios==0.4 testtools==2.2.0 diff --git a/requirements.txt b/requirements.txt index 3713e08ba0..db67736593 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,7 +31,7 @@ python-cinderclient>=3.3.0 # Apache-2.0 PyYAML>=5.1 # MIT requests!=2.9.0,>=2.8.1 # Apache-2.0 stevedore>=1.20.0 # Apache-2.0 -tenacity>=4.12.0 # Apache-2.0 +tenacity>=6.3.1,<7.0.0 # Apache-2.0 tooz[zake]>=1.47.0 # Apache-2.0 os-xenapi>=0.3.3 # Apache-2.0 oslo.cache>=1.26.0 # Apache-2.0