NovaServers.boot_server_from_volume_and_resize test case fails intermittently with the following connection error when polling resize status:
ITER: 10 END: Error GetResourceFailure: Failed to get the resource <Server: s_rally_d7e83197_5mMdRhmh>: Unable to establish connection to https://nova.fqdn:8774/v2.1/servers/a1976740-eee9-4582-bed1-b0421f418c41: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
After looking into the detail, it looks like the default value of nova_server_resize_poll_interval as 5 seconds can hit into a corner case where OpenStack API services are behind Apache2 wsgi and HTTP Keep-alive timeout is 5 seconds as the default value of Apachd2.
https://github.com/openstack/rally-openstack/blob/ec1f31a685bdcbe10212701f8fd0c35598d4745f/rally_openstack/common/cfg/nova.py#L240-L243
We can mitigate the issue by having nova_server_resize_poll_interval explicitly not to use 5 seconds or bump HTTP Keep-alive timeout on the server side. But it would be nice to have nova_server_resize_poll_interval with something other than 5 out of the box.
ref:
https://github.com/psf/requests/issues/4664
https://bugs.python.org/issue41345
https://bugs.python.org/msg374466
Fix proposed to branch: master /review. opendev. org/c/openstack /rally- openstack/ +/813742
Review: https:/