From 555494870cb2ac8e7874427720534394e20c281b Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Sat, 6 Jun 2020 12:09:44 +0200 Subject: [PATCH] devstack: increase concurrency and worker timeout for sushy-tools Sometimes sushy-tools hits worker timeout in gunicorn when handing a virtual media ISO, causing a request to be aborted and deployment to fail. Increase the timeout from 30 to 90 seconds and add some concurrency to ensure that more than one deployment can run. Change-Id: I9e951aaaa13981602151bff3f2eebfa338113f6c (cherry picked from commit 7a455a3ff3af8a1542e32578f4f5a1c65d021c3d) --- devstack/lib/ironic | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 5b2d36c615..69bfd093c5 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -927,6 +927,9 @@ function install_redfish { cmd+=" --bind ${HOST_IP}:${IRONIC_REDFISH_EMULATOR_PORT}" cmd+=" --env FLASK_DEBUG=1" cmd+=" --env SUSHY_EMULATOR_CONFIG=${IRONIC_REDFISH_EMULATOR_CONFIG}" + # NOTE(dtantsur): handling virtual media ISO can take time, so increase + # both concurrency and the worker timeout. + cmd+=" --workers 2 --threads 2 --timeout 90" write_user_unit_file $IRONIC_REDFISH_EMULATOR_SYSTEMD_SERVICE "$cmd" "" "$STACK_USER"