Skip to content

Commit 49a3862

Browse files
Merge pull request #596 from tosky/test-increase-cinder-haproxy-timeout
Increase glance and cinder timeouts (haproxy+httpd (and RPC)) Increase glance haproxy+httpd timeout (for large images) Forward port ec48354 to lib/control-plane/base/openstackcontrolplane.yaml Changing the apiOverride value for the defined glanceAPI affects both the haproxy timeout and the glance httpd timeout. This benefit the case where large images are uploaded and for some reasons the deployment is slow, and avoids hitting a timeout. This also needs to be combined with a bigger timeout in the client used (for example, the tempest client in case of tests.) Partially inspired by: https://opendev.org/openstack/kolla-ansible/commit/ccb7952ddb4bf2e6e008eb15341efb0ed5355bc3 Thanks (in no particular order) Rajat Dhasmana, Francesco Pantano and Brian Rosmaita for the help investigating some failures, for the hints about timeouts in the client and the overall help. This change removes the old way of configuring (though annotation) as it seems it does not work anymore. Even using what should be the new way, namely: apiOverrides: default: route: metadata: annotations: haproxy.router.openshift.io/timeout: 10m does not seem to work, as the annotation value seems to be read only and it restores to the internally configured value. Increase all timeouts for cinder (haproxy+httpd+RPC) This is useful for example when cinder is used as a glance backend and the creation of the image takes quite some time, as the may hit resource limits (it may be overloaded or simply small for testing purposes). Also, remove the previous haproxy override (which seems to work, but apiTimeout applies to more settings. Glance got a similar timeout increase in a previous change. Increase api (and more) timeouts for nova too It aligns with the timeouts set in previous changes on cinder and glance. Reviewed-by: Andrew Bays <[email protected]> Reviewed-by: John Fulton <[email protected]>
2 parents a8cb0ac + 3ee747d commit 49a3862

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/control-plane/base/openstackcontrolplane.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ spec:
2525
cinder:
2626
uniquePodNames: true
2727
apiOverride:
28-
route: {"haproxy.router.openshift.io/timeout": "60s"}
28+
route: {}
2929
template:
30+
apiTimeout: 600
3031
cinderAPI:
3132
replicas: 3
3233
customServiceConfig: |
@@ -98,11 +99,12 @@ spec:
9899
uniquePodNames: true
99100
apiOverrides:
100101
default:
101-
route: {"haproxy.router.openshift.io/timeout": "60s"}
102+
route: {}
102103
template:
103104
databaseInstance: openstack
104105
glanceAPIs:
105106
default:
107+
apiTimeout: 600
106108
replicas: 0
107109
networkAttachments:
108110
- storage
@@ -185,6 +187,7 @@ spec:
185187
route: {}
186188
template:
187189
secret: osp-secret
190+
apiTimeout: 600
188191
apiServiceTemplate:
189192
replicas: 3
190193
metadataServiceTemplate:

0 commit comments

Comments
 (0)