From 0ec255aad23aea7693f9b830962370a0500767b9 Mon Sep 17 00:00:00 2001 From: Nobuto Murata Date: Wed, 13 Oct 2021 14:30:29 +0900 Subject: [PATCH] Avoid poll_interval to be the same as HTTP Keep-Alive timeout When OpenStack API services are behind Apache2, HTTP Keep-Alive timeout is 5 seconds out of the box. Polling operations with the same interval as HTTP Keep-Alive timeout can cause intermittent failures like: Unable to establish connection to https://nova.example.com:8774/v2.1/servers/UUID: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',)) Let's avoid the same value by default as Apache2's HTTP Keep-Alive timeout. Closes-Bug: #1946912 Change-Id: Ibda414b129a44d38ed3c3a4b5a43fd45e63ec122 --- rally_openstack/common/cfg/nova.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rally_openstack/common/cfg/nova.py b/rally_openstack/common/cfg/nova.py index 23269fbf..5c07dbf7 100644 --- a/rally_openstack/common/cfg/nova.py +++ b/rally_openstack/common/cfg/nova.py @@ -238,7 +238,7 @@ OPTS = {"openstack": [ deprecated_group="benchmark", help="Server resize timeout"), cfg.FloatOpt("nova_server_resize_poll_interval", - default=5.0, + default=4.0, deprecated_group="benchmark", help="Server resize poll interval"), # "resize_confirm": (0, 200, 2)