From d0d772d720600e12e38eb58a3d3642aab26213be Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 30 Jun 2020 17:41:49 +0200 Subject: [PATCH] devstack: get rid of python3_enabled This function is currently broken and we don't support Python 2 anyway. Change-Id: I0ffec5fbbe6b6120fc6526637e22341f97bd2737 --- devstack/lib/ironic | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index dcf9384080..48cf4a5227 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -963,13 +963,11 @@ function cleanup_redfish { function install_redfish { # TODO(lucasagomes): Use Apache WSGI instead of gunicorn - gunicorn=gunicorn if is_ubuntu; then - if python3_enabled; then - gunicorn=${gunicorn}3 - fi - install_package $gunicorn + install_package gunicorn3 + elif is_fedora; then + install_package python3-gunicorn else pip_install_gr "gunicorn" fi @@ -983,7 +981,7 @@ function install_redfish { local cmd - cmd=$(which $gunicorn) + cmd=$(which gunicorn3) cmd+=" sushy_tools.emulator.main:app" cmd+=" --bind ${HOST_IP}:${IRONIC_REDFISH_EMULATOR_PORT}" cmd+=" --env FLASK_DEBUG=1"